随笔分类 -  BFS

摘要:题目:http://www.acmore.net/problem.php?cid=1013&pid=5#include <iostream>#include <stdio.h>#include <string>#include <string.h>#include <algorithm>#include <math.h>#include <fstream>#include <vector>#include <map>#include <queue>#include & 阅读全文
posted @ 2013-05-06 22:04 Roly Yu 阅读(299) 评论(0) 推荐(0)
摘要:#include <iostream>#include <stdio.h>#include <string>#include <string.h>#include <algorithm>#include <stdlib.h>#include <math.h>#include <queue>using namespace std;const int maxn = 205;const int inf = 0xfffffff;struct node{ int x,y; int step; int time 阅读全文
posted @ 2013-04-24 16:41 Roly Yu 阅读(277) 评论(0) 推荐(0)