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> lst;
for(int i = 0; i < h; i++) for(int j = 0; j < w; j++) {
for(int k = 0; k < h; k++) for(int l = 0; l < w; l++) {
if (abs(i - j) + abs(k - l) == k) {
lst.push_back(add_and({i * w + j, k * w + l}));
}
}
}
if (lst.empty()) return;
add_or(lst);
}
# | 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... |