Submission #206767

#TimeUsernameProblemLanguageResultExecution timeMemory
206767joylintpVision Program (IOI19_vision)C++17
33 / 100
149 ms1140 KiB
#include<bits/stdc++.h> #include"vision.h" using namespace std; void construct_network(int h, int w, int k) { vector<int> v; for (int i = 0; i < h; i++) for (int j = 0; j < w; j++) for (int a = i; a < h; a++) for (int b = 0; b < w; b++) if (abs(a - i) + abs(b - j) == k) v.push_back(add_and({i * w + j, a * w + b})); add_or(v); } // * * ***** * * * * // * * * ** * * * // ***** ***** * * * * * // * * * * ** * * // * * ***** * * *** // ***** ***** * * * ***** * * ***** ***** // * * * * * * * ** * * * * // * * * ***** * * * * * * ***** // * * * * * * * * ** * * // **** ***** * ***** ***** * * * *
#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...