@[DAE_Goose](/user/741120) 是我孤陋寡闻了,但想请教一下下面是甚么骚操作
```
if(mapp[i,j] == 0)
```
by 6k823 @ 2022-12-15 21:38:32
bdfs 无果
by 6k823 @ 2022-12-15 21:39:15
@[DAE_Goose](/user/741120) 代码累赘太多,加上上面蒟蒻不理解的迷惑操作,我自己去写了遍
```
#include <bits/stdc++.h>
using namespace std;
int a[1001][1001], n;
int f(int, int);
int main(){
cin >> n;
for(int i = 1; i <= n; i ++)
for(int j = 1; j <= n; j ++)
cin >> a[i][j];
int ans = -1;
for(int i = 1; i <= n; i ++)
for(int j = 1; j <= n; j ++)
if(!a[i][j]) ans = max(ans, f(i, j));
if(ans == -1) cout << "Bad Game!";
else cout << ans;
return 0;
}
int f(int x, int y){
int sum = 0;
for(int i = 1; i <= n; i ++)
sum += a[x][i] + a[i][y];
return sum;
}
```
by 6k823 @ 2022-12-15 21:46:04