Qiuqiqiu  
不管道路多么崎岖坎坷,我永远不停下追逐梦想的脚步!

2011年12月17日

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1044先BFS求出起始位置,宝石,出口,任意2点的最短距离再DFS搜索所有的可能性我的代码 1 #include <cstdio> 2 #include <cctype> 3 #include <cstring> 4 #include <queue> 5 using namespace std; 6 const int N=60; 7 const int dx[4]={0,1,0,-1}; 8 const int dy[4]={1,0,-1,0}; 9 char 阅读全文
posted @ 2011-12-17 18:17 Qiuqiqiu 阅读(331) 评论(0) 推荐(0) 编辑