Submission #954837

#TimeUsernameProblemLanguageResultExecution timeMemory
954837Trisanu_DasVision Program (IOI19_vision)C++17
33 / 100
992 ms1396 KiB
#include <bits/stdc++.h> using namespace std; #include "vision.h" void construct_network(int H, int W, int K) { int cnt = H * W; vector<int> s(2); 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){ s[0] = i; s[1] = j; add_and(s); cnt++; } } vector<int> v; for(int i = H * W; i < cnt; i++) v.push_back(i); 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...