poj1088
来源:互联网 发布:网络知识安全竞赛2017 编辑:程序博客网 时间:2024/06/05 10:32
#include
using namespace std;
int a[105][105],b[105][105],R,C;
int f(int i,int j){
int max=0;
if(b[i][j]>0)
if(j-1>=0)
if(j+1
if(i-1>=0)
if(i+1
return b[i][j]=max+1;
}
int main(){
cin>>R>>C;
for(int i=0;i
for(int i=0;i
for(int i=0;i
cout<<b[0][0]<<endl;
return 0;
}
0 0