Submission #169901

#TimeUsernameProblemLanguageResultExecution timeMemory
169901nandonathanielVision Program (IOI19_vision)C++14
44 / 100
12 ms2544 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-k<W)v.push_back((i+k)*W+(j+K-k)); if(i+k<H && j-K+k>=0)v.push_back((i+k)*W+(j-K+k)); } 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...