第二题用了dfs(好像用bfs会更简洁) #include<vector> using namespace std; // #include<algorithm> #include<iostream> // write your code in C++ (C++14 (g++ 6.2.0)) int ans = 1; bool dfs(vector<vector<char>...