这道题的思路就是: 每一个棋子都有翻转或者不翻转两种修改状态,然后就每个棋子都枚举这两种状态就ok了。 #include<bits/stdc++.h> using namespace std; const int M=20; char mp[M][M]; int mov[4][2]={{1,0},{-1,0},{0,1},{0,-1}}; bool check(int x,int y){ return x>=0&&x<4&&y>=0&&y<4; } bool isok(){ for(int i=0;i<4...