#include "vision.h"
#include<bits/stdc++.h>
using namespace std;
int n,m;
const int maxn=400+10;
int solve(int k){
vector<int>all0[maxn],all1[maxn],ps0,ps1;
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
all0[i+j].push_back(i*m+j);
all1[i+(m-j-1)].push_back(i*m+j);
}
}
vector<int>ret;
for(int i=k;i<=n+m-1;i++){
ps0.push_back(add_or(all0[i-k]));
ps1.push_back(add_or(all1[i-k]));
ret.push_back(add_and({add_or(all0[i]),add_or(ps0)}));
ret.push_back(add_and({add_or(all1[i]),add_or(ps1)}));
}
return add_or(ret);
}
void construct_network(int H, int W, int fas) {
n=H;
m=W;
if(fas==(n+m-1)){
solve(fas);
}else{
add_and({solve(fas),add_not(fas+1)});
}
}
# |
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 |
0 ms |
604 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 |
2140 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 |
- |