bfs
文章平均质量分 76
Abandoninged
这个作者很懒,什么都没留下…
展开
-
HDU - 1429 胜利大逃亡(续)
Ignatius再次被魔王抓走了(搞不懂他咋这么讨魔王喜欢)…… 这次魔王汲取了上次的教训,把Ignatius关在一个n*m的地牢里,并在地牢的某些地方安装了带锁的门,钥匙藏在地牢另外的某些地方。刚开始Ignatius被关在(sx,sy)的位置,离开地牢的门在(ex,ey)的位置。Ignatius每分钟只能从一个坐标走到相邻四个坐标中的其中一个。魔王每t分钟回地牢视察一次,若发现Ignatius...原创 2018-07-30 17:22:56 · 260 阅读 · 0 评论 -
CSU - 2061 E - 迭代加深DFS/BFS
Z is crazy about coffee. One day he bought three cups of coffee. The first cup has a capacity of A ml, the second has B ml and the third has C ml. At the beginning, only the first cup is full of cof...原创 2018-07-28 08:56:40 · 351 阅读 · 0 评论