Submission #721216

#TimeUsernameProblemLanguageResultExecution timeMemory
721216nguyentunglamVision Program (IOI19_vision)C++17
0 / 100
89 ms1036 KiB
#include "vision.h" #include<bits/stdc++.h> using namespace std; void construct_network(int h, int w, int K) { vector<int> lst; for(int i = 0; i < h; i++) for(int j = 0; j < w; j++) { for(int k = 0; k < h; k++) for(int l = 0; l < w; l++) { if (abs(i - j) + abs(k - l) == K) { // cout << i << " " << j << " " << k << " " << l << endl; lst.push_back(add_and({i * w + j, k * w + l})); } } } if (lst.empty()) return; add_or(lst); }
#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...