# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1118539 | 2024-11-25T16:16:15 Z | adaawf | Vision Program (IOI19_vision) | C++17 | 46 ms | 6152 KB |
#include <bits/stdc++.h> using namespace std; int add_not(int x); int add_and(vector<int> x); int add_xor(vector<int> x); int add_or(vector<int> x); void construct_network(int h, int w, int k) { int x = 0, y = 0; vector<int> va; for (int i = 0; i <= 15; i++) { vector<int> v; for (int j = 0; j < h * w; j++) { if (j & (1 << i)) { v.push_back(j); } } if (add_or(v)) { if (add_xor(v)) va.push_back(i); else { x += (1 << i); y += (1 << i); } } } for (int i = 0; i < (1 << va.size()); i++) { int z = x, t = y; for (int j = 0; j < va.size(); j++) { if (i & (1 << j)) z += (1 << va[j]); else t += (1 << va[j]); } if (z < 0 || t < 0 || z >= h * w || t >= h * w || z > t) continue; int u = z / h, v = z % h, uu = t / h, vv = t % h; if (abs(uu - u) + abs(vv - v) != k) continue; vector<int> vva; vva.push_back(z); vva.push_back(t); if (add_and(vva)) { return; } } vector<int> vva; vva.push_back(0); vva.push_back(1); add_and(vva); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 448 KB | WA in grader: Instruction with no inputs |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 448 KB | WA in grader: Instruction with no inputs |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 448 KB | WA in grader: Instruction with no inputs |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 448 KB | WA in grader: Instruction with no inputs |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 336 KB | WA in grader: Instruction with no inputs |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 344 KB | WA in grader: Instruction with no inputs |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 46 ms | 6152 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 | 1 ms | 448 KB | WA in grader: Instruction with no inputs |
2 | Halted | 0 ms | 0 KB | - |