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.

Search on plain tags, ratings, names, and problem text. Example: brute force or binary search

< 1 2 3 4 5 6 7 8 9 10 >

Solved
Name
Tags
Solutions
Index
Contest
Type
Points
Tutorial
Rating Level
19407 Reverse Sort greedy sortings Statement B Codeforces Round 754 (Div. 2) {1605} PROGRAMMING 1000.0 tutorial 1000
3280 Treelabeling bitmasks constructive algorithms dfs and similar games graphs greedy trees Statement D Codeforces Round 754 (Div. 2) {1605} PROGRAMMING 2000.0 tutorial 2100
18212 Blue-Red Permutation greedy math sortings Statement D Codeforces Round 753 (Div. 3) {1607} PROGRAMMING Codeforces Round #753 (Div. 3) Editorial
1443 Banquet Preparations 2 greedy sortings Statement H Codeforces Round 753 (Div. 3) {1607} PROGRAMMING Codeforces Round #753 (Div. 3) Editorial
7425 Game Master data structures dfs and similar dp graphs greedy two pointers Statement C Codeforces Round 758 (Div.1 + Div. 2) {1608} PROGRAMMING 1000.0 Editorial of Codeforces Round #758 (Div.1 + Div. 2)
8476 Social Network dsu graphs greedy implementation trees Statement D Deltix Round, Autumn 2021 (open for everyone, rated, Div. 1 + Div. 2) {1609} PROGRAMMING 2000.0 Deltix Round, Autumn 2021. Editorial 1600
486 A Stroll Around the Matrix data structures greedy math Statement G Deltix Round, Autumn 2021 (open for everyone, rated, Div. 1 + Div. 2) {1609} PROGRAMMING 3250.0 Deltix Round, Autumn 2021. Editorial 3000
19013 Divide and Multiply greedy implementation math number theory Statement A Deltix Round, Autumn 2021 (open for everyone, rated, Div. 1 + Div. 2) {1609} PROGRAMMING 500.0 Deltix Round, Autumn 2021. Editorial 900
1945 AmShZ and G.O.A.T. binary search brute force greedy math Statement E Codeforces Global Round 17 {1610} PROGRAMMING 2500.0 Codeforces Global Round 17 Editorial
629 Squid Game data structures dfs and similar divide and conquer greedy trees Statement H Codeforces Global Round 17 {1610} PROGRAMMING 3500.0 Codeforces Global Round 17 Editorial
24279 Kalindrome Array greedy two pointers Statement B Codeforces Global Round 17 {1610} PROGRAMMING 1000.0 Codeforces Global Round 17 Editorial
8449 Escape The Maze (easy version) dfs and similar greedy shortest paths trees two pointers Statement E1 Codeforces Round 756 (Div. 3) {1611} PROGRAMMING Tutorial 1700
4332 Escape The Maze (hard version) dfs and similar dp greedy shortest paths trees two pointers Statement E2 Codeforces Round 756 (Div. 3) {1611} PROGRAMMING Tutorial 2000
697 Armor and Weapons brute force dp greedy shortest paths Statement F Educational Codeforces Round 117 (Rated for Div. 2) {1612} PROGRAMMING 97164
1003 Max Sum Array combinatorics constructive algorithms greedy sortings Statement G Educational Codeforces Round 117 (Rated for Div. 2) {1612} PROGRAMMING 97164
2859 Messages greedy math probabilities sortings Statement E Educational Codeforces Round 117 (Rated for Div. 2) {1612} PROGRAMMING 97164
18021 And It's Non-Zero bitmasks greedy math Statement B Codeforces Global Round 18 {1615} PROGRAMMING 1000.0 Global Round 18 Editorial
9233 Menorah brute force graphs greedy math Statement C Codeforces Global Round 18 {1615} PROGRAMMING 1750.0 Global Round 18 Editorial
1710 Purple Crayon dp games greedy math trees Statement E Codeforces Global Round 18 {1615} PROGRAMMING 2750.0 Global Round 18 Editorial
21603 Closing The Gap greedy math Statement A Codeforces Global Round 18 {1615} PROGRAMMING 250.0 Global Round 18 Editorial
20757 Mirror in the String greedy strings Statement B Good Bye 2021: 2022 is NEAR {1616} PROGRAMMING 1000.0 Good Bye 2021 -- Editorial 1100
5610 Keep the Average High dp greedy math Statement D Good Bye 2021: 2022 is NEAR {1616} PROGRAMMING 2000.0 Good Bye 2021 -- Editorial 2000
2728 Lexicographically Small Enough data structures greedy strings Statement E Good Bye 2021: 2022 is NEAR {1616} PROGRAMMING 2500.0 Good Bye 2021 -- Editorial 2200
16057 Paprika and Permutation greedy math Statement C Codeforces Round 761 (Div. 2) {1617} PROGRAMMING 1500.0 Editorial for Codeforces Round #761 (Div. 2)
1946 Trader Problem binary search data structures dsu greedy math sortings Statement G Codeforces Round 760 (Div. 3) {1618} PROGRAMMING Codeforces Round #760 (Div. 3) Editorial
21003 Array and Operations dp greedy math Statement D Codeforces Round 760 (Div. 3) {1618} PROGRAMMING Codeforces Round #760 (Div. 3) Editorial
8509 New Year's Problem binary search brute force greedy sortings Statement D Codeforces Round 762 (Div. 3) {1619} PROGRAMMING Tutorial
10281 MEX and Increments constructive algorithms data structures dp greedy math sortings Statement E Codeforces Round 762 (Div. 3) {1619} PROGRAMMING Tutorial
7304 BA-String bitmasks brute force dp greedy implementation math shortest paths Statement C Educational Codeforces Round 119 (Rated for Div. 2) {1620} PROGRAMMING 98061
9769 Replace the Numbers data structures dsu greedy trees Statement E Educational Codeforces Round 119 (Rated for Div. 2) {1620} PROGRAMMING 98061
32683 Triangles on a Rectangle geometry greedy math Statement B Educational Codeforces Round 119 (Rated for Div. 2) {1620} PROGRAMMING 98061
1928 New School binary search data structures greedy implementation sortings Statement E Hello 2022 {1621} PROGRAMMING 2250.0
4413 The Winter Hike constructive algorithms greedy math Statement D Hello 2022 {1621} PROGRAMMING 1750.0
14609 Integers Shop data structures greedy implementation Statement B Hello 2022 {1621} PROGRAMMING 1000.0
15684 Set or Decrease binary search greedy ternary search Statement C Educational Codeforces Round 120 (Rated for Div. 2) {1622} PROGRAMMING Educational Codeforces Round 120 Editorial
22392 Berland Music greedy sortings Statement B Educational Codeforces Round 120 (Rated for Div. 2) {1622} PROGRAMMING Educational Codeforces Round 120 Editorial
1268 Middle Duplication data structures dfs and similar greedy strings trees Statement E Codeforces Round 763 (Div. 2) {1623} PROGRAMMING 2750.0 Codeforces Round #763 (Div. 2) Editorial
19235 Palindromes Coloring binary search greedy sortings strings Statement D Codeforces Round 764 (Div. 3) {1624} PROGRAMMING Codeforces Round #764 (Div. 3) Editorial
27002 Division by Two and Permutation constructive algorithms flows graph matchings greedy math Statement C Codeforces Round 764 (Div. 3) {1624} PROGRAMMING Codeforces Round #764 (Div. 3) Editorial
18332 Ancient Civilization bitmasks greedy math Statement A Codeforces Round 765 (Div. 2) {1625} PROGRAMMING 500.0 Editorial of Codeforces Round #765 (Div. 2)
11899 Monsters And Spells data structures dp fft greedy implementation two pointers Statement C Educational Codeforces Round 121 (Rated for Div. 2) {1626} PROGRAMMING 99136
1868 Black and White Tree dp greedy trees Statement E Educational Codeforces Round 121 (Rated for Div. 2) {1626} PROGRAMMING 99136
24015 Minor Reduction greedy greedy strings strings Statement B Educational Codeforces Round 121 (Rated for Div. 2) {1626} PROGRAMMING 99136
17624 Not Sitting games greedy sortings Statement B Codeforces Round 766 (Div. 2) {1627} PROGRAMMING 1250.0 Codeforces Round #766 (Div. 2) Editorial
17119 Meximum Array brute force constructive algorithms greedy math Statement A Codeforces Round 767 (Div. 1) {1628} PROGRAMMING 500.0 99276
3598 Grid Xor constructive algorithms greedy implementation interactive math Statement C Codeforces Round 767 (Div. 1) {1628} PROGRAMMING 1250.0 99276
12796 Peculiar Movie Preferences greedy strings Statement B Codeforces Round 767 (Div. 1) {1628} PROGRAMMING 750.0 99276
25374 GCD Arrays greedy math number theory Statement B Codeforces Round 767 (Div. 2) {1629} PROGRAMMING 750.0 Editorial of Codeforces Round #767
31007 Download More RAM greedy sortings Statement A Codeforces Round 767 (Div. 2) {1629} PROGRAMMING 500.0 Editorial of Codeforces Round #767
6512 Range and Partition binary search data structures greedy two pointers Statement B Codeforces Round 768 (Div. 1) {1630} PROGRAMMING 1250.0 Editorial of Codeforces Round #768
3340 Paint the Middle data structures dp greedy sortings Statement C Codeforces Round 768 (Div. 1) {1630} PROGRAMMING 1250.0 Editorial of Codeforces Round #768
2022 Flipping Range dp greedy number theory Statement D Codeforces Round 768 (Div. 1) {1630} PROGRAMMING 2000.0 Editorial of Codeforces Round #768
14169 Strange Test binary search bitmasks brute force greedy math Statement C Codeforces Round 769 (Div. 2) {1632} PROGRAMMING 1500.0 Editorial of Codeforces Round #769
5380 New Year Concert binary search data structures dp greedy math number theory two pointers Statement D Codeforces Round 769 (Div. 2) {1632} PROGRAMMING 2000.0 Editorial of Codeforces Round #769
19244 Make Them Equal dp greedy shortest paths Statement D Educational Codeforces Round 122 (Rated for Div. 2) {1633} PROGRAMMING 99539
4791 Finding Zero constructive algorithms greedy interactive Statement D Codeforces Round 770 (Div. 2) {1634} PROGRAMMING 2000.0 Codeforces Round #770 (Div. 2) editorial
2750 Cars constructive algorithms dfs and similar dsu graphs greedy sortings Statement E Codeforces Round 772 (Div. 2) {1635} PROGRAMMING 2250.0 Codeforces Round #772 Editorial
15478 MEX and Array brute force dp greedy math Statement B Codeforces Global Round 19 {1637} PROGRAMMING 1000.0 Tutorial
2174 Towers constructive algorithms dfs and similar dp greedy trees Statement F Codeforces Global Round 19 {1637} PROGRAMMING 3250.0 Tutorial
4773 Big Brush dfs and similar greedy implementation Statement D Codeforces Round 771 (Div. 2) {1638} PROGRAMMING 1750.0 Codeforces Round #771 Editorial
22176 Reverse greedy math Statement A Codeforces Round 771 (Div. 2) {1638} PROGRAMMING 500.0 Codeforces Round #771 Editorial
19036 Great Sequence brute force greedy sortings Statement A Codeforces Round 773 (Div. 1) {1641} PROGRAMMING 500.0 Codeforces Round #773 editorial
690 Playing Around the Table constructive algorithms greedy implementation Statement F Codeforces Round 774 (Div. 2) {1646} PROGRAMMING 3000.0 Codeforces Round #774 (Div. 2) Editorial 2900
22774 Quality vs Quantity brute force constructive algorithms greedy sortings two pointers Statement B Codeforces Round 774 (Div. 2) {1646} PROGRAMMING 1000.0 Codeforces Round #774 (Div. 2) Editorial 800
1102 Madoka and the Sixth-graders dfs and similar greedy trees Statement E Codeforces Round 777 (Div. 2) {1647} PROGRAMMING 2500.0 Codeforces Round #777 Editorial
13992 Game of Ball Passing greedy implementation Statement B Codeforces Round 775 (Div. 2, based on Moscow Open Olympiad in Informatics) {1649} PROGRAMMING 1000.0 Codeforces Round #775 Editorial
4484 Rescheduling the Exam binary search data structures greedy implementation math sortings Statement E Codeforces Round 776 (Div. 3) {1650} PROGRAMMING 100712
18640 Weight of the System of Nested Segments greedy hashing implementation sortings Statement C Codeforces Round 776 (Div. 3) {1650} PROGRAMMING 100712
623 Sum of Matchings dfs and similar greedy implementation math Statement E Educational Codeforces Round 124 (Rated for Div. 2) {1651} PROGRAMMING Educational Codeforces Round 124 Editorial
14611 Alice and the Cake constructive algorithms data structures greedy sortings Statement C Codeforces Round 778 (Div. 1 + Div. 2, based on Technocup 2022 Final Round) {1654} PROGRAMMING 1250.0 Editorial of Codeforces Round #778 (Div. 1 + Div. 2, based on Technocup 2022 Final Round) 1400
467 Snowy Mountain data structures graphs greedy shortest paths trees Statement G Codeforces Round 778 (Div. 1 + Div. 2, based on Technocup 2022 Final Round) {1654} PROGRAMMING 3500.0 Editorial of Codeforces Round #778 (Div. 1 + Div. 2, based on Technocup 2022 Final Round) 2900
19416 Maximum Cake Tastiness greedy implementation sortings Statement A Codeforces Round 778 (Div. 1 + Div. 2, based on Technocup 2022 Final Round) {1654} PROGRAMMING 500.0 Editorial of Codeforces Round #778 (Div. 1 + Div. 2, based on Technocup 2022 Final Round) 800
1236 Parametric MST binary search graphs greedy math ternary search Statement F CodeTON Round 1 (Div. 1 + Div. 2, Rated, Prizes!) {1656} PROGRAMMING 3000.0 Tutorial
17738 Bracket Sequence Deletion greedy hashing Statement C Educational Codeforces Round 125 (Rated for Div. 2) {1657} PROGRAMMING 101161
12063 Bit Flipping bitmasks constructive algorithms greedy strings Statement B Codeforces Round 782 (Div. 2) {1659} PROGRAMMING 750.0 Codeforces Round #782 (Div. 2) Editorial
4466 Reverse Sort Sum constructive algorithms data structures greedy implementation math two pointers Statement D Codeforces Round 782 (Div. 2) {1659} PROGRAMMING 2000.0 Codeforces Round #782 (Div. 2) Editorial
32354 Red Versus Blue constructive algorithms greedy implementation math Statement A Codeforces Round 782 (Div. 2) {1659} PROGRAMMING 500.0 Codeforces Round #782 (Div. 2) Editorial
15546 Line Empire dp greedy implementation math Statement C Codeforces Round 782 (Div. 2) {1659} PROGRAMMING 1500.0 Codeforces Round #782 (Div. 2) Editorial
8124 Matrix and Shifts constructive algorithms greedy implementation Statement E Codeforces Round 780 (Div. 3) {1660} PROGRAMMING Codeforces Round #780 (Div. 3) Editorial
22136 Get an Even String dp greedy strings Statement C Codeforces Round 780 (Div. 3) {1660} PROGRAMMING Codeforces Round #780 (Div. 3) Editorial
10608 Water the Trees binary search greedy math Statement C Educational Codeforces Round 126 (Rated for Div. 2) {1661} PROGRAMMING Educational Codeforces Round 126 Editorial
847 Teleporters binary search greedy math Statement F Educational Codeforces Round 126 (Rated for Div. 2) {1661} PROGRAMMING Educational Codeforces Round 126 Editorial
20955 Getting Zero brute force dfs and similar graphs greedy shortest paths Statement B Educational Codeforces Round 126 (Rated for Div. 2) {1661} PROGRAMMING Educational Codeforces Round 126 Editorial
5414 Progressions Covering data structures greedy implementation Statement D Educational Codeforces Round 126 (Rated for Div. 2) {1661} PROGRAMMING Educational Codeforces Round 126 Editorial
19418 Array Balancing greedy math Statement A Educational Codeforces Round 126 (Rated for Div. 2) {1661} PROGRAMMING Educational Codeforces Round 126 Editorial
152 Toys greedy greedy strings strings Statement B SWERC 2021-2022 - Online Mirror (Unrated, ICPC Rules, Teams Preferred) {1662} PROGRAMMING 102042
1810 MinimizOR binary search bitmasks data structures dp greedy implementation Statement E Codeforces Round 781 (Div. 2) {1665} PROGRAMMING 2250.0 Codeforces Round #781 (Div. 2) Editorial
9950 Tree Infection binary search dfs and similar greedy trees Statement C Codeforces Round 781 (Div. 2) {1665} PROGRAMMING 1250.0 Codeforces Round #781 (Div. 2) Editorial
34356 Array Cloning Technique constructive algorithms greedy sortings Statement B Codeforces Round 781 (Div. 2) {1665} PROGRAMMING 750.0 Codeforces Round #781 (Div. 2) Editorial
15741 Make it Increasing brute force greedy math Statement A Codeforces Round 783 (Div. 1) {1667} PROGRAMMING 250.0 Codeforces Round #783 Editorial 1300
17977 Social Distance greedy math sortings Statement B Codeforces Round 783 (Div. 2) {1668} PROGRAMMING 500.0 Codeforces Round #783 Editorial 900
41052 Eating Candies binary search data structures greedy two pointers Statement F Codeforces Round 784 (Div. 4) {1669} PROGRAMMING 102101 1100
30235 Maximal AND bitmasks greedy math Statement H Codeforces Round 784 (Div. 4) {1669} PROGRAMMING 102101 1300
41850 Odd/Even Increments greedy greedy implementation math Statement C Codeforces Round 784 (Div. 4) {1669} PROGRAMMING 102101 800
16014 Prof. Slim greedy implementation sortings Statement A Codeforces Round 788 (Div. 2) {1670} PROGRAMMING 500.0 Tutorial 800
26370 Dolce Vita binary search brute force greedy math Statement C Educational Codeforces Round 127 (Rated for Div. 2) {1671} PROGRAMMING 102181
14063 Unequal Array constructive algorithms greedy implementation Statement C Codeforces Global Round 20 {1672} PROGRAMMING 750.0 Global Round 20 Editorial 1100
6975 Cyclic Rotation constructive algorithms greedy implementation two pointers Statement D Codeforces Global Round 20 {1672} PROGRAMMING 1000.0 Global Round 20 Editorial 1700
2530 notepad.exe binary search constructive algorithms greedy interactive Statement E Codeforces Global Round 20 {1672} PROGRAMMING 1500.0 Global Round 20 Editorial 2200
968 Anti-Theft Road Planning bitmasks constructive algorithms divide and conquer greedy interactive math Statement F Codeforces Round 785 (Div. 2) {1673} PROGRAMMING 3250.0 Codeforces Round #785 (Div. 2) Editorial
22559 A Perfectly Balanced String? brute force greedy strings Statement B Codeforces Round 785 (Div. 2) {1673} PROGRAMMING 750.0 Codeforces Round #785 (Div. 2) Editorial
19176 Subtle Substring Subtraction games greedy strings Statement A Codeforces Round 785 (Div. 2) {1673} PROGRAMMING 500.0 Codeforces Round #785 (Div. 2) Editorial
7341 Breaking the Wall binary search brute force constructive algorithms greedy math Statement E Codeforces Round 786 (Div. 3) {1674} PROGRAMMING 102482
5704 Desktop Rearrangement data structures greedy implementation Statement F Codeforces Round 786 (Div. 3) {1674} PROGRAMMING 102482
6331 Vlad and Unfinished Business dfs and similar dp greedy trees Statement F Codeforces Round 787 (Div. 3) {1675} PROGRAMMING 102550
12171 Replace With the Previous, Minimize dsu greedy strings Statement E Codeforces Round 787 (Div. 3) {1675} PROGRAMMING 102550
33551 Eating Queries binary search greedy sortings Statement E Codeforces Round 790 (Div. 4) {1676} PROGRAMMING Codeforces Round #790 (Div. 4) Editorial
29550 X-Sum brute force greedy implementation Statement D Codeforces Round 790 (Div. 4) {1676} PROGRAMMING Codeforces Round #790 (Div. 4) Editorial
34933 Most Similar Words brute force greedy implementation implementation math strings Statement C Codeforces Round 790 (Div. 4) {1676} PROGRAMMING Codeforces Round #790 (Div. 4) Editorial
20369 Longest Strike data structures greedy implementation sortings two pointers Statement F Codeforces Round 790 (Div. 4) {1676} PROGRAMMING Codeforces Round #790 (Div. 4) Editorial
61365 Equal Candies greedy math sortings Statement B Codeforces Round 790 (Div. 4) {1676} PROGRAMMING Codeforces Round #790 (Div. 4) Editorial
41968 AvtoBus brute force greedy math number theory Statement A Codeforces Round 791 (Div. 2) {1679} PROGRAMMING 500.0 Codeforces Round #791 (Div. 2) Editorial
11185 Binary String binary search greedy two pointers Statement C Educational Codeforces Round 128 (Rated for Div. 2) {1680} PROGRAMMING 102852
1355 Dog Walking brute force greedy math Statement D Educational Codeforces Round 128 (Rated for Div. 2) {1680} PROGRAMMING 102852
957 Labyrinth Adventures data structures dp greedy matrices shortest paths Statement E Educational Codeforces Round 129 (Rated for Div. 2) {1681} PROGRAMMING 103163 2600
759 Unordered Swaps constructive algorithms dfs and similar graphs greedy math sortings Statement E Codeforces Round 793 (Div. 2) {1682} PROGRAMMING 2500.0 Codeforces Round #793 (Div. 2) Editorial
16549 LIS or Reverse LIS? constructive algorithms greedy implementation math Statement C Codeforces Round 793 (Div. 2) {1682} PROGRAMMING 1500.0 Codeforces Round #793 (Div. 2) Editorial
399 MCMF? data structures flows graphs greedy sortings two pointers Statement F Codeforces Round 793 (Div. 2) {1682} PROGRAMMING 2750.0 Codeforces Round #793 (Div. 2) Editorial
19987 Palindromic Indices greedy strings Statement A Codeforces Round 793 (Div. 2) {1682} PROGRAMMING 750.0 Codeforces Round #793 (Div. 2) Editorial
10814 Traps constructive algorithms greedy sortings Statement D Codeforces Round 792 (Div. 1 + Div. 2) {1684} PROGRAMMING 1500.0 Codeforces Round #792 (Div. 1 + Div. 2) Editorial 1700
3655 MEX vs DIFF brute force constructive algorithms data structures greedy two pointers Statement E Codeforces Round 792 (Div. 1 + Div. 2) {1684} PROGRAMMING 1750.0 Codeforces Round #792 (Div. 1 + Div. 2) Editorial 2100
18667 Circular Local MiniMax constructive algorithms greedy sortings Statement A Codeforces Round 794 (Div. 1) {1685} PROGRAMMING 500.0 103198 1100
3707 Linguistics greedy implementation strings Statement B Codeforces Round 794 (Div. 1) {1685} PROGRAMMING 1000.0 103198 2000
4169 Railway System constructive algorithms dsu graphs greedy interactive sortings Statement B Codeforces Round 796 (Div. 1) {1687} PROGRAMMING 750.0 Editorial of Codeforces Round 796
11476 The Enchanted Forest constructive algorithms greedy math Statement A Codeforces Round 796 (Div. 1) {1687} PROGRAMMING 500.0 Editorial of Codeforces Round 796
19078 Patchouli's Magical Talisman bitmasks constructive algorithms greedy sortings Statement B Codeforces Round 796 (Div. 2) {1688} PROGRAMMING 750.0 Tutorial
17763 Lex String brute force greedy implementation sortings two pointers Statement A Codeforces Round 798 (Div. 2) {1689} PROGRAMMING 500.0 Editorial for Codeforces Round #798 (Div. 2)
13730 Infected Tree constructive algorithms dfs and similar dp greedy trees Statement C Codeforces Round 798 (Div. 2) {1689} PROGRAMMING 1250.0 Editorial for Codeforces Round #798 (Div. 2)
19149 Mystic Permutation data structures greedy implementation Statement B Codeforces Round 798 (Div. 2) {1689} PROGRAMMING 750.0 Editorial for Codeforces Round #798 (Div. 2)
17107 Price Maximization binary search greedy math two pointers Statement E Codeforces Round 797 (Div. 3) {1690} PROGRAMMING Codeforces Round #797 (Div. 3) Editorial 1500
28190 Restoring the Duration of Tasks data structures greedy implementation Statement C Codeforces Round 797 (Div. 3) {1690} PROGRAMMING Codeforces Round #797 (Div. 3) Editorial 800
27010 Array Decrements greedy implementation Statement B Codeforces Round 797 (Div. 3) {1690} PROGRAMMING Codeforces Round #797 (Div. 3) Editorial 800
17327 Sum of Substrings brute force constructive algorithms greedy math strings Statement C CodeCraft-22 and Codeforces Round 795 (Div. 2) {1691} PROGRAMMING 1250.0 Editorial for CodeCraft-22 and Codeforces Round #795 (Div. 2)
36704 Shoe Shuffling constructive algorithms greedy implementation two pointers Statement B CodeCraft-22 and Codeforces Round 795 (Div. 2) {1691} PROGRAMMING 750.0 Editorial for CodeCraft-22 and Codeforces Round #795 (Div. 2)
32285 Beat The Odds constructive algorithms greedy math Statement A CodeCraft-22 and Codeforces Round 795 (Div. 2) {1691} PROGRAMMING 500.0 Editorial for CodeCraft-22 and Codeforces Round #795 (Div. 2)
2113 Number of Groups data structures dfs and similar dsu graphs greedy sortings Statement E CodeCraft-22 and Codeforces Round 795 (Div. 2) {1691} PROGRAMMING 2250.0 Editorial for CodeCraft-22 and Codeforces Round #795 (Div. 2)
39719 All Distinct greedy sortings Statement B Codeforces Round 799 (Div. 4) {1692} PROGRAMMING Codeforces Round #799 (Div. 4) Editorial
9678 Fake Plastic Trees dfs and similar dp greedy trees Statement B Codeforces Round 800 (Div. 1) {1693} PROGRAMMING 1000.0 Codeforces Round #800 Editorial 1700
3223 Keshi in Search of AmShZ graphs greedy shortest paths Statement C Codeforces Round 800 (Div. 1) {1693} PROGRAMMING 1500.0 Codeforces Round #800 Editorial 2300
23587 Creep greedy implementation Statement A Codeforces Round 800 (Div. 2) {1694} PROGRAMMING 500.0 Codeforces Round #800 Editorial 800
14330 Zero Path brute force data structures dp greedy shortest paths Statement C Codeforces Round 801 (Div. 2) and EPIC Institute of Technology Round {1695} PROGRAMMING 1250.0 Editorial for Codeforces Round #801 (Div. 2) and EPIC Institute of Technology Round
2472 Tree Queries (Easy Version) constructive algorithms dfs and similar dp greedy trees Statement D1 Codeforces Round 801 (Div. 2) and EPIC Institute of Technology Round {1695} PROGRAMMING 1250.0 Editorial for Codeforces Round #801 (Div. 2) and EPIC Institute of Technology Round
2307 Tree Queries (Hard Version) constructive algorithms dfs and similar dp greedy trees Statement D2 Codeforces Round 801 (Div. 2) and EPIC Institute of Technology Round {1695} PROGRAMMING 1000.0 Editorial for Codeforces Round #801 (Div. 2) and EPIC Institute of Technology Round
6044 Permutation Graph binary search constructive algorithms data structures greedy shortest paths trees Statement D Codeforces Global Round 21 {1696} PROGRAMMING 2000.0 Editorial of Codeforces Global Round 21
204 Maximum Product? brute force combinatorics dp greedy math two pointers Statement H Codeforces Global Round 21 {1696} PROGRAMMING 4000.0 Editorial of Codeforces Global Round 21
12611 Fishingprince Plays With Array constructive algorithms greedy implementation Statement C Codeforces Global Round 21 {1696} PROGRAMMING 1500.0 Editorial of Codeforces Global Round 21
15866 awoo's Favorite Problem constructive algorithms data structures dp greedy implementation strings two pointers Statement C Educational Codeforces Round 130 (Rated for Div. 2) {1697} PROGRAMMING 103835
26789 Parkway Walk greedy implementation Statement A Educational Codeforces Round 130 (Rated for Div. 2) {1697} PROGRAMMING 103835
31123 Promo greedy sortings Statement B Educational Codeforces Round 130 (Rated for Div. 2) {1697} PROGRAMMING 103835
1842 PermutationForces II binary search brute force combinatorics constructive algorithms greedy sortings Statement E Codeforces Round 803 (Div. 2) {1698} PROGRAMMING 2000.0 Codeforces Round #803 (Div. 2) Editorial
21496 Rising Sand constructive algorithms greedy implementation Statement B Codeforces Round 803 (Div. 2) {1698} PROGRAMMING 500.0 Codeforces Round #803 (Div. 2) Editorial
7091 River Locks binary search dp greedy math Statement D Codeforces Round 802 (Div. 2) {1700} PROGRAMMING 1750.0 103978 1900
23719 Optimal Path dp greedy math Statement A Codeforces Round 802 (Div. 2) {1700} PROGRAMMING 500.0 103978 800
6307 Permutation Restoration binary search data structures greedy math sortings Statement D Educational Codeforces Round 131 (Rated for Div. 2) {1701} PROGRAMMING Educational Codeforces Round 131 Editorial
1366 Text Editor brute force dp greedy strings two pointers Statement E Educational Codeforces Round 131 (Rated for Div. 2) {1701} PROGRAMMING Educational Codeforces Round 131 Editorial
9551 Equate Multisets constructive algorithms data structures graph matchings greedy math number theory Statement F Codeforces Round 805 (Div. 3) {1702} PROGRAMMING 104763
31070 Yet Another Problem About Pairs Satisfying an Inequality binary search data structures dp greedy sortings Statement F Codeforces Round 806 (Div. 4) {1703} PROGRAMMING 104786
12896 Good Key, Bad Key bitmasks brute force dp greedy math Statement G Codeforces Round 806 (Div. 4) {1703} PROGRAMMING 104786
25824 Virus greedy sortings Statement C CodeTON Round 2 (Div. 1 + Div. 2, Rated, Prizes!) {1704} PROGRAMMING 1250.0 CodeTON Round 2 Editorial
25595 Mark the Dust Sweeper greedy implementation Statement B Codeforces Round 807 (Div. 2) {1705} PROGRAMMING 1000.0 Codeforces Round #807 (Div 2.) Editorial
7761 Chopping Carrots (Easy Version) binary search brute force constructive algorithms dp greedy number theory Statement D1 Codeforces Round 809 (Div. 2) {1706} PROGRAMMING 1000.0 Codeforces Round #809 Editorial
16205 Qpwoeirut And The City dp greedy implementation Statement C Codeforces Round 809 (Div. 2) {1706} PROGRAMMING 1250.0 Codeforces Round #809 Editorial
17595 Making Towers dp greedy math Statement B Codeforces Round 809 (Div. 2) {1706} PROGRAMMING 1000.0 Codeforces Round #809 Editorial
24303 Another String Minimization Problem greedy strings Statement A Codeforces Round 809 (Div. 2) {1706} PROGRAMMING 500.0 Codeforces Round #809 Editorial
15585 Doremy's IQ binary search greedy implementation Statement A Codeforces Round 808 (Div. 1) {1707} PROGRAMMING 500.0 104930
1932 DFS Trees data structures dfs and similar dsu graphs greedy trees Statement C Codeforces Round 808 (Div. 1) {1707} PROGRAMMING 1250.0 104930
22653 Difference Operations greedy math Statement A Codeforces Round 808 (Div. 2) {1708} PROGRAMMING 500.0 104930
4040 XOR Tree data structures dfs and similar dsu greedy trees Statement E Educational Codeforces Round 132 (Rated for Div. 2) {1709} PROGRAMMING 105164
684 Multiset of Strings dp fft flows graphs greedy math Statement F Educational Codeforces Round 132 (Rated for Div. 2) {1709} PROGRAMMING 105164
10420 Recover an RBS greedy implementation strings Statement C Educational Codeforces Round 132 (Rated for Div. 2) {1709} PROGRAMMING 105164
22435 Woeful Permutation constructive algorithms greedy number theory Statement B Codeforces Round 813 (Div. 2) {1712} PROGRAMMING 1000.0 Codeforces Round #813 (Div. 2) Editorial
25144 Wonderful Permutation greedy implementation Statement A Codeforces Round 813 (Div. 2) {1712} PROGRAMMING 500.0 Codeforces Round #813 (Div. 2) Editorial
21332 Sort Zero greedy sortings two pointers Statement C Codeforces Round 813 (Div. 2) {1712} PROGRAMMING 1500.0 Codeforces Round #813 (Div. 2) Editorial
6274 Tournament Countdown constructive algorithms fft greedy greedy interactive number theory probabilities Statement D Codeforces Round 812 (Div. 2) {1713} PROGRAMMING 2000.0 Codeforces Round #812 (Div. 2) Editorial 1800
1995 Cross Swapping dsu greedy matrices Statement E Codeforces Round 812 (Div. 2) {1713} PROGRAMMING 2500.0 Codeforces Round #812 (Div. 2) Editorial 2400
22871 Traveling Salesman Problem geometry greedy implementation Statement A Codeforces Round 812 (Div. 2) {1713} PROGRAMMING 500.0 Codeforces Round #812 (Div. 2) Editorial 800
3713 Build a Tree and That Is It brute force constructive algorithms greedy implementation trees Statement F Codeforces Round 811 (Div. 3) {1714} PROGRAMMING Codeforces Round #811 (Div. 3) Editorial
10425 Color with Occurrences dp greedy strings Statement D Codeforces Round 811 (Div. 3) {1714} PROGRAMMING Codeforces Round #811 (Div. 3) Editorial
6171 2+ doors 2-sat bitmasks graphs greedy schedules Statement D Codeforces Round 816 (Div. 2) {1715} PROGRAMMING 2250.0 Codeforces Round #816 (Div. 2) editorial
10537 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
24410 Crossmarket constructive algorithms greedy math Statement A Codeforces Round 816 (Div. 2) {1715} PROGRAMMING 500.0 Codeforces Round #816 (Div. 2) editorial
34925 Beautiful Array constructive algorithms greedy math Statement B Codeforces Round 816 (Div. 2) {1715} PROGRAMMING 1000.0 Codeforces Round #816 (Div. 2) editorial
36073 2-3 Moves greedy math Statement A Educational Codeforces Round 133 (Rated for Div. 2) {1716} PROGRAMMING 105653
15971 Madoka and Formal Statement greedy math Statement C Codeforces Round 818 (Div. 2) {1717} PROGRAMMING 1500.0 Codeforces Round #818 (Div. 2) Editorial. 1300
3500 Fibonacci Strings brute force data structures greedy implementation math number theory Statement B Codeforces Round 814 (Div. 1) {1718} PROGRAMMING 1250.0 Codeforces Round #814 (Div. 1, Div. 2) Editorial
1867 Tonya and Burenka-179 brute force data structures greedy math number theory Statement C Codeforces Round 814 (Div. 1) {1718} PROGRAMMING 1250.0 Codeforces Round #814 (Div. 1, Div. 2) Editorial
5951 Burenka and Traditions (hard version) data structures dp greedy math two pointers Statement A2 Codeforces Round 814 (Div. 1) {1718} PROGRAMMING 500.0 Codeforces Round #814 (Div. 1, Div. 2) Editorial
6457 Burenka and Traditions (easy version) dp greedy math Statement A1 Codeforces Round 814 (Div. 1) {1718} PROGRAMMING 500.0 Codeforces Round #814 (Div. 1, Div. 2) Editorial
424 Permutation for Burenka greedy math trees Statement D Codeforces Round 814 (Div. 1) {1718} PROGRAMMING 2250.0 Codeforces Round #814 (Div. 1, Div. 2) Editorial
22463 Interesting Sum data structures greedy math Statement B Codeforces Round 815 (Div. 2) {1720} PROGRAMMING 1000.0 Codeforces Round #815 (Div. 2) Editorial
18289 Corners greedy implementation Statement C Codeforces Round 815 (Div. 2) {1720} PROGRAMMING 1250.0 Codeforces Round #815 (Div. 2) Editorial
14628 Min-Max Array Transformation binary search greedy two pointers Statement C Educational Codeforces Round 134 (Rated for Div. 2) {1721} PROGRAMMING 106416
7757 Maximum AND bitmasks brute force divide and conquer greedy math sortings Statement D Educational Codeforces Round 134 (Rated for Div. 2) {1721} PROGRAMMING 106416
26749 Line greedy sortings Statement D Codeforces Round 817 (Div. 4) {1722} PROGRAMMING 106478 1100
29887 Basketball Together binary search greedy sortings Statement B COMPFEST 14 - Preliminary Online Mirror (Unrated, ICPC Rules, Teams Preferred) {1725} PROGRAMMING Tutorial
368 A Certain Magical Party combinatorics greedy sortings Statement G Codeforces Round 819 (Div. 1 + Div. 2) and Grimoire of Code Annual Contest 2022 {1726} PROGRAMMING 3250.0 Codeforces Round #819 (Div. 1 + Div. 2) and Grimoire of Code Annual Contest 2022 Editorial
131 Late For Work data structures greedy schedules shortest paths Statement F Codeforces Round 819 (Div. 1 + Div. 2) and Grimoire of Code Annual Contest 2022 {1726} PROGRAMMING 2750.0 Codeforces Round #819 (Div. 1 + Div. 2) and Grimoire of Code Annual Contest 2022 Editorial
38222 Mainak and Array greedy math Statement A Codeforces Round 819 (Div. 1 + Div. 2) and Grimoire of Code Annual Contest 2022 {1726} PROGRAMMING 500.0 Codeforces Round #819 (Div. 1 + Div. 2) and Grimoire of Code Annual Contest 2022 Editorial
2042 Red-Black Pepper binary search brute force greedy math number theory sortings ternary search Statement E Educational Codeforces Round 135 (Rated for Div. 2) {1728} PROGRAMMING 106805
25489 Colored Balls: Revisited greedy implementation sortings Statement A Educational Codeforces Round 135 (Rated for Div. 2) {1728} PROGRAMMING 106805
32576 Decode String greedy strings Statement B Codeforces Round 820 (Div. 3) {1729} PROGRAMMING Codeforces Round #820 (Div. 3) Editorial
31841 Friends and the Restaurant greedy two pointers Statement D Codeforces Round 820 (Div. 3) {1729} PROGRAMMING Codeforces Round #820 (Div. 3) Editorial
18012 Minimum Notation data structures greedy math sortings Statement C Codeforces Round 823 (Div. 2) {1730} PROGRAMMING 1500.0 Codeforces Round #823 — editorial 1200
17755 Meeting on the Line binary search greedy implementation math ternary search Statement B Codeforces Round 823 (Div. 2) {1730} PROGRAMMING 1000.0 Codeforces Round #823 — editorial 1600
24933 Planets data structures data structures greedy sortings Statement A Codeforces Round 823 (Div. 2) {1730} PROGRAMMING 500.0 Codeforces Round #823 — editorial 800
3511 Graph Cost dp greedy math number theory Statement E Codeforces Round 841 (Div. 2) and Divide by Zero 2022 {1731} PROGRAMMING 2000.0 Codeforces Round #841 (Div. 2) and Divide By Zero 2022 Editorial
23719 Joey Takes Money greedy math Statement A Codeforces Round 841 (Div. 2) and Divide by Zero 2022 {1731} PROGRAMMING 500.0 Codeforces Round #841 (Div. 2) and Divide By Zero 2022 Editorial
27777 Kill Demodogs greedy math Statement B Codeforces Round 841 (Div. 2) and Divide by Zero 2022 {1731} PROGRAMMING 1000.0 Codeforces Round #841 (Div. 2) and Divide By Zero 2022 Editorial
7833 Sheikh (Easy version) binary search bitmasks greedy two pointers Statement C1 Codeforces Round 830 (Div. 2) {1732} PROGRAMMING 1000.0 108327 1800
3114 Sheikh (Hard Version) binary search bitmasks brute force greedy implementation two pointers Statement C2 Codeforces Round 830 (Div. 2) {1732} PROGRAMMING 1000.0 108327 2100
15115 Zero-One (Easy Version) dp greedy math Statement D1 Codeforces Round 821 (Div. 2) {1733} PROGRAMMING 1500.0 Codeforces Round #821 (Div. 2) Editorial
21888 Consecutive Sum greedy sortings Statement A Codeforces Round 821 (Div. 2) {1733} PROGRAMMING 500.0 Codeforces Round #821 (Div. 2) Editorial
7088 Slime Escape data structures dp greedy two pointers Statement D Codeforces Round 822 (Div. 2) {1734} PROGRAMMING 2000.0 Codeforces Round #822 (Div.2) Editorial
29715 Removing Smallest Multiples greedy math Statement C Codeforces Round 822 (Div. 2) {1734} PROGRAMMING 1250.0 Codeforces Round #822 (Div.2) Editorial
22458 Select Three Sticks greedy math sortings Statement A Codeforces Round 822 (Div. 2) {1734} PROGRAMMING 500.0 Codeforces Round #822 (Div.2) Editorial
21102 Working Week constructive algorithms greedy math Statement A Codeforces Round 824 (Div. 2) {1735} PROGRAMMING 500.0 Codeforces Round #824 — editorial
11003 Phase Shift dfs and similar dsu graphs greedy strings Statement C Codeforces Round 824 (Div. 2) {1735} PROGRAMMING 1250.0 Codeforces Round #824 — editorial
19458 Tea with Tangerines greedy math Statement B Codeforces Round 824 (Div. 2) {1735} PROGRAMMING 750.0 Codeforces Round #824 — editorial
2794 Equal Binary Subsequences constructive algorithms greedy strings Statement D Codeforces Round 825 (Div. 2) {1736} PROGRAMMING 2000.0 Codeforces Round #825 (Div. 2) Editorial
2111 Ela and the Wiring Wizard graphs greedy shortest paths Statement D Dytechlab Cup 2022 {1737} PROGRAMMING 2000.0 Editorial of Dytechlab Cup 2022
10880 Ela Sorting Books greedy implementation strings Statement A Dytechlab Cup 2022 {1737} PROGRAMMING 500.0 Editorial of Dytechlab Cup 2022
1398 Connectivity Addicts constructive algorithms dsu graphs greedy interactive shortest paths sortings trees Statement F Codeforces Global Round 22 {1738} PROGRAMMING 2750.0 Editorial of Codeforces Global Round <strong>22</strong>
12933 Even Number Addicts dp games greedy math Statement C Codeforces Global Round 22 {1738} PROGRAMMING 1500.0 Editorial of Codeforces Global Round <strong>22</strong>
14213 Glory Addicts greedy implementation Statement A Codeforces Global Round 22 {1738} PROGRAMMING 500.0 Editorial of Codeforces Global Round <strong>22</strong>
6326 Reset K Edges binary search data structures dfs and similar graphs greedy trees Statement D Educational Codeforces Round 136 (Rated for Div. 2) {1739} PROGRAMMING Educational Codeforces Round 136 Editorial
24566 Array Recovery constructive algorithms greedy math Statement B Educational Codeforces Round 136 (Rated for Div. 2) {1739} PROGRAMMING Educational Codeforces Round 136 Editorial
12398 Bricks and Bags constructive algorithms games greedy sortings Statement C Codeforces Round 831 (Div. 1 + Div. 2) {1740} PROGRAMMING 1500.0 Tutorial 1400
9106 Knowledge Cards constructive algorithms data structures greedy math Statement D Codeforces Round 831 (Div. 1 + Div. 2) {1740} PROGRAMMING 1750.0 Tutorial 1500
5113 Hanging Hearts constructive algorithms data structures dfs and similar dp greedy trees Statement E Codeforces Round 831 (Div. 1 + Div. 2) {1740} PROGRAMMING 2000.0 Tutorial 1800
14371 Jumbo Extra Cheese 2 geometry greedy sortings Statement B Codeforces Round 831 (Div. 1 + Div. 2) {1740} PROGRAMMING 1000.0 Tutorial 800
19454 Minimize the Thickness brute force greedy math two pointers Statement C Codeforces Round 826 (Div. 3) {1741} PROGRAMMING 107908
39989 Scuza binary search greedy math Statement E Codeforces Round 827 (Div. 4) {1742} PROGRAMMING 107962
13491 Orray bitmasks brute force greedy math Statement G Codeforces Round 827 (Div. 4) {1742} PROGRAMMING 107962
35225 Coprime brute force greedy number theory Statement D Codeforces Round 827 (Div. 4) {1742} PROGRAMMING 107962
14187 Smaller constructive algorithms greedy strings Statement F Codeforces Round 827 (Div. 4) {1742} PROGRAMMING 107962
61923 Increasing greedy implementation sortings Statement B Codeforces Round 827 (Div. 4) {1742} PROGRAMMING 107962
20772 Save the Magazines constructive algorithms greedy sortings string suffix structures Statement C Educational Codeforces Round 137 (Rated for Div. 2) {1743} PROGRAMMING Educational Codeforces Round 137 Editorial 1100
28842 Number Replacement greedy implementation Statement A Codeforces Round 828 (Div. 3) {1744} PROGRAMMING Codeforces Round #828 (Div. 3) Editorial
24690 Divisibility by 2^n greedy math sortings Statement D Codeforces Round 828 (Div. 3) {1744} PROGRAMMING Codeforces Round #828 (Div. 3) Editorial
14150 Permutation Operations constructive algorithms greedy implementation math Statement C Codeforces Global Round 23 {1746} PROGRAMMING 1000.0 Codeforces Global Round 23 Editorial
5139 Paths on the Tree dfs and similar dp greedy sortings trees Statement D Codeforces Global Round 23 {1746} PROGRAMMING 1500.0 Codeforces Global Round 23 Editorial
13184 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
15830 Number Game games greedy implementation Statement C Educational Codeforces Round 138 (Rated for Div. 2) {1749} PROGRAMMING 108269
1680 Bracket Cost binary search data structures divide and conquer dp greedy strings Statement E CodeTON Round 3 (Div. 1 + Div. 2, Rated, Prizes!) {1750} PROGRAMMING 2250.0 CodeTON Round 3 (Div. 1 + Div. 2) Editorial
15142 Factorial Divisibility greedy math Statement B Codeforces Round 829 (Div. 1) {1753} PROGRAMMING 750.0 Tutorial 1600
15331 Almost All Multiples greedy number theory Statement C Codeforces Round 836 (Div. 2) {1758} PROGRAMMING 1500.0 Codeforces Round #836 (Div. 2) Editorial
5567 Restore the Permutation binary search data structures greedy math Statement G Codeforces Round 834 (Div. 3) {1759} PROGRAMMING 109254
4534 All Possible Digits binary search data structures greedy math number theory Statement F Codeforces Round 834 (Div. 3) {1759} PROGRAMMING 109254
19507 Thermostat greedy math shortest paths Statement C Codeforces Round 834 (Div. 3) {1759} PROGRAMMING 109254
15060 Quests binary search greedy sortings Statement F Codeforces Round 835 (Div. 4) {1760} PROGRAMMING 109348