Codeforces problemset search & solutions
Exclude tags.

Review the problem statement from Codeforces (link will open a new tab). When you've matched your problem, go to the solutions.

Get exact match for tags using this format, eg: [u'brute force', 'dp']

Solved
Name
Tags
Solutions
Index
Contest
Type
Points
Tutorial
Rating Level
1303 Cyclic Shifts Sorting brute force constructive algorithms implementation Statement F Codeforces Round 653 (Div. 3) {1374} PROGRAMMING 79517
9274 Replace by MEX brute force constructive algorithms implementation Statement D Codeforces Global Round 9 {1375} PROGRAMMING 1750.0 79731
27469 Fix You brute force greedy implementation Statement B Codeforces Round 663 (Div. 2) {1391} PROGRAMMING 750.0 Codeforces Round #663 (Div. 2) Editorial
10983 Bouncing Ball brute force dp implementation Statement C Technocup 2021 - Elimination Round 2 {1415} PROGRAMMING 1250.0 Editorial of Codeforces Round 687 (Technocup 2021 — Elimitation Round 2)
703 Swedish Heroes brute force dp implementation Statement E Codeforces Round 676 (Div. 2) {1421} PROGRAMMING 2500.0 Codeforces Round #676 (Div. 2) Editorial
1350 Yurii Can Do Everything brute force divide and conquer greedy implementation Statement E Codeforces Round 682 (Div. 2) {1438} PROGRAMMING 2250.0 Codeforces Round #682 (Div. 2) Editorial
4505 Identify the Operations brute force combinatorics data structures ds greedy implementation Statement B Codeforces Round 681 (Div. 1, based on VK Cup 2019-2020 - Final) {1442} PROGRAMMING 1000.0 84298
1568 Two Editorials brute force data structures greedy implementation Statement E Educational Codeforces Round 98 (Rated for Div. 2) {1452} PROGRAMMING 84847
11006 Hills And Valleys brute force implementation Statement B Codeforces Round 695 (Div. 2) {1467} PROGRAMMING 1000.0 Codeforces Round #695 (Div. 2) Editorial 1700
5164 The Robot brute force implementation Statement K 2020-2021 ICPC, NERC, Southern and Volga Russian Regional Contest (Online Mirror, ICPC Rules) {1468} PROGRAMMING Tutorial (PDF)
11694 Fence Painting brute force constructive algorithms greedy implementation Statement C Codeforces Round 699 (Div. 2) {1481} PROGRAMMING 1500.0 Codeforces Round #699 (Div. 2) Editorial
19327 New Colony brute force greedy implementation Statement B Codeforces Round 699 (Div. 2) {1481} PROGRAMMING 750.0 Codeforces Round #699 (Div. 2) Editorial
7987 Pekora and Trampoline brute force data structures dp graphs greedy implementation Statement C Codeforces Global Round 13 {1491} PROGRAMMING 1000.0 Codeforces Global Round 13 Editorial
18269 K-th Largest Value brute force greedy implementation Statement A Codeforces Global Round 13 {1491} PROGRAMMING 500.0 Codeforces Global Round 13 Editorial
1195 Almost Fault-Tolerant Database brute force constructive algorithms dfs and similar greedy implementation Statement E Codeforces Round 704 (Div. 2) {1492} PROGRAMMING 3000.0 Codeforces Round #704 Editorial
11882 Planet Lapituletti brute force implementation Statement B Codeforces Round 705 (Div. 2) {1493} PROGRAMMING 1250.0 Codeforces Round #705 (Div.2) Editorial
416 Qingshan and Daniel brute force data structures greedy implementation Statement E Codeforces Round 706 (Div. 1) {1495} PROGRAMMING 2500.0 Codeforces Round #706 Editorial
20838 Binary Removals brute force dp greedy implementation Statement B Educational Codeforces Round 106 (Rated for Div. 2) {1499} PROGRAMMING Educational Codeforces Round 106 Editorial
5507 King's Task brute force graphs implementation Statement K 2020-2021 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1510} PROGRAMMING nerc-2020-offline-tutorial.pdf
65100 Spy Detected! brute force implementation Statement A Codeforces Round 713 (Div. 3) {1512} PROGRAMMING Codeforces Round #713 (Div. 3) Editorial
52199 Do Not Be Distracted! brute force implementation Statement A Codeforces Round 719 (Div. 3) {1520} PROGRAMMING Editorial
12771 Colour the Flag brute force implementation Statement A Codeforces LATOKEN Round 1 (Div. 1 + Div. 2) {1534} PROGRAMMING 500.0 Codeforces LATOKEN Round 1 (Div. 1 + Div. 2) Editorial
50169 Fair Playoff brute force implementation Statement A Educational Codeforces Round 110 (Rated for Div. 2) {1535} PROGRAMMING 91481
10237 Manhattan Subarrays brute force geometry greedy implementation Statement C Educational Codeforces Round 111 (Rated for Div. 2) {1550} PROGRAMMING Educational Codeforces Round 111 Editorial
21934 Coin Rows brute force constructive algorithms dp implementation Statement C Educational Codeforces Round 112 (Rated for Div. 2) {1555} PROGRAMMING 93389 1300
5824 Compressed Bracket Sequence brute force implementation Statement C Deltix Round, Summer 2021 (open for everyone, rated, Div. 1 + Div. 2) {1556} PROGRAMMING 1500.0 94384 1800
3840 Jeopardy of Dropped Balls brute force ds implementation Statement J COMPFEST 13 - Finals Online Mirror (Unrated, ICPC Rules, Teams Preferred) {1575} PROGRAMMING COMPFEST 13 — Editorial
10624 Ticks brute force dp greedy implementation Statement C Codeforces Round 744 (Div. 3) {1579} PROGRAMMING Codeforces Round #744 (Div. 3) Editorial
3698 Portal brute force dp greedy implementation Statement A Codeforces Round 745 (Div. 1) {1580} PROGRAMMING 500.0 Codeforces Round #745 Editorial 1700
1830 Train Maintenance brute force data structures implementation Statement C Codeforces Round 745 (Div. 1) {1580} PROGRAMMING 1750.0 Codeforces Round #745 Editorial 2200
16139 Groups brute force implementation Statement B Educational Codeforces Round 115 (Rated for Div. 2) {1598} PROGRAMMING 95890
20716 Anti-Fibonacci Permutation brute force constructive algorithms implementation Statement B Educational Codeforces Round 123 (Rated for Div. 2) {1644} PROGRAMMING 100227
15450 Madoka and the Elegant Gift brute force graphs implementation Statement B Codeforces Round 777 (Div. 2) {1647} PROGRAMMING 1250.0 Codeforces Round #777 Editorial
10766 Fault-tolerant Network brute force data structures implementation Statement C Educational Codeforces Round 124 (Rated for Div. 2) {1651} PROGRAMMING Educational Codeforces Round 124 Editorial
25450 X-Sum brute force greedy implementation Statement D Codeforces Round 790 (Div. 4) {1676} PROGRAMMING Codeforces Round #790 (Div. 4) Editorial
19569 The Clock brute force implementation Statement D Codeforces Round 799 (Div. 4) {1692} PROGRAMMING Codeforces Round #799 (Div. 4) Editorial
1238 Coloring brute force combinatorics constructive algorithms dfs and similar dp ds graphs implementation Statement E Educational Codeforces Round 130 (Rated for Div. 2) {1697} PROGRAMMING 103835
13412 Mark and His Unfinished Essay brute force implementation Statement C Codeforces Round 807 (Div. 2) {1705} PROGRAMMING 1250.0 Codeforces Round #807 (Div 2.) Editorial
8704 Monoblock brute force combinatorics data structures divide and conquer greedy implementation Statement C Codeforces Round 816 (Div. 2) {1715} PROGRAMMING 1750.0 Codeforces Round #816 (Div. 2) editorial
22313 Deadly Laser brute force implementation Statement B Educational Codeforces Round 134 (Rated for Div. 2) {1721} PROGRAMMING 106416
11014 Counting Rectangles brute force data structures dp implementation Statement E Codeforces Round 817 (Div. 4) {1722} PROGRAMMING 106478 1600
8758 Balance (Easy version) brute force data structures implementation Statement D1 Codeforces Round 830 (Div. 2) {1732} PROGRAMMING 1250.0 108327 1500
11236 Zero-Sum Prefixes brute force data structures dp greedy implementation Statement C Codeforces Round 833 (Div. 2) {1748} PROGRAMMING 1500.0 Codeforces Round #833 (Div. 2) Editorial 1600
21262 Notepad# brute force greedy implementation Statement B Educational Codeforces Round 139 (Rated for Div. 2) {1766} PROGRAMMING 110066
1086 Magician and Pigs (Easy Version) brute force implementation Statement F1 Polynomial Round 2022 (Div. 1 + Div. 2, Rated, Prizes!) {1774} PROGRAMMING 1500.0 Polynomial Round 2022 (Div. 1 + Div. 2) Editorial
726 Serval and Brain Power brute force dp dp greedy implementation Statement F Codeforces Round 853 (Div. 2) {1789} PROGRAMMING 2750.0 Codeforces Round #853 (Div. 2) Editorial
1409 Rebrending brute force data structures dp implementation Statement F Codeforces Round 852 (Div. 2) {1793} PROGRAMMING 3250.0 Codeforces Round #852 Editorial
16776 Three Sevens brute force data structures greedy implementation Statement B Codeforces Round 860 (Div. 2) {1798} PROGRAMMING 750.0 Editorial of Codeforces Round 860 (Div. 2) 1000
6378 Bouncy Ball brute force brute force dfs and similar implementation Statement F Codeforces Round 859 (Div. 4) {1807} PROGRAMMING 114143
3853 Unlucky Numbers brute force greedy implementation Statement C Codeforces Round 861 (Div. 2) {1808} PROGRAMMING 1500.0 Codeforces Round #861 (Div. 2) editorial 1900
18421 Lucky Numbers brute force implementation Statement A Codeforces Round 861 (Div. 2) {1808} PROGRAMMING 750.0 Codeforces Round #861 (Div. 2) editorial 900
12862 Constructive Problem brute force greedy implementation Statement A Codeforces Round 866 (Div. 1) {1819} PROGRAMMING 750.0 Codeforces Round #866 (Div.1, Div.2, based on Lipetsk Team Olympiad) Editorial
26843 Gold Rush brute force dfs and similar dp implementation Statement D Codeforces Round 871 (Div. 4) {1829} PROGRAMMING Codeforces Round 871 (Div. 4) Editorial 1000
55364 Short Sort brute force implementation Statement A Codeforces Round 898 (Div. 4) {1873} PROGRAMMING 120634
17232 Jellyfish and Game brute force greedy implementation Statement A Codeforces Round 901 (Div. 1) {1874} PROGRAMMING 500.0 Codeforces Round 901 (Div. 1, Div. 2) Editorial
17224 Perfect Square brute force implementation Statement C Codeforces Round 903 (Div. 3) {1881} PROGRAMMING 121327
2739 Freedom of Choice brute force greedy implementation Statement C Codeforces Round 908 (Div. 1) {1893} PROGRAMMING 1250.0 Codeforces Round 908 (Div. 1, Div, 2) Editorial
12528 Anonymous Informant brute force implementation Statement A Codeforces Round 908 (Div. 1) {1893} PROGRAMMING 500.0 Codeforces Round 908 (Div. 1, Div, 2) Editorial
42793 Not Quite Latin Square brute force implementation Statement B Codeforces Round 918 (Div. 4) {1915} PROGRAMMING 123952
23042 Array Fix brute force dp greedy implementation Statement B Educational Codeforces Round 163 (Rated for Div. 2) {1948} PROGRAMMING Educational Codeforces Round 163 Editorial
70 Next and Prev brute force data structures implementation Statement F Codeforces Round 942 (Div. 1) {1967} PROGRAMMING 3500.0 Tutorial 3200
29050 Guess the Maximum brute force greedy implementation Statement A Codeforces Round 951 (Div. 2) {1979} PROGRAMMING 500.0 Codeforces Round 951 (Div. 2) Editorial
5608 Maximize the Largest Component (Easy Version) brute force data structures dfs and similar ds graphs implementation Statement H1 Codeforces Round 952 (Div. 4) {1985} PROGRAMMING Codeforces Round 952 (Div. 4) Editorial
9775 Decode brute force combinatorics implementation Statement E Codeforces Round 962 (Div. 3) {1996} PROGRAMMING Codeforces Round 962 (Div. 3) Editorial
32267 Card Game brute force implementation Statement B Codeforces Round 964 (Div. 4) {1999} PROGRAMMING
25956 Game with Doors brute force implementation Statement B Educational Codeforces Round 169 (Rated for Div. 2) {2004} PROGRAMMING
41364 osu!mania brute force implementation Statement B Codeforces Round 971 (Div. 4) {2009} PROGRAMMING
15641 Anya and 1100 brute force data structures implementation Statement C Codeforces Round 984 (Div. 3) {2036} PROGRAMMING