
BFS
文章平均质量分 87
什么样的小孩
欢迎各位大佬和我一起交流算法,指正不足,共同进步!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
UVA - 11624 Fire!
多入队的BFS原创 2017-08-13 23:55:31 · 181 阅读 · 0 评论 -
FZU - 2150 Fire Game
Fire GameFat brother and Maze are playing a kind of special (hentai) game on an N*M board (N rows, M columns). At the beginning, each grid of this board is consisting of grass or just empty an原创 2017-08-13 23:48:37 · 311 阅读 · 0 评论 -
HDU - 1495 非常可乐
非常可乐大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认为。因为每次当seeyou买了可乐以后,阿牛就要求和seeyou一起分享这一瓶可乐,而且一定要喝的和seeyou一样多。但seeyou的手中只有两个杯子,它们的容量分别是N 毫升和M 毫升 可乐的体积为S (S<101)毫升 (正好装满一瓶) ,它们三个之间可以相互倒可乐 (都是没有刻度的,且 S==N+M,1原创 2017-08-13 23:44:28 · 212 阅读 · 0 评论 -
POJ - 3278 Catch That Cow
Catch That CowFarmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a pointN (0 ≤ N ≤ 100,000) on a number line and the cow is原创 2017-08-13 23:38:01 · 249 阅读 · 0 评论 -
POJ - 3087 Shuffle'm Up
Shuffle'm UpA common pastime for poker players at a poker table is to shuffle stacks of chips. Shuffling chips is performed by starting with two stacks of poker chips,S1 and S2, each sta原创 2017-08-14 23:04:04 · 191 阅读 · 0 评论 -
HAUTOJ 1280: 诡异的迷宫
1280: 诡异的迷宫时间限制: 2 秒 内存限制:128 MB提交: 167 解决: 24 题目描述Simple最近刷题(打游戏)刷多了,一觉醒来发现自己到了一个迷宫里,怎么也出不去了。这时传来了一句话,告诉Simple必须按顺序收集完所有的宝石,才能出迷宫。所谓的顺序,就是按照每块宝石上英文字母的顺序。迷宫里面还有一些传送门,可以传送到任意一个另外的传送门原创 2017-08-14 23:24:10 · 277 阅读 · 0 评论