题意: 思路: #include <cstdio> #include <queue> #include <iostream> #include <stdlib.h> using namespace std; int cnt; const int N = 1e3 + 10; int dx[] = {1,-1,0,0,1,1,-1,-1},dy[] = {0,0,1,-1,1,-1,1,-1}; int n,m; char mp[N][N]; bool vis[2][N][N]; queue< pair<int,int> >...