摘要: 题目大意:长度为n的序列,有m个1,问最多可以有多少子序列至少包含1个1。 很明显,我们要平均分配0这样肯定是最优的。 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define ll long long 4 int const N=1e5+ 阅读全文
posted @ 2020-03-15 17:33 zjxxcn 阅读(104) 评论(0) 推荐(0) 编辑