2015年8月5日

POJ 2251 Dungeon Master(bfs)

摘要: Dungeon MasterDescriptionYou are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may... 阅读全文

posted @ 2015-08-05 21:23 焰 阅读(134) 评论(0) 推荐(0) 编辑

POJ 3275 Catch That Cow(bfs)

摘要: Catch That CowDescriptionFarmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0... 阅读全文

posted @ 2015-08-05 21:19 焰 阅读(210) 评论(0) 推荐(0) 编辑

POJ 3984 迷宫问题(bfs+路径记录)

摘要: 迷宫问题Description定义一个二维数组: 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表示可以走的路,只能横着... 阅读全文

posted @ 2015-08-05 21:17 焰 阅读(164) 评论(0) 推荐(0) 编辑

导航