牛客小白月赛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
相关文章
相关标签/搜索