Submission #1048378

#TimeUsernameProblemLanguageResultExecution timeMemory
1048378aykhnVision Program (IOI19_vision)C++17
8 / 100
1 ms360 KiB
#include "vision.h" #include <bits/stdc++.h> using namespace std; void construct_network(int H, int W, int K) { vector<int> res; for (int i = 0; i < 1; i++) { vector<int> v; 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(j); } if (v.empty()) continue; int x = add_or(v); int y = add_or({i}); res.push_back(add_and({x, y})); } add_or(res); }
#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...