BFS
Detective-Conan
且随疾风前行 身后亦须留心
展开
-
sdut 3468 广度优先搜索练习之神奇的电梯(BFS)
广度优先搜索练习之神奇的电梯Time Limit: 1000ms Memory limit: 65536K 有疑问?点这里^_^题目描述有一座已知层数为n的高楼,这座高楼的特殊之处在于只能靠电梯去上下楼,所以要去到某一层要非常耽误时间,然而更悲哀的是,这座高楼的电梯是限号的,小鑫最开始的时候在1层,他想去第x层,问题是他最起码要经过多少层(包含第x层)才能到达第x原创 2016-06-23 10:15:22 · 408 阅读 · 0 评论 -
UVALive 7226 Coin Swap
题目链接:https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=5238A graph G = (V, E) has a set of V vertices and a set E of edges, and it is connected原创 2016-11-27 19:06:33 · 437 阅读 · 0 评论 -
poj 3414 Pots
PotsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 14190 Accepted: 5974 Special JudgeDescriptionYou are given two pots, having the volume of A and原创 2016-08-07 19:25:59 · 322 阅读 · 1 评论 -
poj 3126 Prime Path
Prime PathTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 17252 Accepted: 9710DescriptionThe ministers of the cabinet were quite upset by the message fr原创 2016-08-07 12:58:12 · 215 阅读 · 0 评论 -
poj 1426 Find The Multiple
Find The MultipleTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 26927 Accepted: 11175 Special JudgeDescriptionGiven a positive integer n, write a p原创 2016-08-07 09:54:19 · 213 阅读 · 0 评论 -
poj 2251 Dungeon Master
Dungeon MasterTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 26746 Accepted: 10451DescriptionYou are trapped in a 3D dungeon and need to find the quick原创 2016-08-06 21:33:45 · 282 阅读 · 0 评论 -
poj 3083 Children of the Candy Corn
Children of the Candy CornTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 12665 Accepted: 5435DescriptionThe cornfield maze is a popular Halloween treat原创 2016-07-28 09:21:29 · 242 阅读 · 0 评论 -
poj 2049 Finding Nemo
Finding NemoTime Limit: 2000MS Memory Limit: 30000KTotal Submissions: 8837 Accepted: 2080DescriptionNemo is a naughty boy. One day he went into the deep sea all b原创 2016-07-27 19:59:13 · 1251 阅读 · 0 评论 -
poj 3026 Borg Maze
Borg MazeTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 12608 Accepted: 4121DescriptionThe Borg is an immensely powerful race of enhanced humanoids fro原创 2016-07-29 21:14:14 · 378 阅读 · 0 评论 -
poj 3278 Catch That Cow
Catch That CowTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 74223 Accepted: 23398DescriptionFarmer John has been informed of the location of a fugitiv原创 2016-07-27 09:52:49 · 252 阅读 · 0 评论