#forces

codeforces 450B Jzzhu and Sequences

题目链接:http://codeforces.com/contest/450/problem/B解题思路:找循环节。注意当f[i]是负数的时候一定要把他加上mod直到>0为止;e:-3%4==1;#include<iostream>usingnamespacestd;constintmod=1e9+7...

Codeforces Round #423 (Div. 2, rated, based on VK Cup Finals)爆零记

昨晚一个瓜皮说今晚有cf,听说是晚间场,我瞅了一眼,娃,VKCup,上分的好机会,看着比赛时间就有点心酸了,0:35,当时一直在纠结要不要打的问题,当时想着应该不难吧,要不打一下吧,要不还是看看题先,如果容易就打,难的话就不打了好的吧!于是就这样愉快的决定了。。。。。。。cf日常延时10分钟,0:45,要不要去睡觉啊,...

Codeforces Round #336 (Div. 2)【A.思维,暴力,B.字符串,暴搜,前缀和,C.暴力,D,区间dp,E,字符串,数学】

timelimitpertest:1secondmemorylimitpertest:256megabytesinput:standardinputoutput:standardoutputSaitamaaccidentallydestroyedahotelagain.Torepaythehotelcompany,Ge...

Codeforces 833E Caramel Clouds

timelimitpertest:3secondsmemorylimitpertest:256megabytesinput:standardinputoutput:standardoutputItiswell-knownthatthebestdecorationforaflowerbedinSweetlandareva...

Codeforces 833D Red-black Cobweb【树分治】

timelimitpertest:6secondsmemorylimitpertest:256megabytesinput:standardinputoutput:standardoutputSlastyonalikestowatchlifeofnearbygrove'sdwellers.Thistimeshewatc...

Codeforces 834E The Bakery【枚举+数位dp】

timelimitpertest:1secondmemorylimitpertest:256megabytesinput:standardinputoutput:standardoutputRecently,awildKrakozyabraappearedatJellyCastle.Itis,truthtobesaid...

Codeforces 834D The Bakery【dp+线段树维护+lazy】

timelimitpertest:2.5secondsmemorylimitpertest:256megabytesinput:standardinputoutput:standardoutputSometimeagoSlastyonatheSweetmaiddecidedtoopenherownbakery!Sheb...

Codeforces Round #426 (Div. 2)【A.枚举,B.思维,C,二分+数学】

timelimitpertest:1secondmemorylimitpertest:256megabytesinput:standardinputoutput:standardoutputWalkingthroughthestreetsofMarshmallowCity,Slastyonahavespottedsom...

Codeforces Round #434 (Div. 2, based on Technocup 2018 Elimination Round 1)&&Codeforces 861C Did you mean...【字符串枚举,暴力】

timelimitpertest:1secondmemorylimitpertest:256megabytesinput:standardinputoutput:standardoutputBerofficetexteditorhasawiderangeoffeaturesthathelpworkingwithtext...

Codeforces Round #434 (Div. 2, based on Technocup 2018 Elimination Round 1)&&Codeforces 861B Which floor?【枚举,暴力】

timelimitpertest:1secondmemorylimitpertest:256megabytesinput:standardinputoutput:standardoutputInabuildingwherePolycarplivesthereareequalnumberofflatsoneachfloo...

Codeforces Round #434 (Div. 2, based on Technocup 2018 Elimination Round 1)&&Codeforces 861A k-rounding【暴力】

timelimitpertest:1secondmemorylimitpertest:256megabytesinput:standardinputoutput:standardoutputForagivenpositiveintegerndenoteitsk-roundingastheminimumpositivei...

Codeforces 842B Gleb And Pizza【几何,水】

timelimitpertest:2secondsmemorylimitpertest:256megabytesinput:standardinputoutput:standardoutputGleborderedpizzahome.Whenthecourierdeliveredthepizza,hewasveryup...

Codeforces 842A Kirill And The Game【暴力,水】

timelimitpertest:2secondsmemorylimitpertest:256megabytesinput:standardinputoutput:standardoutputKirillplaysanewcomputergame.Hecametothepotionstorewherehecanbuya...

Codeforces 839E Mother of Dragons【__builtin_popcount()的使用】

timelimitpertest:2secondsmemorylimitpertest:256megabytesinput:standardinputoutput:standardoutputTherearencastlesintheLannister'sKingdomandsomewallsconnecttwocas...

Codeforces 839D Winter is here【数学:容斥原理】

timelimitpertest:3secondsmemorylimitpertest:256megabytesinput:standardinputoutput:standardoutputWinterishereattheNorthandtheWhiteWalkersareclose.JohnSnowhasanar...
首页上一页...56789...下一页尾页