# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
578709 | 2022-06-17T17:53:30 Z | Vanilla | Vision Program (IOI19_vision) | C++17 | 9 ms | 1132 KB |
#include <bits/stdc++.h> #include "vision.h" using namespace std; int dist (int x1, int y1, int x2, int y2) { return abs(x2 - x1) + abs(y2 - y1); } void construct_network(int H, int W, int K) { int op = 0; vector <int> row, col; for (int i = 0; i < H; i++){ vector <int> v; for (int j = 0; j < W; j++){ v.push_back(i * W + j); } row.push_back(add_or(v)); } for (int j = 0; j < W; j++){ vector <int> v; for (int i = 0; i < H; i++){ v.push_back(i * W + j); } col.push_back(add_or(v)); } vector <int> rs; vector <int> c23; for (int i = 0; i + K < H; i++){ c23.push_back(add_and({row[i], row[i + K]})); } for (int i = 0; i + K < W; i++){ c23.push_back(add_and({col[i], col[i + K]})); } if (c23.size() >= 1) rs.push_back(add_xor(c23)); rs.push_back(add_and({0})); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | on inputs (0, 0), (0, 2), expected 0, but computed 1 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | on inputs (0, 0), (0, 2), expected 0, but computed 1 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | on inputs (0, 0), (0, 2), expected 0, but computed 1 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | on inputs (0, 0), (0, 2), expected 0, but computed 1 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 212 KB | on inputs (0, 0), (0, 2), expected 0, but computed 1 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 212 KB | on inputs (0, 0), (1, 1), expected 0, but computed 1 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 9 ms | 1132 KB | on inputs (80, 199), (81, 199), expected 1, but computed 0 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | on inputs (0, 0), (0, 2), expected 0, but computed 1 |
2 | Halted | 0 ms | 0 KB | - |