bfs
文章平均质量分 83
Xuedan_blog
这个作者很懒,什么都没留下…
展开
-
POJ3278 Catch That Cow(BFS)
Catch That CowFarmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a numbe...原创 2018-06-12 21:21:04 · 157 阅读 · 0 评论 -
POJ 2251 Dungeon Master 三维空间BFS(基础题)
B - Dungeon Master POJ - 2251 You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled with rock. It takes one minute...原创 2018-06-06 14:51:03 · 245 阅读 · 0 评论 -
BFS DFS模板
//建立搜索区,一维/二维/三维 根据题目需要 int map[]; //访问数组 int vis[]; //搜索节点,结构体里的变量根据题目要求建立 struct node { int x,step; }; //判断该节点是否符合条件 int check(node x) { if()//符合 return 1; return 0; } int bfs(i...原创 2018-06-24 10:28:00 · 224 阅读 · 0 评论 -
poj 3126 Prime Path (BFS + 素数打表)
poj 3126 (BFS + 素数打表)The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-di...原创 2018-06-20 17:46:23 · 159 阅读 · 0 评论