牛客小白月賽23 A-膜法記錄(貪心+枚舉)

題目傳送ios 用貪心的思想,先將行所有消滅,在判斷列有多少,和b比較一下。 每一行能夠消或不消,枚舉2^n。web #include <iostream> #include <cstring> #include <set> using namespace std; const int maxm = 1e5 + 5; int n, m, a, b, flag; char map[30][maxm
相關文章
相關標籤/搜索