#include "vision.h"
#include <bits/stdc++.h>
using namespace std;
void construct_network(int h, int w, int k) {
vector <int> linha;
for(int i = 0;i < h;i++){
vector <int> v;
for(int j = 0;j < w;j++){
v.push_back(i*w+j);
}
linha.push_back(add_xor(v));
}
vector <int> coluna;
for(int j = 0;j < w;j++){
vector <int> v;
for(int i = 0;i < h;i++){
v.push_back(i*w+j);
}
coluna.push_back(add_xor(v));
}
int l = add_not(add_or(linha));
int c = add_not(add_or(coluna));
vector <int> aux;
for(int i = 0;i < h-1;i++){
aux.push_back(add_and({linha[i], linha[i+1]}));
}
int ll = add_or(aux);
aux.clear();
for(int i = 0;i < w-1;i++){
aux.push_back(add_and({coluna[i], coluna[i+1]}));
}
int cc = add_or(aux);
add_or({add_and({l, ll}), add_and({c, cc})});
return;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
WA in grader: Instruction with no inputs |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
WA in grader: Instruction with no inputs |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
WA in grader: Instruction with no inputs |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
348 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 |
1 ms |
348 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 |
6 ms |
1116 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 |
348 KB |
WA in grader: Instruction with no inputs |
2 |
Halted |
0 ms |
0 KB |
- |