灵感来源https://blog.nowcoder.net/n/6bcd181f88684b9a85c359f84a44539e矩阵消除游戏 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N = 20; int n, m, k; int a[N][N]; ll sh[N], sl[N], res = 0; bool st[N]; int deal(int x) { memset(st, 0, sizeof st); int cnt = 0, i = 1; ...