路径打印
qq_42174817
这个作者很懒,什么都没留下…
展开
-
POJ - 3984 迷宫问题【bfs路径打印】
K - 迷宫问题 POJ - 3984 定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, }; 它表示一个迷宫,其中的1表示墙壁,0表示可以走的路,只能横着走或竖着走,不能斜着走,要求编程序找出从左上角到右下角...原创 2018-09-25 20:22:57 · 133 阅读 · 0 评论 -
POJ - 3414 Pots 【路径打印+bfs】
Pots You are given two pots, having the volume of A and B liters respectively. The following operations can be performed: FILL(i) fill the pot i (1 ≤ i ≤ 2) from the tap; DROP(i) ...原创 2018-09-25 20:35:26 · 102 阅读 · 0 评论