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 ... 6 7 8 9 10 11 12 13 >

Solved
Name
Tags
Solutions
Index
Contest
Type
Points
Tutorial
Rating Level
9670 Mikasa binary search bitmasks greedy implementation Statement C Codeforces Round 735 (Div. 2) {1554} PROGRAMMING 1750.0 Editorial of Codeforces Round #735 (Div. 2) 1800
10544 Diane constructive algorithms greedy strings Statement D Codeforces Round 735 (Div. 2) {1554} PROGRAMMING 2000.0 Editorial of Codeforces Round #735 (Div. 2) 1800
31276 Cherry greedy Statement A Codeforces Round 735 (Div. 2) {1554} PROGRAMMING 750.0 Editorial of Codeforces Round #735 (Div. 2) 800
2986 Equilibrium data structures greedy Statement E Deltix Round, Summer 2021 (open for everyone, rated, Div. 1 + Div. 2) {1556} PROGRAMMING 2000.0 94384 2200
446 DIY Tree graphs greedy math Statement H Deltix Round, Summer 2021 (open for everyone, rated, Div. 1 + Div. 2) {1556} PROGRAMMING 3500.0 94384 3300
2988 Ezzat and Grid data structures dp graphs greedy Statement D Codeforces Round 737 (Div. 2) {1557} PROGRAMMING 2500.0 Codeforces Round #737 Editorial
24582 Moamen and k-subarrays greedy sortings Statement B Codeforces Round 737 (Div. 2) {1557} PROGRAMMING 1000.0 Codeforces Round #737 Editorial
3708 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
15973 Mocha and Diana (Easy Version) brute force constructive algorithms dsu graphs greedy trees Statement D1 Codeforces Round 738 (Div. 2) {1559} PROGRAMMING 1500.0 Tutorial (en) 1400
3048 Mocha and Diana (Hard Version) brute force constructive algorithms dfs and similar dsu graphs greedy trees two pointers Statement D2 Codeforces Round 738 (Div. 2) {1559} PROGRAMMING 1500.0 Tutorial (en) 2500
24101 Mocha and Red and Blue dp greedy Statement B Codeforces Round 738 (Div. 2) {1559} PROGRAMMING 750.0 Tutorial (en) 900
19438 Make a Power of Two greedy math strings Statement D Codeforces Round 739 (Div. 3) {1560} PROGRAMMING 94009 1300
6741 Nearest Beautiful Number (easy version) binary search bitmasks brute force constructive algorithms dfs and similar greedy Statement F1 Codeforces Round 739 (Div. 3) {1560} PROGRAMMING 94009 1900
4928 Nearest Beautiful Number (hard version) bitmasks brute force constructive algorithms dfs and similar dp greedy Statement F2 Codeforces Round 739 (Div. 3) {1560} PROGRAMMING 94009 2100
21213 Deep Down Below binary search greedy sortings Statement C Codeforces Round 740 (Div. 2, based on VK Cup 2021 - Final (Engine)) {1561} PROGRAMMING 1250.0 Codeforces Round #740 Editorial 1300
26348 The Miracle and the Sleeper greedy math Statement A Codeforces Round 741 (Div. 2) {1562} PROGRAMMING 500.0 Editorial of Codeforces Round 741 (Div. 2)
18999 MAX-MEX Cut bitmasks constructive algorithms dp greedy Statement C Codeforces Global Round 16 {1566} PROGRAMMING 1000.0 Codeforces Global Round 16 Editorial
383 Four Vertices constructive algorithms data structures graphs greedy implementation shortest paths Statement G Codeforces Global Round 16 {1566} PROGRAMMING 3000.0 Codeforces Global Round 16 Editorial
8327 Seating Arrangements (hard version) data structures greedy implementation sortings two pointers Statement D2 Codeforces Global Round 16 {1566} PROGRAMMING 1000.0 Codeforces Global Round 16 Editorial
14705 Seating Arrangements (easy version) data structures greedy sortings Statement D1 Codeforces Global Round 16 {1566} PROGRAMMING 750.0 Codeforces Global Round 16 Editorial
4440 Buds Re-hanging dfs and similar graphs greedy trees Statement E Codeforces Global Round 16 {1566} PROGRAMMING 2000.0 Codeforces Global Round 16 Editorial
25352 Median Maximization greedy math Statement A Codeforces Global Round 16 {1566} PROGRAMMING 500.0 Codeforces Global Round 16 Editorial
32696 MEXor Mixup bitmasks greedy Statement B Codeforces Round 742 (Div. 2) {1567} PROGRAMMING 1000.0 Codeforces Round #742 Editorial
4842 Expression Evaluation Error constructive algorithms greedy implementation math Statement D Codeforces Round 742 (Div. 2) {1567} PROGRAMMING 1750.0 Codeforces Round #742 Editorial
294 Shooting *special greedy implementation Statement C Kotlin Heroes: Practice 8 {1570} PROGRAMMING
374 Fix the String *special bitmasks dp greedy Statement E Kotlin Heroes: Episode 8 {1571} PROGRAMMING Kotlin Heroes 8 Editorial
2004 Xor of 3 brute force constructive algorithms greedy Statement B Codeforces Round 743 (Div. 1) {1572} PROGRAMMING 1250.0 Tutorial 2500
1698 Paint dp greedy Statement C Codeforces Round 743 (Div. 1) {1572} PROGRAMMING 1750.0 Tutorial 2700
621 Bridge Club flows graphs greedy Statement D Codeforces Round 743 (Div. 1) {1572} PROGRAMMING 2500.0 Tutorial 2800
15551 Swaps greedy math Statement B Codeforces Round 743 (Div. 2) {1573} PROGRAMMING 1000.0 Tutorial 1400
21935 Countdown greedy Statement A Codeforces Round 743 (Div. 2) {1573} PROGRAMMING 500.0 Tutorial 800
18538 Slay the Dragon binary search greedy sortings Statement C Educational Codeforces Round 114 (Rated for Div. 2) {1574} PROGRAMMING 95188
18208 Combinatorics Homework combinatorics greedy math Statement B Educational Codeforces Round 114 (Rated for Div. 2) {1574} PROGRAMMING 95188
4843 The Strongest Build data structures dfs and similar graphs greedy hashing implementation shortest paths Statement D Educational Codeforces Round 114 (Rated for Div. 2) {1574} PROGRAMMING 95188
5337 Array Stabilization (AND version) binary search brute force graphs greedy implementation math number theory shortest paths Statement F Codeforces Round 744 (Div. 3) {1579} PROGRAMMING Codeforces Round #744 (Div. 3) Editorial
2744 Minimal Coverage binary search dp greedy Statement G Codeforces Round 744 (Div. 3) {1579} PROGRAMMING Codeforces Round #744 (Div. 3) Editorial
11639 Ticks brute force dp greedy implementation Statement C Codeforces Round 744 (Div. 3) {1579} PROGRAMMING Codeforces Round #744 (Div. 3) Editorial
25071 Permutation Minimization by Deque constructive algorithms greedy math Statement E1 Codeforces Round 744 (Div. 3) {1579} PROGRAMMING Codeforces Round #744 (Div. 3) Editorial
7355 Array Optimization by Deque data structures greedy Statement E2 Codeforces Round 744 (Div. 3) {1579} PROGRAMMING Codeforces Round #744 (Div. 3) Editorial
18375 Productive Meeting graphs greedy Statement D Codeforces Round 744 (Div. 3) {1579} PROGRAMMING Codeforces Round #744 (Div. 3) Editorial
3917 Portal brute force dp greedy implementation Statement A Codeforces Round 745 (Div. 1) {1580} PROGRAMMING 500.0 Codeforces Round #745 Editorial 1700
12450 Diameter of Graph constructive algorithms graphs greedy math Statement B Codeforces Round 745 (Div. 2) {1581} PROGRAMMING 1000.0 Codeforces Round #745 Editorial 1200
4196 Pchelyonok and Segments binary search data structures dp greedy math Statement E Codeforces Round 750 (Div. 2) {1582} PROGRAMMING 2500.0 Codeforces Round #750 (Div.2) Editorial
23473 Grandma Capa Knits a Scarf data structures greedy strings two pointers Statement C Codeforces Round 750 (Div. 2) {1582} PROGRAMMING 1500.0 Codeforces Round #750 (Div.2) Editorial
2479 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)
14340 Coloring Rectangles greedy Statement B Technocup 2022 - Elimination Round 2 {1584} PROGRAMMING 500.0 Editorial for Technocup 2022 — Elimination Round 2 and Codeforces Round #755 (Div. 1, Div. 2) 1000
1465 Game with Stones binary search data structures games greedy Statement E Technocup 2022 - Elimination Round 2 {1584} PROGRAMMING 2000.0 Editorial for Technocup 2022 — Elimination Round 2 and Codeforces Round #755 (Div. 1, Div. 2) 2300
1112 Strange LCS bitmasks dp graphs greedy strings Statement F Technocup 2022 - Elimination Round 2 {1584} PROGRAMMING 2500.0 Editorial for Technocup 2022 — Elimination Round 2 and Codeforces Round #755 (Div. 1, Div. 2) 2600
17686 Two Arrays greedy math sortings Statement C Technocup 2022 - Elimination Round 2 {1584} PROGRAMMING 1000.0 Editorial for Technocup 2022 — Elimination Round 2 and Codeforces Round #755 (Div. 1, Div. 2) 900
16117 Array Eversion greedy Statement B Technocup 2022 - Elimination Round 3 {1585} PROGRAMMING 1000.0 Codeforces Round #759 (Div. 2, based on Technocup 2022 Elimination Round 3) Editorial
12809 Minimize Distance greedy Statement C Technocup 2022 - Elimination Round 3 {1585} PROGRAMMING 1500.0 Codeforces Round #759 (Div. 2, based on Technocup 2022 Elimination Round 3) Editorial
8454 Array Eversion greedy Statement B Codeforces Round 759 (Div. 2, based on Technocup 2022 Elimination Round 3) {1591} PROGRAMMING 1000.0 Codeforces Round #759 (Div. 2, based on Technocup 2022 Elimination Round 3) Editorial
5097 Minimize Distance greedy math Statement C Codeforces Round 759 (Div. 2, based on Technocup 2022 Elimination Round 3) {1591} PROGRAMMING 1500.0 Codeforces Round #759 (Div. 2, based on Technocup 2022 Elimination Round 3) Editorial
1916 Bored Bakry bitmasks greedy math two pointers Statement E Codeforces Round 746 (Div. 2) {1592} PROGRAMMING 2500.0 95583
968 Alice and Recoloring 2 flows graph matchings greedy Statement F2 Codeforces Round 746 (Div. 2) {1592} PROGRAMMING 1750.0 95583
1077 Alice and Recoloring 1 greedy Statement F1 Codeforces Round 746 (Div. 2) {1592} PROGRAMMING 1750.0 95583
23741 Gamer Hemose greedy math sortings Statement A Codeforces Round 746 (Div. 2) {1592} PROGRAMMING 500.0 95583
27827 Save More Mice binary search greedy greedy Statement C Codeforces Round 748 (Div. 3) {1593} PROGRAMMING Editorial for Codeforces Round #748 (Div.3)
1884 Changing Brackets data structures greedy Statement G Codeforces Round 748 (Div. 3) {1593} PROGRAMMING Editorial for Codeforces Round #748 (Div.3)
14687 Gardener and Tree dfs and similar greedy implementation trees Statement E Codeforces Round 748 (Div. 3) {1593} PROGRAMMING Editorial for Codeforces Round #748 (Div.3)
40328 Make it Divisible by 25 dp greedy math math Statement B Codeforces Round 748 (Div. 3) {1593} PROGRAMMING Editorial for Codeforces Round #748 (Div.3)
28057 Make Them Equal brute force greedy math strings Statement C Codeforces Round 747 (Div. 2) {1594} PROGRAMMING 1500.0 95525 1200
328 Bob's Beautiful Array bitmasks brute force greedy Statement J Bubble Cup 14 - Finals Online Mirror (Unrated, ICPC Rules, Teams Preferred, Div. 1) {1599} PROGRAMMING BubbleCup2021.pdf
858 Weights constructive algorithms greedy two pointers Statement A Bubble Cup 14 - Finals Online Mirror (Unrated, ICPC Rules, Teams Preferred, Div. 1) {1599} PROGRAMMING Tutorial
2358 Array Game games greedy two pointers Statement E Bubble Cup 14 - Finals Online Mirror (Unrated, ICPC Rules, Teams Preferred, Div. 2) {1600} PROGRAMMING BubbleCup2021.pdf
2335 Optimal Insertion data structures divide and conquer greedy sortings Statement C Codeforces Round 751 (Div. 1) {1601} PROGRAMMING 2000.0 95865 2300
1912 Difficult Mountain data structures dp greedy sortings Statement D Codeforces Round 751 (Div. 1) {1601} PROGRAMMING 2250.0 95865 2700
594 Phys Ed Online data structures dp greedy trees Statement E Codeforces Round 751 (Div. 1) {1601} PROGRAMMING 2250.0 95865 2900
2259 Extreme Extension dp greedy math number theory Statement C Codeforces Round 752 (Div. 1) {1603} PROGRAMMING 1750.0 Editorial of Codeforces Round #752 2300
22620 Era greedy Statement A Codeforces Round 752 (Div. 2) {1604} PROGRAMMING 500.0 Editorial of Codeforces Round #752 800
19231 Reverse Sort greedy sortings Statement B Codeforces Round 754 (Div. 2) {1605} PROGRAMMING 1000.0 tutorial 1000
3243 Treelabeling bitmasks constructive algorithms dfs and similar games graphs greedy trees Statement D Codeforces Round 754 (Div. 2) {1605} PROGRAMMING 2000.0 tutorial 2100
15189 Banknotes constructive algorithms greedy Statement C Educational Codeforces Round 116 (Rated for Div. 2) {1606} PROGRAMMING 96454
1741 Banquet Preparations 1 greedy Statement G Codeforces Round 753 (Div. 3) {1607} PROGRAMMING Codeforces Round #753 (Div. 3) Editorial
18108 Blue-Red Permutation greedy math sortings Statement D Codeforces Round 753 (Div. 3) {1607} PROGRAMMING Codeforces Round #753 (Div. 3) Editorial
1419 Banquet Preparations 2 greedy sortings Statement H Codeforces Round 753 (Div. 3) {1607} PROGRAMMING Codeforces Round #753 (Div. 3) Editorial
12470 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)
7350 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)
8370 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
483 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
18862 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
1921 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
15525 Keshi Is Throwing a Party binary search greedy Statement C Codeforces Global Round 17 {1610} PROGRAMMING 1500.0 Codeforces Global Round 17 Editorial
626 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
23203 Kalindrome Array greedy two pointers Statement B Codeforces Global Round 17 {1610} PROGRAMMING 1000.0 Codeforces Global Round 17 Editorial
8330 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
4309 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
737 Robot and Candies data structures greedy Statement G Codeforces Round 756 (Div. 3) {1611} PROGRAMMING Tutorial 2500
692 Armor and Weapons brute force dp greedy shortest paths Statement F Educational Codeforces Round 117 (Rated for Div. 2) {1612} PROGRAMMING 97164
997 Max Sum Array combinatorics constructive algorithms greedy sortings Statement G Educational Codeforces Round 117 (Rated for Div. 2) {1612} PROGRAMMING 97164
2805 Messages greedy math probabilities sortings Statement E Educational Codeforces Round 117 (Rated for Div. 2) {1612} PROGRAMMING 97164
24567 Divan and a Store brute force constructive algorithms greedy Statement A Codeforces Round 757 (Div. 2) {1614} PROGRAMMING 500.0 Tutorial 800
17875 And It's Non-Zero bitmasks greedy math Statement B Codeforces Global Round 18 {1615} PROGRAMMING 1000.0 Global Round 18 Editorial
9178 Menorah brute force graphs greedy math Statement C Codeforces Global Round 18 {1615} PROGRAMMING 1750.0 Global Round 18 Editorial
1696 Purple Crayon dp games greedy math trees Statement E Codeforces Global Round 18 {1615} PROGRAMMING 2750.0 Global Round 18 Editorial
21568 Closing The Gap greedy math Statement A Codeforces Global Round 18 {1615} PROGRAMMING 250.0 Global Round 18 Editorial
20675 Mirror in the String greedy strings Statement B Good Bye 2021: 2022 is NEAR {1616} PROGRAMMING 1000.0 Good Bye 2021 -- Editorial 1100
5555 Keep the Average High dp greedy math Statement D Good Bye 2021: 2022 is NEAR {1616} PROGRAMMING 2000.0 Good Bye 2021 -- Editorial 2000
2707 Lexicographically Small Enough data structures greedy strings Statement E Good Bye 2021: 2022 is NEAR {1616} PROGRAMMING 2500.0 Good Bye 2021 -- Editorial 2200
15987 Paprika and Permutation greedy math Statement C Codeforces Round 761 (Div. 2) {1617} PROGRAMMING 1500.0 Editorial for Codeforces Round #761 (Div. 2)
1922 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
20857 Array and Operations dp greedy math Statement D Codeforces Round 760 (Div. 3) {1618} PROGRAMMING Codeforces Round #760 (Div. 3) Editorial
8439 New Year's Problem binary search brute force greedy sortings Statement D Codeforces Round 762 (Div. 3) {1619} PROGRAMMING Tutorial
10188 MEX and Increments constructive algorithms data structures dp greedy math sortings Statement E Codeforces Round 762 (Div. 3) {1619} PROGRAMMING Tutorial
4795 Exact Change binary search brute force constructive algorithms greedy Statement D Educational Codeforces Round 119 (Rated for Div. 2) {1620} PROGRAMMING 98061
7262 BA-String bitmasks brute force dp greedy implementation math shortest paths Statement C Educational Codeforces Round 119 (Rated for Div. 2) {1620} PROGRAMMING 98061
9622 Replace the Numbers data structures dsu greedy trees Statement E Educational Codeforces Round 119 (Rated for Div. 2) {1620} PROGRAMMING 98061
31237 Triangles on a Rectangle geometry greedy math Statement B Educational Codeforces Round 119 (Rated for Div. 2) {1620} PROGRAMMING 98061
1914 New School binary search data structures greedy implementation sortings Statement E Hello 2022 {1621} PROGRAMMING 2250.0
4389 The Winter Hike constructive algorithms greedy math Statement D Hello 2022 {1621} PROGRAMMING 1750.0
14535 Integers Shop data structures greedy implementation Statement B Hello 2022 {1621} PROGRAMMING 1000.0
635 Strange Instructions greedy Statement F Hello 2022 {1621} PROGRAMMING 2750.0
15495 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
2235 Math Test bitmasks brute force greedy Statement E Educational Codeforces Round 120 (Rated for Div. 2) {1622} PROGRAMMING Educational Codeforces Round 120 Editorial
22296 Berland Music greedy sortings Statement B Educational Codeforces Round 120 (Rated for Div. 2) {1622} PROGRAMMING Educational Codeforces Round 120 Editorial
14286 Balanced Stone Heaps binary search greedy Statement C Codeforces Round 763 (Div. 2) {1623} PROGRAMMING 1750.0 Codeforces Round #763 (Div. 2) Editorial
1254 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
19038 Palindromes Coloring binary search greedy sortings strings Statement D Codeforces Round 764 (Div. 3) {1624} PROGRAMMING Codeforces Round #764 (Div. 3) Editorial
7567 MinOr Tree bitmasks dfs and similar dsu greedy Statement G Codeforces Round 764 (Div. 3) {1624} PROGRAMMING Codeforces Round #764 (Div. 3) Editorial
26796 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
18274 Ancient Civilization bitmasks greedy math Statement A Codeforces Round 765 (Div. 2) {1625} PROGRAMMING 500.0 Editorial of Codeforces Round #765 (Div. 2)
16848 Elementary Particles greedy Statement B Codeforces Round 765 (Div. 2) {1625} PROGRAMMING 1000.0 Editorial of Codeforces Round #765 (Div. 2)
4324 Martial Arts Tournament binary search brute force greedy Statement D Educational Codeforces Round 121 (Rated for Div. 2) {1626} PROGRAMMING 99136
11794 Monsters And Spells data structures dp fft greedy implementation two pointers Statement C Educational Codeforces Round 121 (Rated for Div. 2) {1626} PROGRAMMING 99136
1852 Black and White Tree dp greedy trees Statement E Educational Codeforces Round 121 (Rated for Div. 2) {1626} PROGRAMMING 99136
23916 Minor Reduction greedy greedy strings strings Statement B Educational Codeforces Round 121 (Rated for Div. 2) {1626} PROGRAMMING 99136
17537 Not Sitting games greedy sortings Statement B Codeforces Round 766 (Div. 2) {1627} PROGRAMMING 1250.0 Codeforces Round #766 (Div. 2) Editorial
16954 Meximum Array brute force constructive algorithms greedy math Statement A Codeforces Round 767 (Div. 1) {1628} PROGRAMMING 500.0 99276
3569 Grid Xor constructive algorithms greedy implementation interactive math Statement C Codeforces Round 767 (Div. 1) {1628} PROGRAMMING 1250.0 99276
12680 Peculiar Movie Preferences greedy strings Statement B Codeforces Round 767 (Div. 1) {1628} PROGRAMMING 750.0 99276
25230 GCD Arrays greedy math number theory Statement B Codeforces Round 767 (Div. 2) {1629} PROGRAMMING 750.0 Editorial of Codeforces Round #767
30886 Download More RAM greedy sortings Statement A Codeforces Round 767 (Div. 2) {1629} PROGRAMMING 500.0 Editorial of Codeforces Round #767
6472 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
3319 Paint the Middle data structures dp greedy sortings Statement C Codeforces Round 768 (Div. 1) {1630} PROGRAMMING 1250.0 Editorial of Codeforces Round #768
1941 Flipping Range dp greedy number theory Statement D Codeforces Round 768 (Div. 1) {1630} PROGRAMMING 2000.0 Editorial of Codeforces Round #768
26727 Fun with Even Subarrays dp greedy Statement B Codeforces Round 768 (Div. 2) {1631} PROGRAMMING 1000.0 Editorial of Codeforces Round #768
31260 Min Max Swap greedy Statement A Codeforces Round 768 (Div. 2) {1631} PROGRAMMING 500.0 Editorial of Codeforces Round #768
14048 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
5313 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
18569 Make Them Equal dp greedy shortest paths Statement D Educational Codeforces Round 122 (Rated for Div. 2) {1633} PROGRAMMING 99539
29370 Minority greedy Statement B Educational Codeforces Round 122 (Rated for Div. 2) {1633} PROGRAMMING 99539
4714 Finding Zero constructive algorithms greedy interactive Statement D Codeforces Round 770 (Div. 2) {1634} PROGRAMMING 2000.0 Codeforces Round #770 (Div. 2) editorial
25803 Min Or Sum bitmasks greedy Statement A Codeforces Round 772 (Div. 2) {1635} PROGRAMMING 500.0 Codeforces Round #772 Editorial
2720 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
24955 Differential Sorting constructive algorithms greedy Statement C Codeforces Round 772 (Div. 2) {1635} PROGRAMMING 1500.0 Codeforces Round #772 Editorial
1389 Closest Pair data structures greedy Statement F Codeforces Round 772 (Div. 2) {1635} PROGRAMMING 3000.0 Codeforces Round #772 Editorial
18452 Avoid Local Maximums greedy Statement B Codeforces Round 772 (Div. 2) {1635} PROGRAMMING 1000.0 Codeforces Round #772 Editorial
15445 MEX and Array brute force dp greedy math Statement B Codeforces Global Round 19 {1637} PROGRAMMING 1000.0 Tutorial
2158 Towers constructive algorithms dfs and similar dp greedy trees Statement F Codeforces Global Round 19 {1637} PROGRAMMING 3250.0 Tutorial
18717 Andrew and Stones constructive algorithms greedy Statement C Codeforces Global Round 19 {1637} PROGRAMMING 1500.0 Tutorial
4710 Big Brush dfs and similar greedy implementation Statement D Codeforces Round 771 (Div. 2) {1638} PROGRAMMING 1750.0 Codeforces Round #771 Editorial
22138 Reverse greedy math Statement A Codeforces Round 771 (Div. 2) {1638} PROGRAMMING 500.0 Codeforces Round #771 Editorial
18964 Great Sequence brute force greedy sortings Statement A Codeforces Round 773 (Div. 1) {1641} PROGRAMMING 500.0 Codeforces Round #773 editorial
18226 Power Walking greedy Statement B Codeforces Round 773 (Div. 2) {1642} PROGRAMMING 750.0 Codeforces Round #773 editorial
659 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
22654 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
13325 Madoka and Childish Pranks constructive algorithms greedy Statement C Codeforces Round 777 (Div. 2) {1647} PROGRAMMING 1500.0 Codeforces Round #777 Editorial
1097 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
543 Madoka and Laziness dp greedy Statement F Codeforces Round 777 (Div. 2) {1647} PROGRAMMING 3000.0 Codeforces Round #777 Editorial
13935 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
4457 Rescheduling the Exam binary search data structures greedy implementation math sortings Statement E Codeforces Round 776 (Div. 3) {1650} PROGRAMMING 100712
1656 Vitaly and Advanced Useless Algorithms dp greedy Statement F Codeforces Round 776 (Div. 3) {1650} PROGRAMMING 100712
18473 Weight of the System of Nested Segments greedy hashing implementation sortings Statement C Codeforces Round 776 (Div. 3) {1650} PROGRAMMING 100712
20474 Prove Him Wrong constructive algorithms greedy Statement B Educational Codeforces Round 124 (Rated for Div. 2) {1651} PROGRAMMING Educational Codeforces Round 124 Editorial
615 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
14493 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
454 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
19378 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
1212 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
23598 XY Sequence greedy Statement B Educational Codeforces Round 125 (Rated for Div. 2) {1657} PROGRAMMING 101161
17675 Bracket Sequence Deletion greedy hashing Statement C Educational Codeforces Round 125 (Rated for Div. 2) {1657} PROGRAMMING 101161
1962 AND-MEX Walk bitmasks brute force data structures dfs and similar dsu graphs greedy Statement E Codeforces Round 782 (Div. 2) {1659} PROGRAMMING 2250.0 Codeforces Round #782 (Div. 2) Editorial
12015 Bit Flipping bitmasks constructive algorithms greedy strings Statement B Codeforces Round 782 (Div. 2) {1659} PROGRAMMING 750.0 Codeforces Round #782 (Div. 2) Editorial
4443 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
30685 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
14952 Line Empire dp greedy implementation math Statement C Codeforces Round 782 (Div. 2) {1659} PROGRAMMING 1500.0 Codeforces Round #782 (Div. 2) Editorial
8081 Matrix and Shifts constructive algorithms greedy implementation Statement E Codeforces Round 780 (Div. 3) {1660} PROGRAMMING Codeforces Round #780 (Div. 3) Editorial
21967 Get an Even String dp greedy strings Statement C Codeforces Round 780 (Div. 3) {1660} PROGRAMMING Codeforces Round #780 (Div. 3) Editorial
10480 Water the Trees binary search greedy math Statement C Educational Codeforces Round 126 (Rated for Div. 2) {1661} PROGRAMMING Educational Codeforces Round 126 Editorial
805 Teleporters binary search greedy math Statement F Educational Codeforces Round 126 (Rated for Div. 2) {1661} PROGRAMMING Educational Codeforces Round 126 Editorial
20576 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
5382 Progressions Covering data structures greedy implementation Statement D Educational Codeforces Round 126 (Rated for Div. 2) {1661} PROGRAMMING Educational Codeforces Round 126 Editorial
19335 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
1793 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
9835 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
32622 Array Cloning Technique constructive algorithms greedy sortings Statement B Codeforces Round 781 (Div. 2) {1665} PROGRAMMING 750.0 Codeforces Round #781 (Div. 2) Editorial
881 Even Split binary search constructive algorithms greedy Statement E 2021-2022 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1666} PROGRAMMING Tutorial (PDF)
19900 Deletive Editing greedy Statement D 2021-2022 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1666} PROGRAMMING Tutorial (PDF)
15668 Make it Increasing brute force greedy math Statement A Codeforces Round 783 (Div. 1) {1667} PROGRAMMING 250.0 Codeforces Round #783 Editorial 1300
17911 Social Distance greedy math sortings Statement B Codeforces Round 783 (Div. 2) {1668} PROGRAMMING 500.0 Codeforces Round #783 Editorial 900
39261 Eating Candies binary search data structures greedy two pointers Statement F Codeforces Round 784 (Div. 4) {1669} PROGRAMMING 102101 1100
28835 Maximal AND bitmasks greedy math Statement H Codeforces Round 784 (Div. 4) {1669} PROGRAMMING 102101 1300
41324 Odd/Even Increments greedy greedy implementation math Statement C Codeforces Round 784 (Div. 4) {1669} PROGRAMMING 102101 800
15989 Prof. Slim greedy implementation sortings Statement A Codeforces Round 788 (Div. 2) {1670} PROGRAMMING 500.0 Tutorial 800
25213 Dolce Vita binary search brute force greedy math Statement C Educational Codeforces Round 127 (Rated for Div. 2) {1671} PROGRAMMING 102181
8437 Insert a Progression brute force constructive algorithms greedy Statement D Educational Codeforces Round 127 (Rated for Div. 2) {1671} PROGRAMMING 102181
14025 Unequal Array constructive algorithms greedy implementation Statement C Codeforces Global Round 20 {1672} PROGRAMMING 750.0 Global Round 20 Editorial 1100
6934 Cyclic Rotation constructive algorithms greedy implementation two pointers Statement D Codeforces Global Round 20 {1672} PROGRAMMING 1000.0 Global Round 20 Editorial 1700
3526 Array Shuffling constructive algorithms graphs greedy Statement F1 Codeforces Global Round 20 {1672} PROGRAMMING 1250.0 Global Round 20 Editorial 2000
2514 notepad.exe binary search constructive algorithms greedy interactive Statement E Codeforces Global Round 20 {1672} PROGRAMMING 1500.0 Global Round 20 Editorial 2200
1127 Zigu Zagu constructive algorithms greedy Statement H Codeforces Global Round 20 {1672} PROGRAMMING 3000.0 Global Round 20 Editorial 2700
252 PermutationForces data structures greedy Statement I Codeforces Global Round 20 {1672} PROGRAMMING 4000.0 Global Round 20 Editorial 3000
954 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
21623 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
19132 Subtle Substring Subtraction games greedy strings Statement A Codeforces Round 785 (Div. 2) {1673} PROGRAMMING 500.0 Codeforces Round #785 (Div. 2) Editorial
7281 Breaking the Wall binary search brute force constructive algorithms greedy math Statement E Codeforces Round 786 (Div. 3) {1674} PROGRAMMING 102482
5678 Desktop Rearrangement data structures greedy implementation Statement F Codeforces Round 786 (Div. 3) {1674} PROGRAMMING 102482
6238 Vlad and Unfinished Business dfs and similar dp greedy trees Statement F Codeforces Round 787 (Div. 3) {1675} PROGRAMMING 102550
42964 Make It Increasing dp greedy Statement B Codeforces Round 787 (Div. 3) {1675} PROGRAMMING 102550
19274 Detective Task dp greedy Statement C Codeforces Round 787 (Div. 3) {1675} PROGRAMMING 102550
12057 Replace With the Previous, Minimize dsu greedy strings Statement E Codeforces Round 787 (Div. 3) {1675} PROGRAMMING 102550
32825 Eating Queries binary search greedy sortings Statement E Codeforces Round 790 (Div. 4) {1676} PROGRAMMING Codeforces Round #790 (Div. 4) Editorial
29213 X-Sum brute force greedy implementation Statement D Codeforces Round 790 (Div. 4) {1676} PROGRAMMING Codeforces Round #790 (Div. 4) Editorial
34519 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
19985 Longest Strike data structures greedy implementation sortings two pointers Statement F Codeforces Round 790 (Div. 4) {1676} PROGRAMMING Codeforces Round #790 (Div. 4) Editorial
60313 Equal Candies greedy math sortings Statement B Codeforces Round 790 (Div. 4) {1676} PROGRAMMING Codeforces Round #790 (Div. 4) Editorial
4073 Tokitsukaze and Two Colorful Tapes constructive algorithms dfs and similar dsu graphs greedy Statement C Codeforces Round 789 (Div. 1) {1677} PROGRAMMING 1250.0 Tutorial
39744 AvtoBus brute force greedy math number theory Statement A Codeforces Round 791 (Div. 2) {1679} PROGRAMMING 500.0 Codeforces Round #791 (Div. 2) Editorial
4314 Moving Chips binary search bitmasks dp greedy Statement E Educational Codeforces Round 128 (Rated for Div. 2) {1680} PROGRAMMING 102852
11087 Binary String binary search greedy two pointers Statement C Educational Codeforces Round 128 (Rated for Div. 2) {1680} PROGRAMMING 102852
1341 Dog Walking brute force greedy math Statement D Educational Codeforces Round 128 (Rated for Div. 2) {1680} PROGRAMMING 102852
931 Labyrinth Adventures data structures dp greedy matrices shortest paths Statement E Educational Codeforces Round 129 (Rated for Div. 2) {1681} PROGRAMMING 103163 2600
21676 Game with Cards games greedy Statement A Educational Codeforces Round 129 (Rated for Div. 2) {1681} PROGRAMMING 103163 800
745 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
16445 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
392 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
19957 Palindromic Indices greedy strings Statement A Codeforces Round 793 (Div. 2) {1682} PROGRAMMING 750.0 Codeforces Round #793 (Div. 2) Editorial
10740 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
3619 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
18573 Circular Local MiniMax constructive algorithms greedy sortings Statement A Codeforces Round 794 (Div. 1) {1685} PROGRAMMING 500.0 103198 1100
3661 Linguistics greedy implementation strings Statement B Codeforces Round 794 (Div. 1) {1685} PROGRAMMING 1000.0 103198 2000
1333 Bring Balance constructive algorithms greedy Statement C Codeforces Round 794 (Div. 1) {1685} PROGRAMMING 1500.0 103198 2600
132 Permutation Weight (Hard Version) constructive algorithms greedy Statement D2 Codeforces Round 794 (Div. 1) {1685} PROGRAMMING 1500.0 103198 3500
19326 Odd Subarrays dp greedy Statement B Codeforces Round 794 (Div. 2) {1686} PROGRAMMING 1000.0 103198
21234 Everything Everywhere All But One greedy Statement A Codeforces Round 794 (Div. 2) {1686} PROGRAMMING 500.0 103198
4131 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
11386 The Enchanted Forest constructive algorithms greedy math Statement A Codeforces Round 796 (Div. 1) {1687} PROGRAMMING 500.0 Editorial of Codeforces Round 796
18996 Patchouli's Magical Talisman bitmasks constructive algorithms greedy sortings Statement B Codeforces Round 796 (Div. 2) {1688} PROGRAMMING 750.0 Tutorial
17718 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)
13412 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)
19051 Mystic Permutation data structures greedy implementation Statement B Codeforces Round 798 (Div. 2) {1689} PROGRAMMING 750.0 Editorial for Codeforces Round #798 (Div. 2)
16948 Price Maximization binary search greedy math two pointers Statement E Codeforces Round 797 (Div. 3) {1690} PROGRAMMING Codeforces Round #797 (Div. 3) Editorial 1500
35590 Print a Pedestal (Codeforces logo?) constructive algorithms greedy Statement A Codeforces Round 797 (Div. 3) {1690} PROGRAMMING Codeforces Round #797 (Div. 3) Editorial 800
28043 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
26910 Array Decrements greedy implementation Statement B Codeforces Round 797 (Div. 3) {1690} PROGRAMMING Codeforces Round #797 (Div. 3) Editorial 800
17193 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)
35065 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)
32102 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)
2091 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)