#include<stdio.h> #include<string.h> #include<math.h> #include<stdlib.h> #include<algorithm> #include<iostream> #include<queue> using namespace std; int n, sx, sy, sz, ex, ey, ez; char mp[15][15][15]; int vis[15][15][15]; int d[6][3] = { 0,0,1,0,1,0,1,0,0,0...