Submission #721240

#TimeUsernameProblemLanguageResultExecution timeMemory
721240nguyentunglamVision Program (IOI19_vision)C++17
44 / 100
231 ms2252 KiB
#include "vision.h" #include<bits/stdc++.h> using namespace std; void construct_network(int h, int w, int K) { vector<int> lst; int timer = 0; for(int i = 0; i < h; i++) for(int j = 0; j < w; j++) { vector<int> ask; for(int k = i; k < h; k++) for(int l = 0; l < w; l++) { if (i == k && j > l) continue; if (abs(i - k) + abs(j - l) == K) ask.push_back(k * w + l); } if (ask.empty()) continue; lst.push_back(add_and({i * w + j, add_or(ask)})); } if (lst.empty()) return; add_or(lst); }

Compilation message (stderr)

vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:7:9: warning: unused variable 'timer' [-Wunused-variable]
    7 |     int timer = 0;
      |         ^~~~~
#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...