Submission #1026813

#TimeUsernameProblemLanguageResultExecution timeMemory
1026813NicolaikrobVision Program (IOI19_vision)C++17
33 / 100
4 ms1236 KiB
#include "vision.h" #include <bits/stdc++.h> using namespace std; void construct_network(int h, int w, int k) { vector<int> Ns(2); int c = 0; for(int i = 0; i < h; i++) { for(int j = 0; j < w; j++) { Ns[0] = i*w+j; for(int l = 0; l < w; l++) { if(abs(j-l)<=k && i+k-abs(j-l) < h) { Ns[1] = (i+k-abs(j-l))*w+l; c = add_and(Ns); } } } } Ns.clear(); for(int i = w*h; i <= c; i++) Ns.push_back(i); add_or(Ns); }
#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...