Submission #792872

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