第一题就是几遍bfs,若走一遍没发现有key被置为0,则退出bfs 第二题的数学操作是知识盲区,第一题A了后就交卷了。 #include <iostream> #include <string> #include <vector> #include <queue> using namespace std; int main() { string temp; int n, m, start_x, start_y, get_flag = 0; vector<vector<int>> dir = { {0,1},...