# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
431632 | kwongweng | Vision Program (IOI19_vision) | C++17 | 2 ms | 968 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 = -1, a2 = -1;
int cnt = 0;
for (int i = 0; i < W; i++){
for (int j = 0; j < H; j++){
int pos = i*W + j;
int a = add_not(pos);
if (a == 0){
if (a1 == -1) a1 = pos;
else a2 = pos;
}
}
}
Ns = {a1, a2};
int c;
if (abs(a1/W - a2/W) + abs((a1%W) - (a2%W)) == K){
c = add_and(Ns);
}else{
c = add_not(a1);
}
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... |