Submission #1048659

#TimeUsernameProblemLanguageResultExecution timeMemory
1048659fuad27Vision Program (IOI19_vision)C++17
0 / 100
120 ms1152 KiB
#include "vision.h" using namespace std; void construct_network(int H, int W, int k) { vector<int> rs; for(int i = 0;i<H;i++) { for(int j = 0;j<W;j++){ vector<int> idxs; for(int i1 = 0;i1<H;i1++) { for(int j1 = 0;j1<W;j1++) { if(abs(i-i1) + abs(i1-j1) == k) { idxs.push_back(i1*W+j1); } } } int id = add_or(idxs); rs.push_back(add_and({W*i+j, id})); } } add_or(rs); }
#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...