Submission #832791

#TimeUsernameProblemLanguageResultExecution timeMemory
832791Minindu206Vision Program (IOI19_vision)C++14
44 / 100
132 ms2876 KiB
#include "vision.h" #include <bits/stdc++.h> using namespace std; void construct_network(int h, int w, int k) { vector<int> inds; for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { vector<int> temp; for (int i1 = 0; i1 < h; i1++) { for (int j1 = 0; j1 < w; j1++) { if(abs(i - i1) + abs(j - j1) == k) temp.push_back(i1 * w + j1); } } if(temp.size() != 0) inds.push_back(add_and({i * w + j, add_or(temp)})); } } add_or(inds); }
#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...