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"
using namespace std;
void construct_network(int H, int W, int k) {
vector<int> rs;
for(int i = 0;i<H;i++) {
for(int j = 0;j<W;j++){
vector<int> idxs;
for(int i1 = 0;i1<H;i1++) {
for(int j1 = 0;j1<W;j1++) {
if(abs(i-i1) + abs(i1-j1) == k) {
idxs.push_back(i1*W+j1);
}
}
}
int id = add_or(idxs);
rs.push_back(add_and({W*i+j, id}));
}
}
add_or(rs);
}
# | 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... |