Submission #378853

#TimeUsernameProblemLanguageResultExecution timeMemory
378853autumn_eelVision Program (IOI19_vision)C++14
44 / 100
1093 ms2404 KiB
#include "vision.h" #include <bits/stdc++.h> #define rep(i,n)for(int i=0;i<int(n);i++) using namespace std; void construct_network(int H, int W, int K) { vector<int>look; rep(i,H*W){ int r1=i/W,c1=i%W; vector<int>v; for(int j=i+1;j<H*W;j++){ int r2=j/W,c2=j%W; if(abs(r1-r2)+abs(c1-c2)==K){ v.push_back(j); } } if(v.empty())continue; int t=add_or(v); look.push_back(add_and({i,t})); } if(look.empty()){ vector<int>v; rep(i,H*W)v.push_back(i); add_and(v); return; } add_or(look); }
#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...