我也是dfs+回溯+剪枝,各位看看我判定局面的思路即可 // https://www.nowcoder.com/practice/78a1a4ebe8a34c93aac006c44f6bf8a1 #include <cstring> #include <iostream> using namespace std; const int maxn = 5 + 9; int a[maxn][maxn]; const int sx[] = {0, 1, 1, 1, 4, 4, 4, 7, 7, 7}; const int sy[] = {0, 1, 4, 7, 1, 4,...