#include "vision.h"
#include<bits/stdc++.h>
using namespace std;
typedef int ll;
vector<ll>v,w;
bool b[200][200][200][200];
ll n,m,gg;
ll cal(ll xx,ll yy)
{
ll id2=(xx*m)+yy;
w.push_back(id2);
}
void construct_network(int H, int W, int k)
{
n=H,m=W,gg=n*m;
for(ll i=0; i<n; i++)
for(ll j=0; j<m; j++)
{
w.clear();
cal(i,j);
for(ll op=j+1; (op<m&&op-j<=k); op++)
{
ll c=i+k-op;
if(c>=n)
continue;
if(b[i][j][op][c])
continue;
b[i][j][op][c]=1;
cal(c,op);
}
for(ll c=i+1; (c<n&&c-i<=k); c++)
{
ll op=j+k-c;
if(op>=m)
continue;
if(b[i][j][op][c])
continue;
b[i][j][op][c]=1;
cal(c,op);
}
if(w.size()>1)
add_and(w),v.push_back(gg++);
}
add_or(v);
}
Compilation message
vision.cpp: In function 'll cal(ll, ll)':
vision.cpp:12:1: warning: no return statement in function returning non-void [-Wreturn-type]
12 | }
| ^
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
71 ms |
332 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
71 ms |
332 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
71 ms |
332 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
71 ms |
332 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
76 ms |
332 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
72 ms |
332 KB |
Execution killed with signal 6 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
81 ms |
332 KB |
Execution killed with signal 6 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
71 ms |
332 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |