#include<bits/stdc++.h> using namespace std; const int N=363000; string st[N]; unordered_map<string,int > mp; int last[N]; bool used[N];//表示每一个状态是否使用过 int cnt=1; string s,t="12345678x"; int dx[5]={0,1,-1,0,0},dy[5]={0,0,0,1,-1};//下上右左 char dic[10]={'0','d','u','r','l'}; char mv[N]; queu...