Submission #1048362

#TimeUsernameProblemLanguageResultExecution timeMemory
1048362aykhnVision Program (IOI19_vision)C++17
33 / 100
334 ms1492 KiB
#include "vision.h" #include <bits/stdc++.h> using namespace std; void construct_network(int H, int W, int K) { vector<int> v; for (int i = 0; i < H * W; i++) { for (int j = i + 1; j < H * W; j++) { int x1 = i / W, y1 = i % W; int x2 = j / W, y2 = j % W; if (abs(x1 - x2) + abs(y1 - y2) != K) continue; v.push_back(add_and({i, j})); } } 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...