解法一: #include<iostream> #include<algorithm> #include<vector> #include<set> #include<cstring> #include<cstdio> #define M 1000000 using namespace std; typedef int type[9]; type qs[M]; type mb; int front,rear; int dir[4][2]={-1,0,0,-1,0,1,1,0}; int dis[M]={0}; set...