![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
BFS入门
Lmtsunshine
这个作者很懒,什么都没留下…
展开
-
BFS入门-Red and Black
DescriptionThere is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to one of four adjacent t原创 2017-01-13 17:10:42 · 256 阅读 · 0 评论 -
BFS入门- Catch That Cow
DescriptionFarmer 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 at a poin原创 2017-01-13 18:44:40 · 191 阅读 · 0 评论 -
BFS入门-A strange lift
DescriptionThere is a strange lift.The lift can stop can at every floor as you want, and there is a number Ki(0 <= Ki <= N) on every floor.The lift have just two buttons: up and down.When you at原创 2017-01-13 19:21:24 · 208 阅读 · 0 评论 -
BFS入门-Knight Moves
DescriptionA friend of you is doing research on the Traveling Knight Problem (TKP) where you are to find the shortest closed tour of knight moves that visits each square of a given set of n squa原创 2017-01-13 20:07:35 · 170 阅读 · 0 评论 -
BFS入门-A计划
Description可怜的公主在一次次被魔王掳走一次次被骑士们救回来之后,而今,不幸的她再一次面临生命的考验。魔王已经发出消息说将在T时刻吃掉公主,因为他听信谣言说吃公主的肉也能长生不老。年迈的国王正是心急如焚,告招天下勇士来拯救公主。不过公主早已习以为常,她深信智勇的骑士LJ肯定能将她救出。现据密探所报,公主被关在一个两层的迷宫里,迷宫的入口是S(0,0,0),公主的位置用P表原创 2017-01-13 20:18:44 · 385 阅读 · 0 评论