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 ...