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 "vision.h"
#include <bits/stdc++.h>
using namespace std;
void construct_network(int h, int w, int k) {
vector<int> T1, T2;
int c = 0;
for(int i = 0; i < h; i++) {
for(int j = 0; j < w; j++) {
T1.clear(); T2.clear();
T1.push_back(i*w+j);
for(int l = 0; l < w; l++) {
if(abs(j-l)<=k && i+k-abs(j-l) < h) {
T2.push_back((i+k-abs(j-l))*w+l);
}
}
if(! T2.size()) continue;
c = add_or(T1);
c = add_or(T2);
T1 = {c-1, c};
c = add_and(T1);
}
}
T1.clear();
for(int i = w*h+2; i <= c; i += 3)
T1.push_back(i);
add_or(T1);
}
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |