代码改变世界

随笔档案-2012年3月8日

poj 2251 Dungeon Master ----BFS (三维六个方向)

2012-03-08 19:44 by java环境变量, 291 阅读, 收藏,
摘要: Dungeon MasterTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 10701Accepted: 4129DescriptionYou 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 not be filled with rock. It takes one minute to move one unit north, sou. 阅读全文

poj 3083 children of the candy corn----DFS 和BFS (蛋疼的方向)

2012-03-08 13:52 by java环境变量, 430 阅读, 收藏,
摘要: Children of the Candy CornTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 6047Accepted: 2637DescriptionThe cornfield maze is a popular Halloween treat. Visitors are shown the entrance and must wander through the maze facing zombies, chainsaw-wielding psychopaths, hippies, and other terrors. 阅读全文