摘要: 思路: 依题意模拟即可,注意等号。 代码: #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int n,m; int a[N],b[N]; int main () { cin >> n 阅读全文
posted @ 2022-06-26 13:37 incra 阅读(15) 评论(0) 推荐(0)
摘要: 首先,我们可以用 \(2^10=1024\) 的复杂度暴搜,然后再来判断当前这种情况的结束时刻。 现在我们通过爆搜获得了一个长度为 \(1010\) 的由 \(0、1\) 组成的字符串。然后维护两个数组 $a、b,a_i$维护的是 \(i\) 队在当前时刻进球数量之后最多进球的数量,\(b_i\) 阅读全文
posted @ 2022-06-26 10:56 incra 阅读(66) 评论(0) 推荐(0)