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> atau;
for(int i=0;i<H;i++){
for(int j=0;j<W;j++){
vector<int> v;
for(int k=0;k<=K;k++){
if(i+k<H && j+K-i<W)v.push_back((i+k)*W+(j+K-i));
if(i+k<H && j-K+i>=0)v.push_back((i+k)*W+(j-K+i));
}
if(v.empty())continue;
atau.push_back(add_and({i*W+j,add_or(v)}));
}
}
add_or(atau);
}
# | 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... |