摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=1429BFS + 状态压缩View Code 1 #include <cstdio> 2 #include <cctype> 3 #include <queue> 4 using namespace std; 5 const int N=25; 6 const int dx[4]={0,1,0,-1}; 7 const int dy[4]={1,0,-1,0}; 8 char maze[N][N]={0}; 9 int vis[1100][N][N];10 int n,m,
阅读全文