← All sheets

Basics of Dynamic Programming

Learn to break problems into subproblems — 100 CodeForces problems tagged dp, laddered from 800 up to 1400 as the states get richer.

100 problems19 rated 8009 rated 9009 rated 100023 rated 110018 rated 120012 rated 130010 rated 1400
#ProblemRatingStatusLinks
001Hit the Lottery996A800
002Fair Division1472B800
003Maximum Increase702A800
004Stone Game1538A800
005QAQ894A800
006No Casino in the Mountains2126B800
007Gift Carpet1862A800
008Thorns and Coins1932A800
009The Cake Is a Lie1519B800
010Team Training2091B800
011Last Year's Substring1462B800
012Blackslex and Showering2179B800
013Alex and a Rhombus1180A800
014Max Plus Size2019A800
015Gregor and the Pawn Game1549B800
016Love Song1539B800
017Computer Game1598A800
018A Simple Sequence2210A800
019Last minute enhancements1466B800
020Kefa and First Steps580A900
021New Year's Number1475B900
022Make it Divisible by 251593B900
023Rudolf and the Ugly String1941C900
024Filling Diamonds1339A900
025Make Product Equal One1206B900
026Chess For Three1973A900
027Also Try Minecraft1709B900
028Mocha and Red and Blue1559B900
029Raspberries1883C1000
030Filling Shapes1182A1000
031Rudolf and 1211941B1000
032Gold Rush1829D1000
033Red and Blue1469B1000
034Need More Arrays2114C1000
035New Theatre Square1359B1000
036Cormen --- The Best Friend Of a Man732B1000
037Two Binary Strings1861B1000
038Interesting drink706B1100
039Fence363B1100
040Ilya and Queries313B1100
041Sereja and Suffixes368B1100
042Negatives and Positives1791E1100
043Erase First or Second Letter1917B1100
044Yarik and Array1899C1100
045Long Jumps1472C1100
046Perfect Number919B1100
047Binary Cut1971D1100
048Collecting Game1904B1100
049Subsequence Addition (Hard Version)1807G21100
050Card Constructions1345B1100
051Skibidus and Fanum Tax (easy version)2065C11100
052Fun with Even Subarrays1631B1100
053Product of Binary Decimals1950D1100
054Array Fix1948B1100
055Sequential Nim1382B1100
056Joysticks651A1100
057Maximum Sum1946B1100
058Sakurako's Hobby2008D1100
059Huge Pile2184C1100
060Subsequence Addition (Easy Version)1807G11100
061BerSU Ball489B1200
062Kuriyama Mirai's Stones433B1200
063Flipping Game327A1200
064Alternating Subsequence1343C1200
065Three Activities1914D1200
066Petr and a Combination Lock1097B1200
067Ternary String1354B1200
068Vlad and a Sum of Sum of Digits1926C1200
069Yet Another Broken Keyboard1272C1200
070Even-Odd Game1472D1200
071Sort1996C1200
072Young Explorers1355B1200
073Lecture Sleep961B1200
074Uninteresting Number2050C1200
075Maximum Product1406B1200
076Test of Love1992D1200
077Delete Two Elements1598C1200
078Yet Another Coin Problem1934B1200
079Cut Ribbon189A1300
080Dreamoon and WiFi476B1300
081Find the Different Ones!1927D1300
082Just Eat It!1285B1300
083Yet Another Problem About Pairs Satisfying an Inequality1703F1300
084Strange Birthday Party1470A1300
085Polygon1360E1300
086Make it Alternating1879C1300
087White-Black Balanced Subtrees1676G1300
088Coin Rows1555C1300
089Triple Operations1999E1300
090WOW Factor1178B1300
091Given Length and Sum of Digits...489C1400
092Vacations698A1400
093I Hate 11111526B1400
094Basketball Exercise1195C1400
095Orac and Models1350B1400
096Mashmokh and ACM414B1400
097Grouping Increases1919C1400
0982^Sort1692G1400
099Create The Teams1380C1400
100Journey Planning1320A1400

“Open in app” uses the cpally:// protocol and opens the problem directly in CP Ally IDE.