# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
721240 | nguyentunglam | Vision Program (IOI19_vision) | C++17 | 231 ms | 2252 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |