#include "vision.h"
#include <bits/stdc++.h>
using namespace std;
void construct_network(int m, int n, int k)
{
vector<int> vx,hx,tmp;
for(int i = 0;i < m;i++)
{
tmp.clear();
for(int j = 0;j < n;j++) tmp.push_back(i*n+j);
hx.push_back(add_xor(tmp));
}
for(int i = 0;i < n;i++)
{
tmp.clear();
for(int j = 0;j < m;j++) tmp.push_back(j*n+i);
vx.push_back(add_xor(tmp));
}
vector<int> sv,sh;
for(int i = 0;i+k < m;i++) sh.push_back(add_and({hx[i],hx[i+k]}));
for(int i = 0;i+k < n;i++) sv.push_back(add_and({vx[i],vx[i+k]}));
int ov = add_or(sv),oh = add_or(sh);
add_xor({ov,oh});
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
256 KB |
WA in grader: Instruction with no inputs |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
256 KB |
WA in grader: Instruction with no inputs |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
256 KB |
WA in grader: Instruction with no inputs |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
256 KB |
WA in grader: Instruction with no inputs |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
384 KB |
WA in grader: Instruction with no inputs |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
256 KB |
Output is correct |
2 |
Incorrect |
1 ms |
256 KB |
WA in grader: Instruction with no inputs |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
10 ms |
1152 KB |
on inputs (57, 107), (59, 108), expected 0, but computed 1 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
256 KB |
WA in grader: Instruction with no inputs |
2 |
Halted |
0 ms |
0 KB |
- |