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> Ns(2);
int c = 0;
for(int i = 0; i < h; i++) {
for(int j = 0; j < w; j++) {
Ns[0] = i*w+j;
for(int l = 0; l < w; l++) {
if(abs(j-l)<=k && i+k-abs(j-l) < h) {
Ns[1] = (i+k-abs(j-l))*w+l;
c = add_and(Ns);
}
}
}
}
Ns.clear();
for(int i = w*h; i <= c; i++)
Ns.push_back(i);
add_or(Ns);
}
# | 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... |