Submission #792222

#TimeUsernameProblemLanguageResultExecution timeMemory
792222AndreyVision Program (IOI19_vision)C++14
33 / 100
70 ms1060 KiB
#include "vision.h" #include<bits/stdc++.h> using namespace std; void construct_network(int h, int w, int k) { int br = 0; for(int i = 0; i < h; i++) { for(int j = 0; j < w; j++) { for(int y = 0; y < h; y++) { for(int z = 0; z < w; z++) { if(abs(i-y)+abs(j-z) == k) { add_and({i*w+j,y*w+z}); br++; } } } } } if(br > 1) { add_or({h*w,h*w+1}); for(int i = 2; i < br; i++) { add_or({h*w+i,h*w+i+br-2}); } } }
#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...