摘要:
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
阅读全文