Submission #169900

#TimeUsernameProblemLanguageResultExecution timeMemory
169900nandonathanielVision Program (IOI19_vision)C++14
0 / 100
5 ms1140 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...