Submission #721222

#TimeUsernameProblemLanguageResultExecution timeMemory
721222nguyentunglamVision Program (IOI19_vision)C++17
0 / 100
300 ms1076 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 = i + 1; k < h; k++) for(int l = 0; l < w; l++) { if (abs(i - k) + abs(j - l) == K) { 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...