A Jelly思路:非常裸的一个三维bfs,Dungeon Master poj2251和这题差不多。就是在二维的基础上多加两个方向,其他的就是常规操作。代码 #include<iostream> #include<queue> #include<cstring> using namespace std; char str[300][300][300]; int vis[300][300][300]; int step[300][300][300]; int dir[6][3]={{-1,0,0},{1,0,0},{0,-1,0},{0,1,0},{0,0,...