# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
431673 | kwongweng | Vision Program (IOI19_vision) | C++17 | 5 ms | 1020 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 <bits/stdc++.h>
#include "vision.h"
using namespace std;
void construct_network(int H, int W, int K) {
vector<int> Ns;
int a1 = H*W, a2 = H*W;
int cnt = 0;
for (int i = 0; i < H; i++){
for (int j = 0; j < W; j++){
int pos = i*W + j;
for (int k = 0; k <= K; k++){
int new_pos = pos + k*W + K-k;
if (i+k < H && j+K-k < W){
Ns = {pos, new_pos};
int a = add_and(Ns);
cnt++;
}
}
}
}
Ns = {};
for (int i = H*W; i < H*W+cnt; i++) Ns.push_back(i);
int a = add_or(Ns);
return;
}
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... |