https://blog.csdn.net/csyifanZhang/article/details/106146715
↑完整题解
#define inf 0x3f3f3f3f
#define MAX 105
#define ll int
#define vec vector<ll>
#define P pair<ll,ll>
string a[MAX];
ll gx, gy, sx, sy, M, N, T, t;
ll dx[4] = { 0,0,1,-1 }, dy[4] = { 1,-1,0,0 };
...