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>
using namespace std;
#include "vision.h"
void construct_network(int H, int W, int K) {
int cnt = H * W;
vector<int> s(2);
for(int i = 0; i < H * W; i++)
for(int j = i + 1; j < H * W; j++){
if(abs(i / W - j / W) + abs(i % W - j % W) == K){
s[0] = i;
s[1] = j;
add_and(s);
cnt++;
}
}
vector<int> v;
for(int i = H * W; i < cnt; i++) v.push_back(i);
add_or(v);
}
# | 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... |