我tm也是啊
by Earlyzzy @ 2024-04-01 21:13:40
```
#include<bits/stdc++.h>
using namespace std;
int n,m,a[101][101];
int main(){
int ans=0,f[101][101];
cin>>n>>m;
for(int i=1;i<=n;i++){
for(int j=1;j<=m;j++){
cin>>a[i][j];
if(a[i][j]==1) f[i][j]=min(min(a[i-1][j],a[i][j-1]),a[i-1][j-1])+1;
ans=max(f[i][j],ans);
}
}
cout<<ans;
return 0;
}
```
by Lyx8058 @ 2024-05-01 10:17:33
```
#include<bits/stdc++.h>
using namespace std;
int n,m,a[101][101];int ans=0,f[101][101];
int main(){
cin>>n>>m;
for(int i=1;i<=n;i++){
for(int j=1;j<=m;j++){
cin>>a[i][j];
if(a[i][j]==1) f[i][j]=min(min(f[i-1][j],f[i][j-1]),f[i-1][j-1])+1;
ans=max(f[i][j],ans);
}
}
cout<<ans;
return 0;
}
```
by Lyx8058 @ 2024-05-01 10:19:58
第九行改了就满分,没改就20
by Lyx8058 @ 2024-05-01 10:20:50