# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
237449 | jhnah917 | Street Lamps (APIO19_street_lamps) | C++14 | 206 ms | 22028 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#define x first
#define y second
#define all(v) v.begin(), v.end()
#define compress(v) sort(all(v)), v.erase(unique(all(v)), v.end())
using namespace std;
struct Query{
int op, a, b;
Query(int op, int a, int b) : op(op), a(a), b(b) {}
Query() : Query(0, 0, 0) {}
};
int n, q;
string st;
Query qry[303030];
void sub1_floyd(int a[111][111][111], int b){
for(int i=1; i<=n+1; i++) for(int j=1; j<=n+1; j++) a[i][j][b+1] = a[i][j][b];
for(int k=1; k<=n+1; k++) for(int i=1; i<=n+1; i++) for(int j=1; j<=n+1; j++){
if(a[i][k][b] && a[k][j][b]) a[i][j][b] = 1;
}
}
int sub1_ans[111][111][111] = {0};
void sub1(){
string s; cin >> s;
for(int i=1; i<=n; i++){
if(s[i-1] == '1') sub1_ans[i][i + 1][0] = 1;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |