观察矩阵只有4*4,每个点两种放法,故一共2^16方案,即二进制枚举所以方案判断这个点放'O'还是'X',都行就是'.' #include<bits/stdc++.h> using namespace std; int dir[8][2] = {{1, 0}, {-1, 0}, {0, -1}, {0, 1}, {1, -1}, {1, 1}, {-1, 1}, {-1, -1}}; int main() { ios::sync_with_stdio(false); cin.tie(0); int n = 4; vector<vector<char>> v(...