{"trustable":false,"sections":[{"title":"Description - 题目描述","value":{"format":"HTML","content":"XHK被困在一个三维的网吧中,现在要寻找最短路径逃生!\n空间由立方体单位构成\n你每次向上下前后左右移动一个单位需要一分钟\n你不能对角线移动并且四周封闭\n是否存在逃出生天的可能性?如果存在,则需要多少时间?"}},{"title":"Input - 输入","value":{"format":"HTML","content":" 输入第一行是一个数表示空间的数量。\n 每个空间的描述的第一行为L,R和C(皆不超过30)。\n L表示空间的高度。\n R和C分别表示每层空间的行与列的大小。\n 随后L层地牢,每层R行,每行C个字符。\n 每个字符表示空间的一个单元。\u0027#\u0027表示不可通过单元,\u0027.\u0027表示空白单元。你的起始位置在\u0027S\u0027,出口为\u0027E\u0027。\n 每层空间后都有一个空行。L,R和C均为0时输入结束。"}},{"title":"Output - 输出","value":{"format":"HTML","content":" 每个空间对应一行输出。\u003cbr\u003e\n 如果可以逃生,则输出如下\u003cbr\u003e\nEscaped in x minute(s).\u003cbr\u003e\n x为最短脱离时间。\u003cbr\u003e\n\u003cbr\u003e\n 如果无法逃生,则输出如下\u003cbr\u003e\nTrapped!"}},{"title":"Sample Input - 输入样例","value":{"format":"HTML","content":"\u003cpre class\u003d\"sio\"\u003e3 4 5\nS....\n.###.\n.##..\n###.#\n\n#####\n#####\n##.##\n##...\n\n#####\n#####\n#.###\n####E\n\n1 3 3\nS##\n#E#\n###\n\n0 0 0\n\u003c/pre\u003e"}},{"title":"Sample Output - 输出样例","value":{"format":"HTML","content":"\u003cpre class\u003d\"sio\"\u003eEscaped in 11 minute(s).\nTrapped!\n\u003c/pre\u003e"}}]}