#include<bits/stdc++.h>
using namespace std;
#include "vision.h"
int f(int i, int j, int W){
return i*W + j;
}
void construct_network(int H, int W, int K) {
vector<int> v;
vector<int> dlin, dcol, olin, ocol;
for(int i = 0; i < H - 1; i++){
vector<int> v;
for(int j = 0; j < W; j++){
v.push_back(f(i, j, W));
v.push_back(f(i + 1, j, W));
}
dlin.push_back(add_or(v));
}
int DLIN = add_or(dlin);
for(int j = 0; j < W; j++){
vector<int> v;
for(int i = 0; i < H; i++){
v.push_back(f(i, j, W));
}
ocol.push_back(add_or(v));
}
int OCOL = add_or(ocol);
int AA = add_and({DLIN, OCOL});
for(int j = 0; j < W - 1; j++){
vector<int> v;
for(int i = 0; i < H; i++){
v.push_back(f(i, j, W));
v.push_back(f(i, j + 1, W));
}
dcol.push_back(add_or(v));
}
int DCOL = add_or(dcol);
for(int i = 0; i < H; i++){
vector<int> v;
for(int j = 0; j < W; j++){
v.push_back(f(i, j, W));
}
olin.push_back(add_or(v));
}
int OLIN = add_or(olin);
int BB = add_and({DCOL, OLIN});
add_or({AA, BB});
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
260 KB |
WA in grader: Instruction with no inputs |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
260 KB |
WA in grader: Instruction with no inputs |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
260 KB |
WA in grader: Instruction with no inputs |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
260 KB |
WA in grader: Instruction with no inputs |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 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), (1, 1), expected 0, but computed 1 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
28 ms |
2548 KB |
on inputs (126, 120), (176, 169), expected 0, but computed 1 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
260 KB |
WA in grader: Instruction with no inputs |
2 |
Halted |
0 ms |
0 KB |
- |