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

2012年2月12日

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2531BFSView Code 1 #include <cstdio> 2 #include <cstring> 3 #include <queue> 4 using namespace std; 5 const int N=110; 6 const int dx[4]={0,1,0,-1}; 7 const int dy[4]={1,0,-1,0}; 8 char maze[N][N]; 9 int vis[N][N];10 int px[10010],py[10010] 阅读全文
posted @ 2012-02-12 21:13 Qiuqiqiu 阅读(343) 评论(0) 推荐(0) 编辑
 
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1180BFSView Code 1 #include <cstdio> 2 #include <cstring> 3 #include <queue> 4 using namespace std; 5 const int N=100; 6 const int dx[4]={0,1,0,-1}; 7 const int dy[4]={1,0,-1,0}; 8 char maze[N][N]; 9 int vis[N][N][2];10 int n,m,p,t;11 struc 阅读全文
posted @ 2012-02-12 10:33 Qiuqiqiu 阅读(404) 评论(0) 推荐(0) 编辑