[题目链接] http://acm.hdu.edu.cn/showproblem.php?pid=3085 [算法] 双向BFS [代码] #include<bits/stdc++.h> using namespace std; #define MAXN 810 ] = {,,-,}; ] = {-,,,}; int i,n,m,px,py,qx,qy,T; char mp[MAXN][MAXN]; bool visited1[MAXN][MAXN]; bool visited2[MAXN][…