POJ 2251 Dungeon Master(BFS)
传送门:Dungeon Master
人一我百!人十我万!永不放弃~~~怀着自信的心,去追逐梦想 ——kuangbin
Problem
Description
You 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, south, east, west, up or down. You cannot move diagonally and the maze is surrounded by solid rock on all sides.
Is an escape possible? If yes, how long will it take?