摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1312'.'可以走,'#'不可以走 '@'是起点 问最多走多少步就是坐标问题 弄的有点纠结 以后得养成好习惯 不然被坐标绕晕了代码(bfs版) :#include<iostream>#include<queue>#include<cstring>using namespace std;char ch[22][22];int r,c;int XX[4][2]={{-1,0},{0,-1},{0,1},{1,0}};struct 阅读全文
posted @ 2011-11-28 00:17 快乐. 阅读(229) 评论(0) 推荐(0) 编辑