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
17313 Neighbor Grid constructive algorithms greedy Statement B Codeforces Global Round 9 {1375} PROGRAMMING 750.0 79731
21298 Element Extermination constructive algorithms greedy Statement C Codeforces Global Round 9 {1375} PROGRAMMING 1500.0 79731
2501 Koa and the Beach (Hard Version) constructive algorithms greedy Statement B2 Codeforces Round 659 (Div. 2) {1384} PROGRAMMING 750.0 Codeforces Round #659 Editorial
18376 Binary String To Subsequences constructive algorithms data structures greedy Statement D Codeforces Round 661 (Div. 3) {1399} PROGRAMMING Codeforces Round #661 (Div. 3) Editorial
17692 Pokémon Army (easy version) constructive algorithms dp greedy Statement C1 Codeforces Round 672 (Div. 2) {1420} PROGRAMMING 1000.0 Editorial
16100 Non-zero Segments constructive algorithms data structures greedy Statement D Codeforces Round 674 (Div. 3) {1426} PROGRAMMING 83120 1500
4514 Bouncing Boomerangs constructive algorithms greedy Statement D Codeforces Raif Round 1 (Div. 1 + Div. 2) {1428} PROGRAMMING 1500.0 Codeforces Raif Round 1 Editorial
27098 Dominant Piranha constructive algorithms greedy Statement C Codeforces Round 677 (Div. 3) {1433} PROGRAMMING Codeforces Round #677 (Div. 3) Editorial
19354 Reverse Binary Strings constructive algorithms greedy Statement B Educational Codeforces Round 97 (Rated for Div. 2) {1437} PROGRAMMING 84149
1352 The Struggling Contestant constructive algorithms greedy Statement F Codeforces Global Round 12 {1450} PROGRAMMING 2750.0 Codeforces Global Round 12 Editorial
321 Divide Powers constructive algorithms greedy Statement F Educational Codeforces Round 98 (Rated for Div. 2) {1452} PROGRAMMING 84847
557 Mathematical Expression constructive algorithms dp greedy Statement F Codeforces Round 689 (Div. 2, based on Zed Code Competition) {1461} PROGRAMMING 2750.0 Codeforces Round #689 (Div. 2). Editorial
18601 String Generation constructive algorithms greedy Statement A Codeforces Round 689 (Div. 2, based on Zed Code Competition) {1461} PROGRAMMING 500.0 Codeforces Round #689 (Div. 2). Editorial
27599 Regular Bracket Sequence constructive algorithms greedy Statement A Educational Codeforces Round 101 (Rated for Div. 2) {1469} PROGRAMMING Educational Codeforces Round 101 Editorial
1351 What Is It? constructive algorithms greedy Statement E Codeforces Round 696 (Div. 2) {1474} PROGRAMMING 2250.0 Codeforces Round #696 Editorial
11435 Longest Simple Cycle constructive algorithms dp graphs greedy Statement C Educational Codeforces Round 103 (Rated for Div. 2) {1476} PROGRAMMING 87356
19344 Anti-knapsack constructive algorithms greedy Statement A Codeforces Round 705 (Div. 2) {1493} PROGRAMMING 750.0 Codeforces Round #705 (Div.2) Editorial
13488 Balance the Bits constructive algorithms greedy Statement A Codeforces Round 712 (Div. 1) {1503} PROGRAMMING 750.0 T 1600
13171 Restoring the Permutation constructive algorithms data structures ds greedy Statement E Codeforces Round 710 (Div. 3) {1506} PROGRAMMING Editorial
22165 Epic Transformation constructive algorithms greedy Statement D Codeforces Round 710 (Div. 3) {1506} PROGRAMMING Editorial
22712 Corrupted Array constructive algorithms data structures greedy Statement D Codeforces Round 713 (Div. 3) {1512} PROGRAMMING Codeforces Round #713 (Div. 3) Editorial
17254 Phoenix and Towers constructive algorithms data structures greedy Statement C Codeforces Global Round 14 {1515} PROGRAMMING 1500.0 Editorial
24983 Permutation Sort constructive algorithms greedy Statement B Educational Codeforces Round 109 (Rated for Div. 2) {1525} PROGRAMMING 90793
29842 Eshag Loves Big Arrays constructive algorithms greedy Statement A Codeforces Round 722 (Div. 2) {1529} PROGRAMMING 500.0 Codeforces Round #722 Editorial
414 The Final Pursuit constructive algorithms graphs greedy Statement E Codeforces Round 730 (Div. 2) {1543} PROGRAMMING 3000.0 Codeforces Round #730 (Div. 2) Editorial
3304 Bottom-Tier Reversals constructive algorithms greedy Statement C Codeforces Round 740 (Div. 1, based on VK Cup 2021 - Final (Engine)) {1558} PROGRAMMING 1500.0 Codeforces Round #740 Editorial 2000
2238 Moment of Bloom constructive algorithms dfs and similar graph matchings graphs greedy Statement E Technocup 2022 - Elimination Round 1 {1583} PROGRAMMING 2250.0 Editorial for Technocup 2022 — Elimination Round 1 and Codeforces Round #749 (Div. 1+Div. 2)
14240 Banknotes constructive algorithms greedy Statement C Educational Codeforces Round 116 (Rated for Div. 2) {1606} PROGRAMMING 96454
11780 Build the Permutation constructive algorithms greedy Statement B Codeforces Round 758 (Div.1 + Div. 2) {1608} PROGRAMMING 750.0 Editorial of Codeforces Round #758 (Div.1 + Div. 2)
17853 Differential Sorting constructive algorithms greedy Statement C Codeforces Round 772 (Div. 2) {1635} PROGRAMMING 1500.0 Codeforces Round #772 Editorial
17823 Andrew and Stones constructive algorithms greedy Statement C Codeforces Global Round 19 {1637} PROGRAMMING 1500.0 Tutorial
12653 Madoka and Childish Pranks constructive algorithms greedy Statement C Codeforces Round 777 (Div. 2) {1647} PROGRAMMING 1500.0 Codeforces Round #777 Editorial
19688 Prove Him Wrong constructive algorithms greedy Statement B Educational Codeforces Round 124 (Rated for Div. 2) {1651} PROGRAMMING Educational Codeforces Round 124 Editorial
3127 Array Shuffling constructive algorithms graphs greedy Statement F1 Codeforces Global Round 20 {1672} PROGRAMMING 1250.0 Global Round 20 Editorial 2000
979 Zigu Zagu constructive algorithms greedy Statement H Codeforces Global Round 20 {1672} PROGRAMMING 3000.0 Global Round 20 Editorial 2700
3633 Tokitsukaze and Two Colorful Tapes constructive algorithms dfs and similar ds graphs greedy Statement C Codeforces Round 789 (Div. 1) {1677} PROGRAMMING 1250.0 Tutorial
1092 Bring Balance constructive algorithms greedy Statement C Codeforces Round 794 (Div. 1) {1685} PROGRAMMING 1500.0 103198 2600
108 Permutation Weight (Hard Version) constructive algorithms greedy Statement D2 Codeforces Round 794 (Div. 1) {1685} PROGRAMMING 1500.0 103198 3500
33704 Print a Pedestal (Codeforces logo?) constructive algorithms greedy Statement A Codeforces Round 797 (Div. 3) {1690} PROGRAMMING Codeforces Round #797 (Div. 3) Editorial 800
19242 Paranoid String constructive algorithms greedy Statement B Codeforces Round 800 (Div. 2) {1694} PROGRAMMING 1000.0 Codeforces Round #800 Editorial 1200
10996 Helping the Nature constructive algorithms greedy Statement C Codeforces Round 802 (Div. 2) {1700} PROGRAMMING 1500.0 103978 1700
16048 Two 0-1 Sequences constructive algorithms greedy Statement A CodeTON Round 2 (Div. 1 + Div. 2, Rated, Prizes!) {1704} PROGRAMMING 500.0 CodeTON Round 2 Editorial
10966 Color the Picture constructive algorithms greedy Statement A Codeforces Round 810 (Div. 1) {1710} PROGRAMMING 500.0 Codeforces Round #810 Editorial
14873 Madoka and Underground Competitions constructive algorithms greedy Statement B Codeforces Round 818 (Div. 2) {1717} PROGRAMMING 1000.0 Codeforces Round #818 (Div. 2) Editorial. 1100
20189 Best Permutation constructive algorithms greedy Statement B Educational Codeforces Round 135 (Rated for Div. 2) {1728} PROGRAMMING 106805
1072 House Planning constructive algorithms data structures flows graph matchings greedy Statement E Codeforces Round 824 (Div. 2) {1735} PROGRAMMING 2250.0 Codeforces Round #824 — editorial
438 Anti-Increasing Addicts constructive algorithms dfs and similar dp greedy Statement G Codeforces Global Round 22 {1738} PROGRAMMING 3000.0 Editorial of Codeforces Global Round <strong>22</strong>
19883 Maxmina constructive algorithms greedy Statement A Codeforces Global Round 23 {1746} PROGRAMMING 500.0 Codeforces Global Round 23 Editorial
17257 Rebellion constructive algorithms greedy Statement B Codeforces Global Round 23 {1746} PROGRAMMING 1000.0 Codeforces Global Round 23 Editorial
25032 Two Groups constructive algorithms greedy Statement A Codeforces Round 832 (Div. 2) {1747} PROGRAMMING 500.0 Codeforces Round #832 (Div. 2) Editorial
15065 Make Nonzero Sum (easy version) constructive algorithms dp greedy Statement A1 Codeforces Round 829 (Div. 1) {1753} PROGRAMMING 500.0 Tutorial 1300
10471 Make Nonzero Sum (hard version) constructive algorithms dp greedy Statement A2 Codeforces Round 829 (Div. 1) {1753} PROGRAMMING 500.0 Tutorial 1500
9650 Set Construction constructive algorithms dfs and similar graphs greedy Statement C Pinely Round 1 (Div. 1 + Div. 2) {1761} PROGRAMMING 1250.0 Pinely Round 1 (Div. 1 + Div. 2) Editorial
1866 Make It Connected constructive algorithms graphs greedy Statement E Pinely Round 1 (Div. 1 + Div. 2) {1761} PROGRAMMING 1750.0 Pinely Round 1 (Div. 1 + Div. 2) Editorial
12108 Ice and Fire constructive algorithms dp greedy Statement C Polynomial Round 2022 (Div. 1 + Div. 2, Rated, Prizes!) {1774} PROGRAMMING 1500.0 Polynomial Round 2022 (Div. 1 + Div. 2) Editorial
12397 Coloring constructive algorithms greedy Statement B Polynomial Round 2022 (Div. 1 + Div. 2, Rated, Prizes!) {1774} PROGRAMMING 1000.0 Polynomial Round 2022 (Div. 1 + Div. 2) Editorial
3518 Train Splitting constructive algorithms graphs greedy Statement F SWERC 2022-2023 - Online Mirror (Unrated, ICPC Rules, Teams Preferred) {1776} PROGRAMMING
7981 Boris and His Amazing Haircut constructive algorithms data structures dp ds greedy Statement D Hello 2023 {1779} PROGRAMMING 1500.0
21777 Hayato and School constructive algorithms greedy Statement A Codeforces Round 846 (Div. 2) {1780} PROGRAMMING 500.0 111841
17587 Li Hua and Maze constructive algorithms greedy Statement A Codeforces Round 864 (Div. 2) {1797} PROGRAMMING 500.0 Codeforces Round 864 (Div. 2) Editorial
16331 Li Hua and Pattern constructive algorithms greedy Statement B Codeforces Round 864 (Div. 2) {1797} PROGRAMMING 1000.0 Codeforces Round 864 (Div. 2) Editorial
17909 Mex Master constructive algorithms greedy Statement B Codeforces Round 858 (Div. 2) {1806} PROGRAMMING 1000.0 Codeforces Round #858 (Div. 2) Editorial
20082 Restore the Array constructive algorithms greedy Statement C Codeforces Round 863 (Div. 3) {1811} PROGRAMMING 114788
15370 Grid Reconstruction constructive algorithms greedy Statement B Codeforces Round 865 (Div. 2) {1816} PROGRAMMING 1000.0 Editorial of Codeforces Round #865 1000
118 Copium Permutation constructive algorithms data structures greedy Statement F Codeforces Round 873 (Div. 1) {1827} PROGRAMMING 3500.0 Codeforces Round #873 (Div. 1 & 2) Editorial 3500
21380 Array merging constructive algorithms greedy Statement B Codeforces Round 875 (Div. 2) {1831} PROGRAMMING 750.0 Codeforces Round #875 (Div.1 + Div. 2) Editorial
15116 Bracket Coloring constructive algorithms data structures greedy Statement D Educational Codeforces Round 149 (Rated for Div. 2) {1837} PROGRAMMING 116752
22211 Best Binary String constructive algorithms greedy Statement C Educational Codeforces Round 149 (Rated for Div. 2) {1837} PROGRAMMING 116752
12089 Insert Zero and Invert Prefix constructive algorithms greedy Statement C Codeforces Round 876 (Div. 2) {1839} PROGRAMMING 1500.0 Codeforces Round #876 (Div. 2) Editorial
482 Miriany and Matchstick constructive algorithms dp greedy Statement D Codeforces Round 887 (Div. 1) {1852} PROGRAMMING 2000.0 Codeforces Round 887 (Div 1, Div 2) Tutorial
21560 Two Binary Strings constructive algorithms dfs and similar greedy Statement B Educational Codeforces Round 154 (Rated for Div. 2) {1861} PROGRAMMING Educational Codeforces Round 154 Editorial
10875 Kolya and Movie Theatre constructive algorithms data structures greedy Statement E Codeforces Round 894 (Div. 3) {1862} PROGRAMMING Tutorial
9587 Two-Colored Dominoes constructive algorithms greedy Statement D Pinely Round 2 (Div. 1 + Div. 2) {1863} PROGRAMMING 1250.0
22751 Chips on the Board constructive algorithms greedy Statement B Educational Codeforces Round 155 (Rated for Div. 2) {1879} PROGRAMMING 120773 900
13348 Qingshan Loves Strings 2 constructive algorithms greedy Statement A Codeforces Round 906 (Div. 1) {1889} PROGRAMMING 750.0 Codeforces Round 906 Editorial
12096 Theofanis' Nightmare constructive algorithms dp greedy Statement C Codeforces Round 912 (Div. 2) {1903} PROGRAMMING 1500.0 Codeforces Round #912 (Div. 2) Editorial
15295 Find B constructive algorithms data structures greedy Statement C Educational Codeforces Round 162 (Rated for Div. 2) {1923} PROGRAMMING Educational Codeforces Round 162 Editorial
3009 Clique Partition constructive algorithms graphs greedy Statement E Educational Codeforces Round 163 (Rated for Div. 2) {1948} PROGRAMMING Educational Codeforces Round 163 Editorial
76 Growing Trees constructive algorithms flows graphs greedy Statement I Codeforces Global Round 25 {1951} PROGRAMMING 4000.0 Codeforces Global Round 25 Editorial
23367 Stickogon constructive algorithms greedy Statement A Codeforces Round 940 (Div. 2) and CodeCraft-23 {1957} PROGRAMMING 500.0 Codeforces Round #940 and CodeCraft-23 (Div. 2) Editorial 800
17917 Card Exchange constructive algorithms games greedy Statement A Codeforces Round 941 (Div. 2) {1966} PROGRAMMING 500.0 Codeforces Round #941 (Div. 1, Div. 2) Editorial 800
19123 Shifts and Sorting constructive algorithms greedy Statement B Educational Codeforces Round 165 (Rated for Div. 2) {1969} PROGRAMMING Educational Codeforces Round 165 Editorial 1000
18625 Sofia and the Lost Operations constructive algorithms greedy Statement C Codeforces Round 950 (Div. 3) {1980} PROGRAMMING 130135
16497 Array Craft constructive algorithms greedy Statement B Codeforces Round 960 (Div. 2) {1990} PROGRAMMING 1000.0 Video Tutorial
611 Grid Reset constructive algorithms greedy Statement G Pinely Round 4 (Div. 1 + Div. 2) {1991} PROGRAMMING 3000.0 Video Tutorial
22708 Parity and Sum constructive algorithms greedy Statement B Codeforces Round 963 (Div. 2) {1993} PROGRAMMING 1000.0
20196 Diverse Game constructive algorithms greedy Statement A Codeforces Round 959 sponsored by NEAR (Div. 1 + Div. 2) {1994} PROGRAMMING 500.0 Video Tutorial
21561 Simple Palindrome constructive algorithms greedy Statement A Codeforces Round 972 (Div. 2) {2005} PROGRAMMING 750.0
11322 Adjust The Presentation (Easy Version) constructive algorithms greedy Statement C1 Codeforces Round 977 (Div. 2, based on COMPFEST 16 - Final Round) {2021} PROGRAMMING 750.0
580 Palindrome Everywhere constructive algorithms greedy Statement F Refact.ai Match 1 (Codeforces Round 985) {2029} PROGRAMMING 3000.0
22582 Sakurako and Water constructive algorithms greedy Statement B Codeforces Round 981 (Div. 3) {2033} PROGRAMMING