Submission #1048345

#TimeUsernameProblemLanguageResultExecution timeMemory
1048345aykhnVision Program (IOI19_vision)C++17
0 / 100
0 ms348 KiB
#include "vision.h" void construct_network(int H, int W, int K) { int cur = H * W - 1; for (int i = 0; i < H * W; i++) { for (int j = i + 1; j < H * W; j++) { cur++; if (add_and({i, j})) { int x1 = i / W, y1 = i % W; int x2 = j / W, y2 = j % W; if (abs(x1 - x2) + abs(y1 - y2) != K) add_not(cur); return; } } } }
#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...