依然BFS。
三维迷宫的竖坐标是第一维!一不小心就写串了~~~
/*This Code is Submitted by Iris for Problem 1448 at 2013-07-24 17:48:59*/
#include <cstdio>
#include <cstring>
#include <queue>
#include <math.h>
using namespace std;
typedef struct point{
int x,y,z,step;
}point;
int move [6][3] = {{1,0,0},{-1,0,0},{0,0,-1},{0,0,1},{0,1,0},{0,-1,0}};
int main()
{
char cube[30][30][30];
int map[30][30][30];
int l,r,c;
while(scanf("%d %d %d",&l,&r,&......
阅读全文