Submission #856396

#TimeUsernameProblemLanguageResultExecution timeMemory
856396Trisanu_DasVision Program (IOI19_vision)C++17
44 / 100
133 ms3064 KiB
#include "vision.h" #include <bits/stdc++.h> using namespace std; void construct_network(int h, int w, int k){ vector<int> ans; for(int i = 0; i < h; i++){ for(int j = 0; j < w; j++){ vector<int> res; for(int x = 0; x < h; x++) for(int y = 0; y < w; y++) if(abs(i - x) + abs(j - y) == k) res.push_back(x * w + y); if(!res.empty()) ans.push_back(add_and({add_or(res), i * w + j})); } } 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...