摘要:
https://codeforces.com/contest/1342 以后= 1 ? c[l 1] : 0); printf("%lld ", ans); } puts(""); return; } cpp int n, k; int a[200005]; int c[200005]; int c 阅读全文
摘要:
题目链接:https://codeforces.com/contest/1343 A Candies 随便做做。 B Balanced Array 随便做做。 C Alternating Subsequence 贪心,每段连续的正数和负数选最大的。 需要注意的是,若距离总和超过边的总数,则说明枚举的 阅读全文
摘要:
链接:https://codeforces.com/contest/1335 A Candies and Two Sisters 略 B Construct the String 略 C Two Teams Composing 题意:给n个数,要求找到一个x,使得可以从n个数中先选出一个x个数的无重 阅读全文