Submission #856394

#TimeUsernameProblemLanguageResultExecution timeMemory
856394Trisanu_DasVision Program (IOI19_vision)C++17
33 / 100
991 ms1196 KiB
#include "vision.h" #include <bits/stdc++.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...