摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4308思路:就是一般的广搜,然后要注意的地方就是位置P了,一次把所有的都入队列,然后标志置为true。别的的话就是随便搞搞就行了。 1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<queue> 5 using namespace std; 6 #define inf 1<<30 7 #define MAXN 5050 8 struct Node{ 阅读全文
posted @ 2013-05-19 19:50 ihge2k 阅读(220) 评论(0) 推荐(0) 编辑