#include "vision.h"
#include <bits/stdc++.h>
using namespace std;
#define pii pair<int,int>
void construct_network(int n, int m, int k) {
int p = 0;
vector<pii> link;
for (int i = 0; i < 1; i++) {
for (int j = 0; j < 1; j++) {
vector<int> o;
for (int t = 0; t <= k; t++) {
int i1 = i + t, j1 = j - (k - t);
int i2 = i1, j2 = j + (k - t);
if (i1 < n && j1 >= 0)
o.push_back(i1 * m + j1);
if (i2 < n && j2 < m && t > 0 && t < k)
o.push_back(i2 * m + j2);
}
if (o.size()) {
//cout << i << ' ' << j << " : ";
//for (auto x : o)
// cout << x << ' ';
//cout << '\n';
link.push_back({i * m + j, p + n * m});
add_or(o);
p++;
}
}
}
for (auto t : link) {
add_and(vector<int>({t.first, t.second}));
// cout << t.first << ' ' << t.second << '\n';
}
vector<int> fin;
for (int ind = n * m + p; ind < n * m + 2 * p; ind++) {
fin.push_back(ind);
}
add_or(fin);
return;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
WA in grader: Instruction with no inputs |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
WA in grader: Instruction with no inputs |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
WA in grader: Instruction with no inputs |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
WA in grader: Instruction with no inputs |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
WA in grader: Instruction with no inputs |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
on inputs (0, 0), (0, 1), 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 (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 |
WA in grader: Instruction with no inputs |
2 |
Halted |
0 ms |
0 KB |
- |