You are given the array aa a consisting of n positive (greater than zero) integers. In one move, yo ...
Name A Remove Smallest x B Gifts Fixing x C Boats Competition x D Binary String To Subsequences x E Weights Division easy version x E Weights Division hard version x F Yet Another Segments Subset x A ...
2020-08-06 00:52 0 507 推荐指数:
You are given the array aa a consisting of n positive (greater than zero) integers. In one move, yo ...
You have n gifts and you want to give all of them to children. Of course, you don't want to offend a ...
A:判断一下和是不是3的倍数,由于只加不减,所以还要判断有没有大于和的1/3。 View Code B:发现只能向上和向右。所以我们必须保证序列在两维上非降。那 ...
A:整个串数字和%2==0,末尾%2==1,不就是挑出来两个奇数吗。。 CF1291A B:由于只能变小不能变大,所以单升的必须满足a[i]>=i-1,单降的满足a[i]>=n-i。从前往后扫找到第一个不满足a[i]>=i-1 ...
A:送分,裸的gcd。 View Code B:送分,直接把能用的都用掉就行。 View Code C:送分,手玩一下发现每个块的贡献是斐波那契数列。而且好像这题之前CF出过的。 View ...
Codeforces Round #538 (Div. 2) (CF1114) 今天昨天晚上的cf打的非常惨(仅代表淮中最低水平 先是一路缓慢地才A掉B,C,然后就开始杠D。于是写出了一个O(n^2)的线性dp,然后就wa6,调到结束。结束后发现完全看漏了两句话。噢,起始 ...
开题1小时(雾)严重影响我的提交以及做题心情。。我刚开题就发现有人阿克了。。 实际上这场div3真心简单良心很休闲。 A:送分题,先排序,每次枚举一下这个数可以加到哪个集合里,加进去就行。 View Code B:双倍经验送分题。直接跑tarjan,输出每个 ...
Codeforces Round #698 (Div. 2) Problems # Name A Nezzar and Colorful Balls x14328 ...