✎
编程开发网
首页
C语言
C++
面试
Linux
函数
Windows
数据库
下载
搜索
当前位置:
首页
->
基础
->
c++编程基础
hdoj 1242 Rescue (BFS)(二)
2015-07-20 17:07:23
·
作者:
·
浏览:
9
标签:
hdoj
1242
Rescue
BFS
time;
}
}
}
}
int main()
{
while(~scanf("%d%d",&n,&m))
{
int i,j;
for(i=0;i
scanf("%s",map[i]);
init();
BFS();
if(cost[end_x][end_y]==-1)
printf("Poor ANGEL has to stay in the prison all his life.\n");
else
printf("%d\n",cost[end_x][end_y]);
}
return 0;
}
首页
上一页
1
2
下一页
尾页
2
/2/2