
广度优先遍历
wang_hoho
这个作者很懒,什么都没留下…
展开
-
CSU - 1566 - The Maze Makers
1566: The Maze MakersSubmit Page Summary Time Limit: 1 Sec Memory Limit: 128 Mb Submitted:171 Solved:68 DescriptionThe Maze Makers is a publisher原创 2017-08-01 16:20:20 · 226 阅读 · 0 评论 -
CSU - 1569 - Wet Tiles
1569: Wet TilesSubmit Page Summary Time Limit:60 Sec Memory Limit: 512 Mb Submitted:255 Solved:106 DescriptionAlice owns a construction company in原创 2017-07-31 20:58:52 · 218 阅读 · 0 评论 -
UVALive - 7672 - What a Ridiculous Election(搜索预处理)
In country Light Tower, a presidential election is going on. There are two candidates, Mr. X1andMr. X2, and both of them are not like good persons. One is called a liar and the other is called ama原创 2017-11-15 16:53:22 · 449 阅读 · 0 评论 -
POJ - 3083 - Children of the Candy Corn(BFS+DFS)
Children of the Candy CornTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 14378 Accepted: 6203DescriptionThe cornfield maze is a popular Halloween treat原创 2017-11-20 22:47:37 · 193 阅读 · 0 评论 -
HDU - 1242 - Rescue (BFS)
RescueTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 32900 Accepted Submission(s): 11516Problem DescriptionAngel was cau原创 2017-11-24 20:51:48 · 206 阅读 · 0 评论 -
2018年全国多校算法寒假训练营练习比赛(第四场) - E - 通知小弟(BFS)
链接:https://www.nowcoder.com/acm/contest/76/E来源:牛客网题目描述 在战争时期,A国派出了许多间谍到其他国家去收集情报。因为间谍需要隐秘自己的身份,所以他们之间只是单向联系。所以,某个间谍只能单向联系到一部分的间谍。同时,间谍也不知道跟他联系的是谁。HA是间谍们的老大,但他也只能联系到部分的间谍。HA现在有一项命令有告诉所有的间谍...原创 2018-02-22 12:10:01 · 228 阅读 · 0 评论 -
2018年全国多校算法寒假训练营练习比赛(第四场) - G - 老子的意大利炮呢(搜索)
链接:https://www.nowcoder.com/acm/contest/76/G来源:牛客网题目描述 自攻打过太原县城以后,李云龙这意大利炮就使用的越发的顺手了,指哪打哪也是绝不含糊,于是小野队长开始疯狂打击独立团炮兵营,为了锻炼士兵移动意大利炮的能力,李团长开始给炮兵营进行特训,众(wo)所(xia)周(bian)知(de),意大利炮可由炮管,车轮,炮弹三部分组成,现在李团长在洋...原创 2018-02-22 12:21:39 · 351 阅读 · 0 评论 -
HDU - 6113 - 度度熊的01世界(搜索)
HDU - 6113 - 度度熊的01世界突然发现之前这道题目没过只要找出所有的0,1连通块,然后按条件输出就行了如果0连通块的边界是整个图的边界即说明这个0连通块没有被1连通块包围#include <iostream>#include <string.h>#include <stdio.h>#include <queue>...原创 2018-08-19 23:33:09 · 169 阅读 · 0 评论