Submission #721231

#TimeUsernameProblemLanguageResultExecution timeMemory
721231nguyentunglamVision Program (IOI19_vision)C++17
33 / 100
244 ms1104 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++) { 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) { lst.push_back(add_and({i * w + j, k * w + l})); } } } 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...