BFS 实现 #include <bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); vector<vector<int>> movelist{{0,-1},{0,1},{-1,0},{1,0}}; int n, m; cin >> n >> m; int sx, sy, tx, ty; cin >> sx >> sy >&...