Submission #856392

#TimeUsernameProblemLanguageResultExecution timeMemory
856392Trisanu_DasVision Program (IOI19_vision)C++17
0 / 100
213 ms6224 KiB
#include <bits/stdc++.h> #include "vision.h" using namespace std; void construct_network(int h, int w, int k){ int total = h * w; for(int i = 0; i < h * w; i++){ for(int j = i + 1; j < h * w; j++){ if(abs(i / w - j / w) + abs(i % w - j % w) == k){ add_and({i, j}); total++; } } vector<int> ans; for(int i = h * w; i < total; i++) ans.push_back(i); add_or(ans); } }
#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...