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

Solved
Name
Tags
Solutions
Index
Contest
Type
Points
Tutorial
Rating Level
5081 Empty Graph binary search data structures greedy Statement D Codeforces Round 813 (Div. 2) {1712} PROGRAMMING 2000.0 Codeforces Round #813 (Div. 2) Editorial
14544 Min-Max Array Transformation binary search greedy two pointers Statement C Educational Codeforces Round 134 (Rated for Div. 2) {1721} PROGRAMMING 106416
27882 Basketball Together binary search greedy sortings Statement B COMPFEST 14 - Preliminary Online Mirror (Unrated, ICPC Rules, Teams Preferred) {1725} PROGRAMMING Tutorial
2025 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
17163 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
7519 Sheikh (Easy version) binary search bitmasks greedy two pointers Statement C1 Codeforces Round 830 (Div. 2) {1732} PROGRAMMING 1000.0 108327 1800
3058 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
6216 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
38271 Scuza binary search greedy math Statement E Codeforces Round 827 (Div. 4) {1742} PROGRAMMING 107962
1858 FTL binary search dp greedy Statement E Educational Codeforces Round 137 (Rated for Div. 2) {1743} PROGRAMMING Educational Codeforces Round 137 Editorial 2400
1655 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
423 N Machines binary search brute force greedy Statement E Codeforces Round 829 (Div. 1) {1753} PROGRAMMING 2500.0 Tutorial 3300
5478 Restore the Permutation binary search data structures greedy math Statement G Codeforces Round 834 (Div. 3) {1759} PROGRAMMING 109254
4493 All Possible Digits binary search data structures greedy math number theory Statement F Codeforces Round 834 (Div. 3) {1759} PROGRAMMING 109254
14731 Quests binary search greedy sortings Statement F Codeforces Round 835 (Div. 4) {1760} PROGRAMMING 109348
1424 Doremy's Number Line binary search dp greedy sortings Statement E Codeforces Global Round 24 {1764} PROGRAMMING 2250.0 Codeforces Global Round 24 Editorial
1532 Hospital Queue binary search graphs greedy Statement H 2022-2023 ICPC, NERC, Southern and Volga Russian Regional Contest (Online Mirror, ICPC Rules, Preferably Teams) {1765} PROGRAMMING 109642 2200
1599 Gaining Rating binary search greedy math sortings Statement G Codeforces Round 839 (Div. 3) {1772} PROGRAMMING 110313
1429 Rectangle Shrinking binary search data structures greedy implementation two pointers Statement E VK Cup 2022 - Отборочный раунд (Engine) {1781} PROGRAMMING 2750.0 Tutorial
10841 Yet Another Tournament binary search greedy sortings Statement C Educational Codeforces Round 141 (Rated for Div. 2) {1783} PROGRAMMING Educational Codeforces Round 141 Editorial
5859 Teleporters (Hard Version) binary search greedy sortings Statement G2 Codeforces Round 849 (Div. 4) {1791} PROGRAMMING 112282
16705 Min Max Sort binary search brute force greedy math Statement C Educational Codeforces Round 142 (Rated for Div. 2) {1792} PROGRAMMING 111835
21919 Scoring Subsequences binary search greedy math two pointers Statement C Codeforces Round 856 (Div. 2) {1794} PROGRAMMING 1250.0 Codeforces Round 856 (Div. 2) Editorial
1371 Blocking Chips binary search dfs and similar dp greedy Statement F Educational Codeforces Round 143 (Rated for Div. 2) {1795} PROGRAMMING 112963
4086 Music Festival binary search data structures dp greedy sortings Statement C Codeforces Round 857 (Div. 1) {1801} PROGRAMMING 1250.0 Codeforces Round #857 Editorial
930 Traveling in Berland binary search data structures graphs greedy implementation Statement F Educational Codeforces Round 145 (Rated for Div. 2) {1809} PROGRAMMING 114300
7258 Binary String Sorting binary search dp greedy Statement D Educational Codeforces Round 145 (Rated for Div. 2) {1809} PROGRAMMING 114300
22309 Points on Plane binary search greedy math Statement B Educational Codeforces Round 145 (Rated for Div. 2) {1809} PROGRAMMING 114300
5525 Black Cells binary search brute force greedy math Statement D Educational Codeforces Round 147 (Rated for Div. 2) {1821} PROGRAMMING 115296
4300 Unique Palindromes binary search constructive algorithms greedy math strings Statement D Codeforces Round 868 (Div. 2) {1823} PROGRAMMING 2000.0 115465
4522 Range Sorting (Easy Version) binary search dp dsu greedy trees two pointers Statement B1 Codeforces Round 873 (Div. 1) {1827} PROGRAMMING 750.0 Codeforces Round #873 (Div. 1 & 2) Editorial 2000
2304 Range Sorting (Hard Version) binary search data structures dp greedy Statement B2 Codeforces Round 873 (Div. 1) {1827} PROGRAMMING 750.0 Codeforces Round #873 (Div. 1 & 2) Editorial 2400
556 Bus Routes binary search constructive algorithms dfs and similar greedy trees Statement E Codeforces Round 873 (Div. 1) {1827} PROGRAMMING 2500.0 Codeforces Round #873 (Div. 1 & 2) Editorial 3400
3372 Red-Blue Operations (Easy Version) binary search greedy implementation math Statement D1 Educational Codeforces Round 148 (Rated for Div. 2) {1832} PROGRAMMING 116454 2100
2332 Red-Blue Operations (Hard Version) binary search constructive algorithms greedy implementation math Statement D2 Educational Codeforces Round 148 (Rated for Div. 2) {1832} PROGRAMMING 116454 2400
1071 Lottery binary search brute force greedy math sortings two pointers Statement B Codeforces Round 880 (Div. 1) {1835} PROGRAMMING 1250.0 Codeforces Round 880 Editorial
2653 Editorial for Two binary search data structures greedy implementation Statement F Educational Codeforces Round 149 (Rated for Div. 2) {1837} PROGRAMMING 116752
16243 Wooden Toy Festival binary search greedy sortings Statement D Codeforces Round 878 (Div. 3) {1840} PROGRAMMING Codeforces Round #878 (Div.3) Editorial
475 Min Cost Permutation (Hard Version) binary search data structures graphs greedy sortings Statement F2 Codeforces Round 884 (Div. 1 + Div. 2) {1844} PROGRAMMING 1000.0 Codeforces Round #884 (Div. 1 + Div. 2) Editorial
16741 Strong Password binary search dp greedy strings Statement C Educational Codeforces Round 151 (Rated for Div. 2) {1845} PROGRAMMING 117791
1026 The Boss's Identity binary search bitmasks data structures dfs and similar greedy math sortings Statement F Codeforces Round 882 (Div. 2) {1847} PROGRAMMING 3000.0 Tutorial
24201 Vika and the Bridge binary search data structures greedy implementation math sortings Statement B Codeforces Round 885 (Div. 2) {1848} PROGRAMMING 1000.0 Codeforces Round #885 (Div.2) Editorial
877 XOR Partition binary search bitmasks data structures divide and conquer greedy trees Statement F Educational Codeforces Round 152 (Rated for Div. 2) {1849} PROGRAMMING 118752
3185 Trees and Segments binary search brute force constructive algorithms data structures dp greedy two pointers Statement D Codeforces Round 893 (Div. 2) {1858} PROGRAMMING 2000.0 Codeforces Round #893 (Div. 2) Editorial 2200
7977 Andrey and Escape from Capygrad binary search data structures dp dsu greedy sortings two pointers Statement D Codeforces Round 892 (Div. 2) {1859} PROGRAMMING 1750.0 Video solutions from Geothermal.
18834 Fancy Coins binary search brute force greedy math Statement B Educational Codeforces Round 153 (Rated for Div. 2) {1860} PROGRAMMING Educational Codeforces Round 153 Editorial
2164 Grouped Carriages binary search data structures greedy Statement G COMPFEST 15 - Preliminary Online Mirror (Unrated, ICPC Rules, Teams Preferred) {1866} PROGRAMMING COMPFEST 15 Preliminary — Editorial
8010 Prefix Purchase binary search data structures greedy Statement D CodeTON Round 6 (Div. 1 + Div. 2, Rated, Prizes!) {1870} PROGRAMMING 1750.0 CodeTON Round 6 (Div. 1 + Div. 2, Rated, Prizes!) Editorial
276 Clubstep binary search brute force data structures greedy trees Statement G Codeforces Round 902 (Div. 1, based on COMPFEST 15 - Final Round) {1876} PROGRAMMING 3250.0 Codeforces Round #902 (Div. 1, Div. 2, based on COMPFEST 15 — Final Round) Editorial
20662 Iva & Pav binary search bitmasks data structures greedy Statement E Codeforces Round 900 (Div. 3) {1878} PROGRAMMING Codeforces round #900 (Div.3) Editorial
11571 Matching Arrays binary search constructive algorithms greedy sortings Statement C CodeTON Round 7 (Div. 1 + Div. 2, Rated, Prizes!) {1896} PROGRAMMING 1500.0 CodeTON Round 7 (Div. 1 + Div. 2, Rated, Prizes!) Editorial
8561 Yet Another Monster Fight binary search greedy implementation math Statement D Educational Codeforces Round 158 (Rated for Div. 2) {1901} PROGRAMMING Educational Codeforces Round 158 Editorial
7083 Maximum And Queries (easy version) binary search bitmasks brute force greedy Statement D1 Codeforces Round 912 (Div. 2) {1903} PROGRAMMING 1500.0 Codeforces Round #912 (Div. 2) Editorial
5666 Set To Max (Hard Version) binary search constructive algorithms data structures dsu greedy implementation sortings two pointers Statement D2 Codeforces Round 914 (Div. 2) {1904} PROGRAMMING 750.0 Codeforces Round 914 (Div. 2) Editorial
27636 Collecting Game binary search dp greedy two pointers Statement B Codeforces Round 914 (Div. 2) {1904} PROGRAMMING 750.0 Codeforces Round 914 (Div. 2) Editorial
17451 Game with Multiset binary search bitmasks greedy Statement C Educational Codeforces Round 160 (Rated for Div. 2) {1913} PROGRAMMING 123493
6142 Blocking Elements binary search data structures dp greedy implementation two pointers Statement D Codeforces Round 922 (Div. 2) {1918} PROGRAMMING 2000.0 Codeforces Round #922 (Div. 2) Editorial
1095 Caterpillar on a Tree binary search dfs and similar graphs greedy implementation trees Statement F Codeforces Round 922 (Div. 2) {1918} PROGRAMMING 3000.0 Codeforces Round #922 (Div. 2) Editorial
8327 Slimes binary search data structures greedy Statement D Educational Codeforces Round 162 (Rated for Div. 2) {1923} PROGRAMMING Educational Codeforces Round 162 Editorial
533 Shrink-Reverse binary search greedy string suffix structures strings Statement F Educational Codeforces Round 162 (Rated for Div. 2) {1923} PROGRAMMING Educational Codeforces Round 162 Editorial
32887 Find the Different Ones! binary search brute force data structures dp greedy two pointers Statement D Codeforces Round 923 (Div. 3) {1927} PROGRAMMING 125597
5153 Lonely Mountain Dungeons binary search brute force data structures greedy math ternary search Statement D Codeforces Round 924 (Div. 2) {1928} PROGRAMMING 1750.0 Codeforces Round 924 Editorial
20703 Equalize binary search greedy sortings two pointers Statement B Codeforces Round 924 (Div. 2) {1928} PROGRAMMING 1000.0 Codeforces Round 924 Editorial
17241 Sasha and the Casino binary search brute force dp games greedy math Statement C Codeforces Round 926 (Div. 2) {1929} PROGRAMMING 1500.0 Codeforces Round #926 (Div. 2) Editorial.
1645 Distance Learning Courses in MAC binary search bitmasks data structures greedy implementation math Statement E Codeforces Round 932 (Div. 2) {1935} PROGRAMMING 2500.0 Codeforces Round #932 (Div. 2) Editorial
600 Andrey's Tree binary search constructive algorithms dsu greedy implementation trees Statement F Codeforces Round 932 (Div. 2) {1935} PROGRAMMING 3000.0 Codeforces Round #932 (Div. 2) Editorial
7372 Rudolf and Imbalance binary search greedy two pointers Statement F Codeforces Round 933 (Div. 3) {1941} PROGRAMMING 127018
529 MEX Game 2 (Easy Version) binary search brute force greedy Statement E1 Codeforces Round 934 (Div. 1) {1943} PROGRAMMING 2000.0 Codeforces Round #934 (Div1, Div2) Editorial
370 MEX Game 2 (Hard Version) binary search greedy two pointers Statement E2 Codeforces Round 934 (Div. 1) {1943} PROGRAMMING 1500.0 Codeforces Round #934 (Div1, Div2) Editorial
13674 Tree Cutting binary search dp greedy implementation trees Statement C Codeforces Round 936 (Div. 2) {1946} PROGRAMMING 1500.0 Codeforces Round #936 (Div. 2) Editorial
4871 Charming Meals binary search brute force greedy sortings Statement B European Championship 2024 - Online Mirror (Unrated, ICPC Rules, Teams Preferred) {1949} PROGRAMMING European Championship 2024 (EUC) Editorial
961 Inversion Composition binary search constructive algorithms data structures greedy Statement F Codeforces Global Round 25 {1951} PROGRAMMING 2750.0 Codeforces Global Round 25 Editorial
16808 Battle Cows binary search greedy Statement B Codeforces Global Round 25 {1951} PROGRAMMING 1000.0 Codeforces Global Round 25 Editorial
14908 Permutation Counting binary search greedy implementation math sortings Statement A Codeforces Round 942 (Div. 1) {1967} PROGRAMMING 750.0 Tutorial 1400
1845 Unique Array binary search data structures divide and conquer dp greedy Statement E Educational Codeforces Round 165 (Rated for Div. 2) {1969} PROGRAMMING Educational Codeforces Round 165 Editorial 2400
16778 Cat, Fox and the Lonely Array binary search bitmasks data structures greedy math two pointers Statement B Codeforces Round 945 (Div. 2) {1973} PROGRAMMING 1000.0 Editorial for Codeforces Round #945 (Div. 2) 1300
17125 Chamo and Mocha's Array binary search brute force greedy Statement C Codeforces Round 947 (Div. 1 + Div. 2) {1975} PROGRAMMING 1000.0 editorial_zh.pdf 1200
12385 Job Interview binary search dp greedy implementation two pointers Statement C Educational Codeforces Round 166 (Rated for Div. 2) {1976} PROGRAMMING Educational Codeforces Round 166 Editorial
25285 New Bakery binary search greedy math ternary search Statement B Codeforces Round 953 (Div. 2) {1978} PROGRAMMING 750.0 130527
21832 Boring Day binary search data structures dp greedy two pointers Statement C Codeforces Round 955 (Div. 2, with prizes from NEAR!) {1982} PROGRAMMING 1000.0 130839
14682 Have Your Cake and Eat It Too binary search brute force dp greedy implementation Statement C Codeforces Round 956 (Div. 2) and ByteRace 2024 {1983} PROGRAMMING 1250.0
4461 Med-imize binary search data structures dp greedy Statement D Codeforces Round 963 (Div. 2) {1993} PROGRAMMING 2000.0 Editorial of Codeforces Round 963 (Div. 2)
20914 Bouquet (Easy Version) binary search brute force greedy sortings sortings two pointers Statement B1 Codeforces Round 961 (Div. 2) {1995} PROGRAMMING 1000.0 Video Tutorial
10131 Bouquet (Hard Version) binary search data structures greedy math sortings two pointers Statement B2 Codeforces Round 961 (Div. 2) {1995} PROGRAMMING 500.0 Video Tutorial
6292 Bomb binary search greedy math Statement F Codeforces Round 962 (Div. 3) {1996} PROGRAMMING Codeforces Round 962 (Div. 3) Editorial
15828 Maximize the Root binary search dfs and similar dp greedy trees Statement D Educational Codeforces Round 168 (Rated for Div. 2) {1997} PROGRAMMING Video Tutorial
2277 Eliminating Balls With Merging (Easy Version) binary search brute force data structures divide and conquer dp greedy math Statement E1 Codeforces Round 965 (Div. 2) {1998} PROGRAMMING 1750.0 Video Tutorial
7077 Perform Operations to Maximize Score binary search brute force greedy Statement C Codeforces Round 965 (Div. 2) {1998} PROGRAMMING 1250.0 Video Tutorial
3117 Call During the Journey binary search brute force graphs greedy shortest paths Statement G Codeforces Round 966 (Div. 3) {2000} PROGRAMMING 132689
12741 Guess The Tree binary search brute force greedy interactive trees Statement C Codeforces Round 967 (Div. 2) {2001} PROGRAMMING 1500.0 Video Tutorial
13205 Colored Portals binary search data structures graphs greedy shortest paths Statement D Educational Codeforces Round 169 (Rated for Div. 2) {2004} PROGRAMMING Educational Codeforces Round 169 Editorial
21564 The Strict Teacher (Hard Version) binary search greedy math sortings Statement B2 Codeforces Round 972 (Div. 2) {2005} PROGRAMMING 500.0 Discussion stream (With Hints)
6645 Sakurako's Task binary search brute force greedy math number theory Statement G Codeforces Round 970 (Div. 3) {2008} PROGRAMMING Codeforces Round 970 (Div. 3) Editorial
3580 Sakurako's Test binary search brute force greedy math number theory Statement H Codeforces Round 970 (Div. 3) {2008} PROGRAMMING Codeforces Round 970 (Div. 3) Editorial
7440 Minimize the Difference binary search data structures greedy implementation math Statement D Codeforces Round 973 (Div. 2) {2013} PROGRAMMING 2000.0 134298
27384 Robin Hood in Town binary search divide and conquer greedy math Statement C Codeforces Round 974 (Div. 3) {2014} PROGRAMMING Discussion stream (With Hints)
237 Complex Segments (Easy Version) binary search data structures divide and conquer dsu greedy math sortings Statement E1 Codeforces Round 975 (Div. 1) {2018} PROGRAMMING 2250.0 Editorial of Codeforces Round 975 (Div. 1, Div. 2)
203 Complex Segments (Hard Version) binary search data structures divide and conquer dsu greedy math sortings Statement E2 Codeforces Round 975 (Div. 1) {2018} PROGRAMMING 750.0 Editorial of Codeforces Round 975 (Div. 1, Div. 2)
5161 Speedbreaker binary search dp greedy implementation math two pointers Statement B Codeforces Round 975 (Div. 1) {2018} PROGRAMMING 750.0 Editorial of Codeforces Round 975 (Div. 1, Div. 2)
18962 New Game binary search brute force greedy implementation two pointers Statement C Educational Codeforces Round 170 (Rated for Div. 2) {2025} PROGRAMMING Educational Codeforces Round 170 Editorial
28484 Two Screens binary search greedy strings two pointers Statement A Educational Codeforces Round 170 (Rated for Div. 2) {2025} PROGRAMMING Educational Codeforces Round 170 Editorial
16459 Black Cells binary search brute force greedy Statement B Educational Codeforces Round 171 (Rated for Div. 2) {2026} PROGRAMMING Educational Codeforces Round 171 Editorial
1897 The Endspeaker (Hard Version) binary search combinatorics data structures dp greedy implementation two pointers Statement D2 Codeforces Round 982 (Div. 2) {2027} PROGRAMMING 1000.0 Codeforces Round #982 (Div. 2) Editorial
6929 The Endspeaker (Easy Version) binary search dp graphs greedy implementation two pointers Statement D1 Codeforces Round 982 (Div. 2) {2027} PROGRAMMING 1250.0 Codeforces Round #982 (Div. 2) Editorial
9922 Alice's Adventures in Cutting Cake binary search dp greedy two pointers Statement C Codeforces Round 986 (Div. 2) {2028} PROGRAMMING 1500.0 Codeforces Round 986 (Div. 2) Editorial
7549 New Rating binary search data structures dp greedy Statement C Refact.ai Match 1 (Codeforces Round 985) {2029} PROGRAMMING 1750.0 Refact.ai Match 1 (Codeforces Round 985) Editorial
14138 Set binary search greedy math Statement A Refact.ai Match 1 (Codeforces Round 985) {2029} PROGRAMMING 750.0 Refact.ai Match 1 (Codeforces Round 985) Editorial
1155 Orangutan Approved Subarrays binary search brute force data structures greedy two pointers Statement F Codeforces Round 979 (Div. 2) {2030} PROGRAMMING 2500.0 Codeforces Round 979 Editorial
17753 Sakurako's Field Trip binary search dp greedy Statement C Codeforces Round 981 (Div. 3) {2033} PROGRAMMING 135520
5809 Yet Another Real Number Problem binary search brute force data structures dp greedy implementation math two pointers Statement D Codeforces Global Round 27 {2035} PROGRAMMING 1500.0 Codeforces Global Round 27 Editorial
9507 Reverse the Rivers binary search greedy Statement E Codeforces Round 984 (Div. 3) {2036} PROGRAMMING Codeforces Round 984 (Div. 3) Editorial
1904 Make It Equal binary search brute force greedy math Statement B 2024-2025 ICPC, NERC, Southern and Volga Russian Regional Contest (Unrated, Online Mirror, ICPC Rules, Preferably Teams) {2038} PROGRAMMING 2100
520 Vertex Pairs binary search brute force dfs and similar dp greedy trees Statement E Educational Codeforces Round 172 (Rated for Div. 2) {2042} PROGRAMMING 136886
11149 Sums on Segments binary search brute force data structures dp greedy math Statement C Educational Codeforces Round 173 (Rated for Div. 2) {2043} PROGRAMMING Educational Codeforces Round 173 Editorial
17964 Insane Problem binary search greedy implementation math Statement E Codeforces Round 993 (Div. 4) {2044} PROGRAMMING Codeforces Round 993 (Div. 4) Editorial
10812 Move Back at a Cost binary search data structures greedy sortings Statement B Codeforces Round 990 (Div. 1) {2046} PROGRAMMING 750.0 Разбор Codeforces Round 990 (Div. 2 + Div. 1)
8265 Kevin and Competition Memories binary search data structures greedy sortings two pointers Statement D Codeforces Global Round 28 {2048} PROGRAMMING 1250.0 Tutorial
1538 Judicious Watching binary search greedy Statement J 2024-2025 ICPC, NERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {2052} PROGRAMMING
16894 Outstanding Impressionist binary search brute force greedy Statement B Good Bye 2024: 2025 is NEAR {2053} PROGRAMMING 1000.0 Good Bye 2024: 2025 is NEAR Editorial
7662 Refined Product Optimality binary search data structures greedy implementation math schedules sortings Statement D Good Bye 2024: 2025 is NEAR {2053} PROGRAMMING 1750.0 Good Bye 2024: 2025 is NEAR Editorial
4351 Scarecrow binary search greedy Statement D Codeforces Round 996 (Div. 2) {2055} PROGRAMMING 2250.0 Codeforces Round 996 (Div. 2) Editorial
2259 Kevin and Binary String (Easy Version) binary search brute force data structures dp greedy implementation strings two pointers Statement F1 IAEPC Preliminary Contest (Codeforces Round 999, Div. 1 + Div. 2) {2061} PROGRAMMING 2000.0 IAEPC Preliminary Contest (Codeforces Round 999, Div. 1 + Div. 2) Editorial
4991 Game With Triangles binary search data structures dp greedy math ternary search two pointers Statement D Codeforces Round 1000 (Div. 2) {2063} PROGRAMMING 2250.0 Codeforces Round 1000 (Div. 2) — Editorial
5819 Eating binary search bitmasks data structures greedy two pointers Statement D Codeforces Round 1005 (Div. 2) {2064} PROGRAMMING 1750.0 Codeforces Round 1005 (Div. 2) Editorial
27646 Skibidus and Fanum Tax (easy version) binary search greedy Statement C1 Codeforces Round 1003 (Div. 4) {2065} PROGRAMMING Video Tutorial
18708 Skibidus and Fanum Tax (hard version) binary search greedy Statement C2 Codeforces Round 1003 (Div. 4) {2065} PROGRAMMING Video Tutorial
1632 Ads binary search greedy two pointers Statement C European Championship 2025 - Online Mirror (Unrated, ICPC Rules, Teams Preferred) {2068} PROGRAMMING 140239
7000 Palindrome Shuffle binary search greedy hashing strings two pointers Statement D Educational Codeforces Round 174 (Rated for Div. 2) {2069} PROGRAMMING 139774
13722 Limited Repainting binary search greedy Statement C Educational Codeforces Round 175 (Rated for Div. 2) {2070} PROGRAMMING Video Tutorial
12206 Do You Love Your Hero and His Two-Hit Multi-Target Attacks? binary search constructive algorithms geometry greedy math Statement E Codeforces Round 1006 (Div. 3) {2072} PROGRAMMING Codeforces Round 1006 (Div. 3) Editorial
21908 XOR and Triangle binary search bitmasks brute force greedy Statement C Codeforces Round 1009 (Div. 3) {2074} PROGRAMMING Codeforces Round 1009 (Div. 3) — Editorial
8765 Arcology On Permafrost binary search brute force constructive algorithms greedy math Statement D Teza Round 1 (Codeforces Round 1015, Div. 1 + Div. 2) {2084} PROGRAMMING 1750.0 141155
18937 Large Array and Segments binary search brute force dp greedy math Statement B Educational Codeforces Round 177 (Rated for Div. 2) {2086} PROGRAMMING Educational Codeforces Round 177 Editorial
3203 Canteen (Easy Version) binary search data structures flows greedy two pointers Statement B1 Codeforces Round 1012 (Div. 1) {2089} PROGRAMMING 1000.0 Codeforces Round 1012 (Div.1, Div. 2, based on THUPC 2025 — Finals) Editorial
1269 Canteen (Hard Version) binary search data structures greedy math two pointers Statement B2 Codeforces Round 1012 (Div. 1) {2089} PROGRAMMING 500.0 Codeforces Round 1012 (Div.1, Div. 2, based on THUPC 2025 — Finals) Editorial
23309 Place of the Olympiad binary search greedy math Statement D Codeforces Round 1013 (Div. 3) {2091} PROGRAMMING Codeforces Round 1013 (Div. 3) Editorial
3770 Shorten the Array binary search brute force data structures dfs and similar greedy strings trees two pointers Statement G Codeforces Round 1016 (Div. 3) {2093} PROGRAMMING Codeforces Round 1016 (Div. 3) Editorial
13359 Min Max MEX binary search brute force greedy Statement E Codeforces Round 1016 (Div. 3) {2093} PROGRAMMING Codeforces Round 1016 (Div. 3) Editorial
2251 23 Kingdom binary search data structures greedy ternary search two pointers Statement C Codeforces Round 1024 (Div. 1) {2101} PROGRAMMING 2000.0 142788
8005 Unpleasant Strings binary search data structures dp greedy strings Statement E Educational Codeforces Round 178 (Rated for Div. 2) {2104} PROGRAMMING Educational Codeforces Round 178 Editorial
13108 Array and GCD binary search greedy math number theory Statement D Educational Codeforces Round 178 (Rated for Div. 2) {2104} PROGRAMMING Educational Codeforces Round 178 Editorial
12196 Flower Boy binary search dp greedy two pointers Statement D Codeforces Round 1020 (Div. 3) {2106} PROGRAMMING Codeforces Round 1020 (Div. 3) Editorial
5903 Wolf binary search greedy math Statement E Codeforces Round 1020 (Div. 3) {2106} PROGRAMMING Codeforces Round 1020 (Div. 3) Editorial
497 Cycling (Hard Version) binary search data structures dp geometry greedy Statement F2 Codeforces Round 1023 (Div. 2) {2107} PROGRAMMING 2500.0 Codeforces Round 1023 (Div 2) Editorial
539 Fallen Towers binary search greedy Statement F Codeforces Round 1022 (Div. 2) {2108} PROGRAMMING 3250.0 Codeforces Round 1022 Editorial
8529 Fewer Batteries binary search dfs and similar dp graphs greedy Statement D Codeforces Round 1026 (Div. 2) {2110} PROGRAMMING 2000.0 Codeforces Round 1026 (Div. 2) Editorial
5391 Changing the String binary search data structures greedy implementation sortings strings Statement E Educational Codeforces Round 179 (Rated for Div. 2) {2111} PROGRAMMING Educational Codeforces Round 179 Editorial
17602 Coloring Game binary search brute force greedy two pointers Statement C Educational Codeforces Round 180 (Rated for Div. 2) {2112} PROGRAMMING Educational Codeforces Round 180 — Editorial
2859 Cheater binary search constructive algorithms data structures greedy Statement D Codeforces Round 1031 (Div. 2) {2113} PROGRAMMING 1750.0 Codeforces Round #1031 Editorial
8064 Yamakasi binary search brute force data structures greedy Statement F Codeforces Round 1032 (Div. 3) {2121} PROGRAMMING Codeforces Round 1032 (Div. 3) Editorial
14806 MEX Count binary search data structures greedy sortings two pointers Statement E Codeforces Round 1034 (Div. 3) {2123} PROGRAMMING Codeforces Round 1034 (Div. 3) Editorial
6512 Submedians (Easy Version) binary search data structures dp greedy Statement E1 Codeforces Round 1039 (Div. 2) {2128} PROGRAMMING 1750.0 Codeforces Round #1039 — Editorial
4699 Unjust Binary Life binary search binary search data structures greedy greedy math two pointers Statement F Codeforces Round 1042 (Div. 3) {2131} PROGRAMMING Codeforces Round 1042 (Div. 3) Editorial
7533 Arithmetics Competition binary search data structures greedy ternary search Statement E Codeforces Round 1043 (Div. 3) {2132} PROGRAMMING Codeforces Round 1043 (Div. 3) Editorial
13262 The Cunning Seller (hard version) binary search greedy math Statement C2 Codeforces Round 1043 (Div. 3) {2132} PROGRAMMING Codeforces Round 1043 (Div. 3) Editorial
7435 Chicken Jockey binary search brute force dp greedy math Statement D Codeforces Round 1044 (Div. 2) {2133} PROGRAMMING 2250.0 Codeforces Round 1044 (Div. 2) Editorial
15303 Monocarp's String binary search greedy strings Statement C Educational Codeforces Round 183 (Rated for Div. 2) {2145} PROGRAMMING Educational Codeforces Round 183 Editorial
2106 Maximum OR Popcount binary search bitmasks brute force data structures greedy Statement E Codeforces Global Round 29 (Div. 1 + Div. 2) {2147} PROGRAMMING 2500.0
1195 No Mind To Think binary search greedy sortings ternary search two pointers Statement E Codeforces Round 1060 (Div. 2) {2154} PROGRAMMING 2500.0 Codeforces Round 1060 (Div. 2) Editorial
20608 Strange Machine binary search brute force greedy implementation Statement B Codeforces Round 1061 (Div. 2) {2156} PROGRAMMING 750.0 Codeforces Round 1061 (Div. 2) Editorial
951 Best Time to Buy and Sell Stock binary search data structures games greedy Statement E Codeforces Round 1061 (Div. 2) {2156} PROGRAMMING 2750.0 Codeforces Round 1061 (Div. 2) Editorial
3538 Adjusting Drones binary search data structures dsu greedy implementation sortings Statement E Codeforces Round 1066 (Div. 1 + Div. 2) {2157} PROGRAMMING 2000.0 Codeforces Round 1066 (Div. 1 + Div. 2) Editorial
1004 Inverse Minimum Partition (Easy Version) binary search data structures dp greedy math two pointers Statement D1 Codeforces Round 1058 (Div. 1) {2159} PROGRAMMING 1500.0 Codeforces Round 1058 Editorial
2752 Locked Out binary search data structures dp graphs greedy implementation two pointers Statement D Pinely Round 5 (Div. 1 + Div. 2) {2161} PROGRAMMING 2250.0
10571 Dungeon binary search brute force data structures greedy sortings Statement C Codeforces Global Round 30 (Div. 1 + Div. 2) {2164} PROGRAMMING 1500.0 Codeforces Global Round 30 Editorial
4917 Copy String binary search greedy implementation strings Statement D Codeforces Global Round 30 (Div. 1 + Div. 2) {2164} PROGRAMMING 1750.0 Codeforces Global Round 30 Editorial
1541 Locate binary search constructive algorithms greedy interactive Statement B Testing Round 20 (Unrated, Communication Problems) {2168} PROGRAMMING Testing Round 20 Editorial (officially unofficial)
2251 Removal of a Sequence (Hard Version) binary search constructive algorithms divide and conquer greedy implementation math number theory probabilities Statement D2 Educational Codeforces Round 184 (Rated for Div. 2) {2169} PROGRAMMING Educational Codeforces Round 184 Editorial
11133 Quotient and Remainder binary search greedy two pointers Statement C Educational Codeforces Round 185 (Rated for Div. 2) {2170} PROGRAMMING Educational Codeforces Round 185 Editorial
11420 Rae Taylor and Trees (easy version) binary search data structures dp dsu greedy implementation trees Statement D Codeforces Round 1065 (Div. 3) {2171} PROGRAMMING Codeforces Round 1065 (Div. 3) Editorial
10578 War Strategy binary search greedy math two pointers Statement C Hello 2026 {2183} PROGRAMMING 1500.0
662 BattleCows 2 binary search brute force data structures greedy Statement H Codeforces Round 1074 (Div. 4) {2185} PROGRAMMING Codeforces Round 1074 (Div. 4) Editorial
15677 Restricted Sorting binary search constructive algorithms greedy sortings Statement A Codeforces Round 1077 (Div. 1) {2187} PROGRAMMING 750.0 Codeforces Round 1077 (Div. 1, Div. 2) Editorial
204 Al Fine (Maximizing Version) binary search data structures divide and conquer greedy trees Statement F1 Codeforces Round 1077 (Div. 1) {2187} PROGRAMMING 2000.0 Codeforces Round 1077 (Div. 1, Div. 2) Editorial
1906 Little String (Hard Version) binary search combinatorics dp greedy math number theory Statement D2 Codeforces Round 1075 (Div. 2) {2189} PROGRAMMING 750.0 Codeforces Round 1075 (Div. 2) Editorial
1280 Comparable Permutations binary search greedy interactive sortings two pointers Statement C Codeforces Round 1073 (Div. 1) {2190} PROGRAMMING 1750.0 Codeforces Round 1073 (Div. 1, Div. 2) Editorial
10752 All-in-one Gun binary search greedy math Statement C Codeforces Round 1081 (Div. 2) {2192} PROGRAMMING 1250.0 Codeforces Round 1081 (Div. 2) Editorial
274 Fuzzy Concatenation (Easy Version) binary search bitmasks brute force data structures greedy string suffix structures Statement E1 Codeforces Round 1079 (Div. 1) {2196} PROGRAMMING 2000.0 Tutorial
192 Fuzzy Concatenation (Hard version) binary search data structures dp greedy string suffix structures Statement E2 Codeforces Round 1079 (Div. 1) {2196} PROGRAMMING 1000.0 Tutorial
179 Supersequence *special binary search greedy Statement E Kotlin Heroes: Episode 14 {2199} PROGRAMMING 151783
6736 Test Generator binary search bitmasks greedy math Statement C Educational Codeforces Round 187 (Rated for Div. 2) {2203} PROGRAMMING Educational Codeforces Round 187 Editorial
1172 Sum of Fractions binary search combinatorics greedy math two pointers Statement F Educational Codeforces Round 188 (Rated for Div. 2) {2204} PROGRAMMING Educational Codeforces Round 188 Editorial
49 Bowser's Castle (Easy Version) binary search constructive algorithms divide and conquer greedy interactive trees Statement H1 Codeforces Round 1085 (Div. 1 + Div. 2) {2207} PROGRAMMING 3250.0 Codeforces Round 1085 (Div. 1 + Div. 2) Editorial
191 A Simple Problem binary search greedy math trees Statement F Codeforces Round 1089 (Div. 2) {2210} PROGRAMMING 3500.0 Codeforces Round 1089 (Div. 2) Editorial
8594 Equal Multisets (Easy Version) binary search greedy Statement C1 Nebius Round 2 (Codeforces Round 1088, Div. 1 + Div. 2) {2211} PROGRAMMING 1250.0 Nebius Round 2 and Codeforces Round 1088 Editorial
1805 Definitely Larger binary search constructive algorithms data structures greedy Statement E Codeforces Round 1091 (Div. 2) and CodeCraft 26 {2217} PROGRAMMING 2000.0