# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
579140 | Vanilla | Vision Program (IOI19_vision) | C++17 | 15 ms | 1744 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) {
int op = 0;
vector <int> row, col;
vector <int> bits;
vector <int> v;
for (int i = 0; i < H; i++){
for (int j = 0; j < W; j++){
v.push_back(i * W + j);
}
bits.push_back(add_xor(v));
v = {bits.back()};
}
for (int j = 0; j < W; j++){
for (int i = 0; i < H; i++){
v.push_back(i * W + j);
}
bits.push_back(add_xor(v));
v = {bits.back()};
}
int last = bits.back();
vector <int> rs;
for (int i = 0; i < 9; i++){
rs.push_back(add_xor(bits));
if (K & (1 << i))
rs[i] = add_not(rs[i]);
vector <int> hl;
int now = last;
for (int i: bits) {
hl.push_back(add_and({now, i}));
now = add_xor({now, i});
}
bits = hl;
}
add_not(add_or(rs));
}
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... |