Submission #719813

#TimeUsernameProblemLanguageResultExecution timeMemory
719813mseebacherVision Program (IOI19_vision)C++17
0 / 100
2 ms976 KiB
#include "vision.h" #include <bits/stdc++.h> using namespace std; void construct_network(int H, int W, int K) { std::vector<int> Ns; int x = 0,y = 0; for(int i = 0;i<H*W;i++){ for(int j = i;j<H*W;j++){ Ns = {i,j}; if(add_and(Ns)) { x = i; y = j; } } } if(abs((x-y)/W) + abs(x%W-(y%W)) == K){ add_and({x,y}); }else{ add_xor({x,y}); } }
#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...