1 #include<cstdio> //bfs; 2 #include<iostream> 3 #include<queue> 4 #include<memory.h> 5 using namespace std; 6 struct data 7 { 8 int x,y,t; 9 }now,pos; 10 int n,m,t,dis[4][2]={0,1,0,-1,1,0,-1,0}; 11 char map[105][105]; 12 void read() 13 { 14 memset(map,'