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

Solved
Name
Tags
Solutions
Index
Contest
Type
Points
Tutorial
Rating Level
57427 Skibidus and Amog'u brute force constructive algorithms implementation strings Statement A Codeforces Round 1003 (Div. 4) {2065} PROGRAMMING Video Tutorial
2067 Bro Thinks He's Him combinatorics data structures dp matrices Statement H Codeforces Round 1003 (Div. 4) {2065} PROGRAMMING Video Tutorial
12512 Skibidus and Rizz constructive algorithms greedy Statement E Codeforces Round 1003 (Div. 4) {2065} PROGRAMMING Video Tutorial
43309 Skibidus and Ohio strings Statement B Codeforces Round 1003 (Div. 4) {2065} PROGRAMMING Video Tutorial
1575 Mascot Naming brute force greedy strings Statement F European Championship 2025 - Online Mirror (Unrated, ICPC Rules, Teams Preferred) {2068} PROGRAMMING 140239
7282 Palindrome Shuffle binary search greedy hashing strings two pointers Statement D Educational Codeforces Round 174 (Rated for Div. 2) {2069} PROGRAMMING 139774
1979 A, B, AB and BA constructive algorithms greedy sortings strings Statement E Educational Codeforces Round 174 (Rated for Div. 2) {2069} PROGRAMMING 139774
385 Friends and Pizza Statement F Educational Codeforces Round 175 (Rated for Div. 2) {2070} PROGRAMMING Video Tutorial
1944 Game with Binary String data structures divide and conquer games greedy math Statement E Educational Codeforces Round 175 (Rated for Div. 2) {2070} PROGRAMMING Video Tutorial
28298 The Play Never Ends math number theory Statement A Codeforces Round 1007 (Div. 2) {2071} PROGRAMMING 500.0 Codeforces Round 1007 (Div. 2) Editorial
31690 Having Been a Treasurer in the Past, I Help Goblins Deceive combinatorics constructive algorithms strings Statement B Codeforces Round 1006 (Div. 3) {2072} PROGRAMMING Codeforces Round 1006 (Div. 3) Editorial
45441 Draw a Square implementation Statement A Codeforces Round 1009 (Div. 3) {2074} PROGRAMMING Codeforces Round 1009 (Div. 3) — Editorial
23570 Final Verdict greedy math Statement A Codeforces Round 1008 (Div. 2) {2078} PROGRAMMING 500.0 Codeforces Round 1008 (Div. 1, Div. 2) Editorial
17282 MIN = GCD greedy math Statement B Teza Round 1 (Codeforces Round 1015, Div. 1 + Div. 2) {2084} PROGRAMMING 1000.0 141155
24067 Serval and String Theory constructive algorithms implementation Statement A Codeforces Round 1011 (Div. 2) {2085} PROGRAMMING 500.0 Codeforces Round #1011 (Div. 2) Editorial
8703 Even String combinatorics dp math strings Statement D Educational Codeforces Round 177 (Rated for Div. 2) {2086} PROGRAMMING Educational Codeforces Round 177 Editorial
268 Uppercase or Lowercase? *special *special interactive Statement D Kotlin Heroes: Episode 12 {2087} PROGRAMMING 141608
16984 Pushing Balls implementation Statement B Codeforces Round 1012 (Div. 2) {2090} PROGRAMMING 1000.0 Codeforces Round 1012 (Div.1, Div. 2, based on THUPC 2025 — Finals) Editorial
39723 Olympiad Date greedy strings Statement A Codeforces Round 1013 (Div. 3) {2091} PROGRAMMING Codeforces Round 1013 (Div. 3) Editorial
7055 Mishkin Energizer brute force constructive algorithms greedy implementation strings Statement D Codeforces Round 1014 (Div. 2) {2092} PROGRAMMING 1750.0 Codeforces Round #1014 (Div. 2) Editorial
449 Andryusha and CCB brute force constructive algorithms greedy math number theory strings Statement F Codeforces Round 1014 (Div. 2) {2092} PROGRAMMING 3000.0 Codeforces Round #1014 (Div. 2) Editorial
25584 Lady Bug implementation math Statement B Codeforces Round 1014 (Div. 2) {2092} PROGRAMMING 750.0 Codeforces Round #1014 (Div. 2) Editorial
4078 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
6077 Hackers and Neural Networks bitmasks brute force greedy Statement F Codeforces Round 1016 (Div. 3) {2093} PROGRAMMING Codeforces Round 1016 (Div. 3) Editorial
41780 Ideal Generator math Statement A Codeforces Round 1016 (Div. 3) {2093} PROGRAMMING Codeforces Round 1016 (Div. 3) Editorial
31941 Simple Repetition math number theory Statement C Codeforces Round 1016 (Div. 3) {2093} PROGRAMMING Codeforces Round 1016 (Div. 3) Editorial
24811 Tung Tung Sahur greedy strings two pointers Statement D Codeforces Round 1017 (Div. 4) {2094} PROGRAMMING Codeforces Round 1017 (Div. 4) Editorial
58638 Trippi Troppi strings Statement A Codeforces Round 1017 (Div. 4) {2094} PROGRAMMING Codeforces Round 1017 (Div. 4) Editorial
567 Homework bitmasks math matrices Statement D Codeforces Round 1021 (Div. 1) {2097} PROGRAMMING 2000.0 142316
9042 Sports Betting math sortings Statement A Codeforces Round 1021 (Div. 1) {2097} PROGRAMMING 500.0 142316
22154 Dinner Time constructive algorithms math Statement A Codeforces Round 1024 (Div. 2) {2102} PROGRAMMING 250.0 142788
20432 The Picky Cat sortings Statement B Codeforces Round 1024 (Div. 2) {2102} PROGRAMMING 500.0 142788
11115 Median Splits dp greedy Statement C Codeforces Round 1019 (Div. 2) {2103} PROGRAMMING 1500.0 142149
18148 Binary Typewriter greedy math Statement B Codeforces Round 1019 (Div. 2) {2103} PROGRAMMING 1000.0 142149
8436 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
755 Numbers and Strings brute force dfs and similar dp implementation math Statement F Educational Codeforces Round 178 (Rated for Div. 2) {2104} PROGRAMMING Educational Codeforces Round 178 Editorial
37347 Dr. TC brute force math Statement A Codeforces Round 1020 (Div. 3) {2106} PROGRAMMING Codeforces Round 1020 (Div. 3) Editorial
4627 Goblin dp dsu greedy math Statement F Codeforces Round 1020 (Div. 3) {2106} PROGRAMMING Codeforces Round 1020 (Div. 3) Editorial
1892 Binary String Wowee combinatorics dp strings Statement E Codeforces Round 1025 (Div. 2) {2109} PROGRAMMING 2500.0 Codeforces Round 1025 (Div. 2) Editorial
27343 It's Time To Duel implementation Statement A Codeforces Round 1025 (Div. 2) {2109} PROGRAMMING 500.0 Codeforces Round 1025 (Div. 2) Editorial
2864 Melody dfs and similar graphs Statement E Codeforces Round 1026 (Div. 2) {2110} PROGRAMMING 2250.0 Codeforces Round 1026 (Div. 2) Editorial
28419 Down with Brackets strings Statement B Codeforces Round 1026 (Div. 2) {2110} PROGRAMMING 750.0 Codeforces Round 1026 (Div. 2) Editorial
5557 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
15151 Good Start math Statement B Codeforces Round 1031 (Div. 2) {2113} PROGRAMMING 750.0 Codeforces Round #1031 Editorial
2107 Build an Array bitmasks dp math number theory Statement G Codeforces Round 1027 (Div. 3) {2114} PROGRAMMING 143268
31335 Not Quite a Palindromic String greedy greedy math math Statement B Codeforces Round 1027 (Div. 3) {2114} PROGRAMMING 143268
22974 Retaliation binary search math Statement D Codeforces Round 1029 (Div. 3) {2117} PROGRAMMING Codeforces Round 1029 (Div. 3) Editorial
39007 False Alarm greedy implementation Statement A Codeforces Round 1029 (Div. 3) {2117} PROGRAMMING Codeforces Round 1029 (Div. 3) Editorial
304 Shifts and Swaps graphs hashing strings Statement F Codeforces Round 1030 (Div. 2) {2118} PROGRAMMING 3500.0 Codeforces Round 1030 (Div. 2) Editorial
19009 Line Segments geometry greedy math Statement B Codeforces Round 1035 (Div. 2) {2119} PROGRAMMING 1000.0 Codeforces Round 1035 (Div. 2) Editorial
20685 Square of Rectangles geometry math Statement A Codeforces Round 1033 (Div. 2) and CodeNite 2025 {2120} PROGRAMMING 500.0 Codeforces Round 1033 (Div. 2) and CodeNite 2025 Editorial
33035 Above the Clouds constructive algorithms greedy strings Statement B Codeforces Round 1032 (Div. 3) {2121} PROGRAMMING Codeforces Round 1032 (Div. 3) Editorial
5565 Gangsta data structures divide and conquer math sortings Statement G Codeforces Round 1032 (Div. 3) {2121} PROGRAMMING Codeforces Round 1032 (Div. 3) Editorial
15359 Sponsor of Your Problems greedy strings Statement E Codeforces Round 1032 (Div. 3) {2121} PROGRAMMING Codeforces Round 1032 (Div. 3) Editorial
21567 Greedy Grid constructive algorithms greedy Statement A Order Capital Round 1 (Codeforces Round 1038, Div. 1 + Div. 2) {2122} PROGRAMMING 500.0 Order Capital Round 1 (Codeforces Round 1038, Div. 1 + Div. 2) Editorial
3466 Modular Sorting brute force data structures math number theory Statement G Codeforces Round 1034 (Div. 3) {2123} PROGRAMMING Codeforces Round 1034 (Div. 3) Editorial
22789 Binary String Battle constructive algorithms games greedy Statement D Codeforces Round 1034 (Div. 3) {2123} PROGRAMMING Codeforces Round 1034 (Div. 3) Editorial
35673 Tournament greedy Statement B Codeforces Round 1034 (Div. 3) {2123} PROGRAMMING Codeforces Round 1034 (Div. 3) Editorial
42703 Blackboard Game math Statement A Codeforces Round 1034 (Div. 3) {2123} PROGRAMMING Codeforces Round 1034 (Div. 3) Editorial
21520 Deranged Deletions constructive algorithms sortings Statement A EPIC Institute of Technology Round Summer 2025 (Codeforces Round 1036, Div. 1 + Div. 2) {2124} PROGRAMMING 500.0 EPIC Institute of Technology Round Summer 2025 (Codeforces Round 1036, Div. 1 + Div. 2) Editorial
10006 Make a Palindrome greedy sortings Statement D EPIC Institute of Technology Round Summer 2025 (Codeforces Round 1036, Div. 1 + Div. 2) {2124} PROGRAMMING 1750.0 EPIC Institute of Technology Round Summer 2025 (Codeforces Round 1036, Div. 1 + Div. 2) Editorial
28746 Difficult Contest constructive algorithms implementation sortings strings Statement A Educational Codeforces Round 181 (Rated for Div. 2) {2125} PROGRAMMING Educational Codeforces Round 181 Editorial
17782 G-C-D, Unlucky! math number theory Statement E Codeforces Round 1037 (Div. 3) {2126} PROGRAMMING 144845
22107 Mix Mex Max constructive algorithms greedy math Statement A Atto Round 1 (Codeforces Round 1041, Div. 1 + Div. 2) {2127} PROGRAMMING 500.0 Atto Round 1 (Codeforces Round 1041, Div. 1 + Div. 2) Editorial
410 Strict Triangle graphs shortest paths Statement F Codeforces Round 1039 (Div. 2) {2128} PROGRAMMING 4000.0 Codeforces Round #1039 — Editorial
21684 Leftmost Below greedy Statement C Codeforces Round 1039 (Div. 2) {2128} PROGRAMMING 1250.0 Codeforces Round #1039 — Editorial
2280 Interactive RBS (Hard Version) binary search bitmasks constructive algorithms dp interactive Statement C3 Codeforces Round 1040 (Div. 1) {2129} PROGRAMMING 750.0 Codeforces Round 1040 (Div. 1, Div. 2) Editorial
5249 Interactive RBS (Easy Version) binary search bitmasks constructive algorithms interactive Statement C1 Codeforces Round 1040 (Div. 1) {2129} PROGRAMMING 750.0 Codeforces Round 1040 (Div. 1, Div. 2) Editorial
3849 Interactive RBS (Medium Version) binary search bitmasks constructive algorithms interactive Statement C2 Codeforces Round 1040 (Div. 1) {2129} PROGRAMMING 750.0 Codeforces Round 1040 (Div. 1, Div. 2) Editorial
4868 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
18043 Adjacent XOR greedy Statement E Codeforces Round 1042 (Div. 3) {2131} PROGRAMMING Codeforces Round 1042 (Div. 3) Editorial
22564 Make it Equal math number theory Statement C Codeforces Round 1042 (Div. 3) {2131} PROGRAMMING Codeforces Round 1042 (Div. 3) Editorial
45595 Homework brute force implementation strings Statement A Codeforces Round 1043 (Div. 3) {2132} PROGRAMMING Codeforces Round 1043 (Div. 3) Editorial
537 Famous Choreographer hashing strings Statement G Codeforces Round 1043 (Div. 3) {2132} PROGRAMMING Codeforces Round 1043 (Div. 3) Editorial
32089 Redstone? brute force implementation math Statement A Codeforces Round 1044 (Div. 2) {2133} PROGRAMMING 500.0 Codeforces Round 1044 (Div. 2) Editorial
27620 Painting With Two Colors constructive algorithms implementation math Statement A Codeforces Round 1045 (Div. 2) {2134} PROGRAMMING 500.0 145832
1337 Beyond the Palindrome (Easy Version) combinatorics dp math Statement E1 Codeforces Round 1046 (Div. 1) {2135} PROGRAMMING 3000.0 Codeforces Round 1046 (Div. 1, Div. 2) Editorial
267 Beyond the Palindrome (Hard Version) combinatorics dp math number theory Statement E2 Codeforces Round 1046 (Div. 1) {2135} PROGRAMMING 2000.0 Codeforces Round 1046 (Div. 1, Div. 2) Editorial
27177 In the Dream greedy math Statement A Codeforces Round 1046 (Div. 2) {2136} PROGRAMMING 500.0 Codeforces Round 1046 (Div. 1, Div. 2) Editorial
3622 Maple and Tree Beauty (Hard Version) bitmasks brute force dfs and similar divide and conquer dp fft trees Statement C2 Codeforces Round 1048 (Div. 1) {2138} PROGRAMMING 750.0 Codeforces Round 1048 (Div. 1, Div. 2) Editorial
5774 Maple and Tree Beauty (Easy Version) dfs and similar dp graphs trees Statement C1 Codeforces Round 1048 (Div. 1) {2138} PROGRAMMING 1250.0 Codeforces Round 1048 (Div. 1, Div. 2) Editorial
23259 Shift Sort greedy sortings strings Statement A Codeforces Round 1049 (Div. 2) {2140} PROGRAMMING 500.0 Codeforces Round 1049 (Div. 2) Editorial
267 Perfect Cut *special dp greedy Statement E Kotlin Heroes: Episode 13 {2141} PROGRAMMING Kotlin Heroes 13 Editorial
2133 Make Good constructive algorithms math strings Statement E Codeforces Round 1051 (Div. 2) {2143} PROGRAMMING 2500.0 Codeforces Round 1051 (Div. 2) Editorial
21781 All Lengths Subtraction two pointers Statement A Codeforces Round 1051 (Div. 2) {2143} PROGRAMMING 500.0 Codeforces Round 1051 (Div. 2) Editorial
1120 Bracket Groups constructive algorithms dp strings Statement F Educational Codeforces Round 182 (Rated for Div. 2) {2144} PROGRAMMING Educational Codeforces Round 182 Editorial
16460 Monocarp's String binary search greedy strings Statement C Educational Codeforces Round 183 (Rated for Div. 2) {2145} PROGRAMMING Educational Codeforces Round 183 Editorial
16873 Merging the Sets greedy implementation Statement B Codeforces Round 1052 (Div. 2) {2146} PROGRAMMING 1000.0 Codeforces Round 1052 (Div. 2) Editorial
12340 Rabbits 2-sat dp graphs greedy implementation Statement C Codeforces Global Round 29 (Div. 1 + Div. 2) {2147} PROGRAMMING 1500.0
20722 A and B strings Statement D Codeforces Round 1054 (Div. 3) {2149} PROGRAMMING __rose
409 Counting Is Fun: The Finale Statement G Codeforces Round 1053 (Div. 1) {2150} PROGRAMMING 4250.0 Editorial of Codeforces Round 1053 (Div. 1, Div. 2)
18752 Incremental Subarray strings Statement A Codeforces Round 1053 (Div. 2) {2151} PROGRAMMING 500.0 Editorial of Codeforces Round 1053 (Div. 1, Div. 2)
23422 Bitwise Reversion bitmasks Statement B Codeforces Round 1057 (Div. 2) {2153} PROGRAMMING 750.0 Codeforces Round 1057 (Div. 2) Editorial
18091 Abraham's Great Escape constructive algorithms graphs Statement B Codeforces Round 1056 (Div. 2) {2155} PROGRAMMING 1000.0 Codeforces Round 1056 (Div. 2) Editorial
3495 Palindrome Flipping brute force constructive algorithms implementation strings Statement D Codeforces Round 1067 (Div. 2) {2158} PROGRAMMING 2000.0 Codeforces Round 1067 (Div. 2) Editorial
16015 Reverse XOR bitmasks Statement C Codeforces Round 1058 (Div. 2) {2160} PROGRAMMING 1250.0 Codeforces Round 1058 Editorial
5646 Make Connected brute force dsu implementation Statement B Pinely Round 5 (Div. 1 + Div. 2) {2161} PROGRAMMING 1000.0
823 Left is Always Right combinatorics math Statement E Pinely Round 5 (Div. 1 + Div. 2) {2161} PROGRAMMING 3000.0
20309 Souvlaki VS. Kalamaki math sortings Statement A Codeforces Round 1063 (Div. 2) {2163} PROGRAMMING 500.0 Codeforces Round 1063 Editorial
7032 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
23388 Sequence Game brute force greedy Statement A Codeforces Global Round 30 (Div. 1 + Div. 2) {2164} PROGRAMMING 500.0 Codeforces Global Round 30 Editorial
72 PalindromePalindrome data structures strings Statement H Codeforces Global Round 30 (Div. 1 + Div. 2) {2164} PROGRAMMING 5500.0 Codeforces Global Round 30 Editorial
24014 Same Difference brute force dp strings Statement A Codeforces Round 1064 (Div. 2) {2166} PROGRAMMING 500.0 Codeforces Round 1064 (Div. 1, Div. 2) Editorial
63078 Square? math Statement A Codeforces Round 1062 (Div. 4) {2167} PROGRAMMING Arpa Video Tutorial
55339 Your Name sortings strings Statement B Codeforces Round 1062 (Div. 4) {2167} PROGRAMMING Arpa Video Tutorial
17080 Drifting Away implementation implementation implementation implementation implementation Statement B Educational Codeforces Round 184 (Rated for Div. 2) {2169} PROGRAMMING Educational Codeforces Round 184 Editorial
2504 Binary Strings and Blocks combinatorics dp Statement E Educational Codeforces Round 185 (Rated for Div. 2) {2170} PROGRAMMING Educational Codeforces Round 185 Editorial
7839 Rae Taylor and Trees (hard version) binary search constructive algorithms data structures dp dsu implementation trees Statement F Codeforces Round 1065 (Div. 3) {2171} PROGRAMMING Codeforces Round 1065 (Div. 3) Editorial
12620 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
77 Gene Editor Statement G 2025 ICPC Asia Taichung Regional Contest (Unrated, Online Mirror, ICPC Rules, Preferably Teams) {2172} PROGRAMMING
15560 Needle in a Haystack greedy strings two pointers Statement A Codeforces Round 1069 (Div. 1) {2174} PROGRAMMING 500.0 Codeforces Round 1069 Editorial
24176 Optimal Shifts bitmasks greedy strings Statement B Codeforces Round 1070 (Div. 2) {2176} PROGRAMMING 1000.0 Codeforces Round 1070 (Div.2) Editorial
26834 Yes or Yes brute force greedy strings Statement A Good Bye 2025 {2178} PROGRAMMING 500.0
22722 Impost or Sus greedy implementation strings Statement B Good Bye 2025 {2178} PROGRAMMING 750.0
6150 Blackslex and Girls constructive algorithms geometry math Statement E Codeforces Round 1071 (Div. 3) {2179} PROGRAMMING Codeforces Round 1071 (Div. 3) Editorial
35828 Blackslex and Password math strings Statement A Codeforces Round 1071 (Div. 3) {2179} PROGRAMMING Codeforces Round 1071 (Div. 3) Editorial
25378 Ashmal greedy strings Statement B Codeforces Global Round 31 (Div. 1 + Div. 2) {2180} PROGRAMMING 750.0 Codeforces Global Round 31
4140 Alphabet City binary search math strings Statement A 2025-2026 ICPC, NERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {2181} PROGRAMMING Tutorial
3838 Medical Parity dp Statement M 2025-2026 ICPC, NERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {2181} PROGRAMMING Tutorial
26531 New Year String greedy implementation strings Statement A Educational Codeforces Round 186 (Rated for Div. 2) {2182} PROGRAMMING Educational Codeforces Round 186 Editorial
1223 Jumping Man combinatorics data structures dp trees Statement F Hello 2026 {2183} PROGRAMMING 2750.0
2116 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
4320 Little String (Easy Version) combinatorics dp math Statement D1 Codeforces Round 1075 (Div. 2) {2189} PROGRAMMING 2000.0 Codeforces Round 1075 (Div. 2) Editorial
918 Majority Wins? dp greedy math strings Statement E Codeforces Round 1075 (Div. 2) {2189} PROGRAMMING 2500.0 Codeforces Round 1075 (Div. 2) Editorial
11766 Sub-RBS (Easy Version) combinatorics constructive algorithms dp greedy strings two pointers Statement B1 Codeforces Round 1073 (Div. 1) {2190} PROGRAMMING 750.0 Codeforces Round 1073 (Div. 1, Div. 2) Editorial
3446 Sub-RBS (Hard Version) combinatorics dp games implementation matrices strings Statement B2 Codeforces Round 1073 (Div. 1) {2190} PROGRAMMING 750.0 Codeforces Round 1073 (Div. 1, Div. 2) Editorial
29089 Array Coloring constructive algorithms Statement A Codeforces Round 1073 (Div. 2) {2191} PROGRAMMING 500.0 Codeforces Round 1073 (Div. 1, Div. 2) Editorial
21250 MEX Reordering constructive algorithms sortings Statement B Codeforces Round 1073 (Div. 2) {2191} PROGRAMMING 1000.0 Codeforces Round 1073 (Div. 1, Div. 2) Editorial
19212 String Rotation Game brute force strings Statement A Codeforces Round 1081 (Div. 2) {2192} PROGRAMMING 500.0 Codeforces Round 1081 (Div. 2) Editorial
2343 Swap to Rearrange constructive algorithms dfs and similar graph matchings graphs greedy strings Statement E Codeforces Round 1081 (Div. 2) {2192} PROGRAMMING 2250.0 Codeforces Round 1081 (Div. 2) Editorial
16265 Flipping Binary String constructive algorithms strings Statement B Codeforces Round 1081 (Div. 2) {2192} PROGRAMMING 1000.0 Codeforces Round 1081 (Div. 2) Editorial
45001 DBMB and the Array brute force math Statement A Codeforces Round 1076 (Div. 3) {2193} PROGRAMMING Разбор Codeforces Round 1076 (Div. 3)
1180 Remove the Grail Tree dfs and similar dp greedy trees Statement H Codeforces Round 1076 (Div. 3) {2193} PROGRAMMING Разбор Codeforces Round 1076 (Div. 3)
27288 Heapify 1 implementation Statement B Codeforces Round 1080 (Div. 3) {2195} PROGRAMMING Codeforces Round 1080 (Div. 3) Editorial
38526 Sieve of Erato67henes math Statement A Codeforces Round 1080 (Div. 3) {2195} PROGRAMMING Codeforces Round 1080 (Div. 3) Editorial
322 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
250 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
17245 Array and Permutation implementation sortings two pointers Statement B Codeforces Round 1079 (Div. 2) {2197} PROGRAMMING 1000.0
24913 Specialty String brute force greedy strings Statement C Codeforces Round 1084 (Div. 3) {2200} PROGRAMMING Codeforces Round 1084 (Div. 3) Editorial
1315 Operation Permutation combinatorics dp math probabilities Statement G Codeforces Round 1084 (Div. 3) {2200} PROGRAMMING Codeforces Round 1084 (Div. 3) Editorial
569 Six Seven divide and conquer math number theory strings trees Statement H Codeforces Round 1084 (Div. 3) {2200} PROGRAMMING Codeforces Round 1084 (Div. 3) Editorial
310 ABBA Counting fft math number theory strings Statement E Codeforces Round 1082 (Div. 1) {2201} PROGRAMMING 3000.0 Codeforces Round 1082 (Div. 1, Div. 2) Complete Editorial
12895 ABAB Construction greedy implementation Statement B Codeforces Round 1082 (Div. 2) {2202} PROGRAMMING 1250.0 Codeforces Round 1082 (Div. 1, Div. 2) Complete Editorial
17688 Parkour Design math Statement A Codeforces Round 1082 (Div. 2) {2202} PROGRAMMING 750.0 Codeforces Round 1082 (Div. 1, Div. 2) Complete Editorial
1800 Simons and Dividing the Rhythm dp string suffix structures strings Statement E Codeforces Round 1083 (Div. 2) {2205} PROGRAMMING 2500.0 Tutorial
58 Deformed Balance Statement M 2026 ICPC Asia Pacific Championship - Online Mirror (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {2206} PROGRAMMING Tutorial (PDF)
1868 N-MEX (Constructive Version) constructive algorithms greedy Statement E1 Codeforces Round 1085 (Div. 1 + Div. 2) {2207} PROGRAMMING 1750.0 Codeforces Round 1085 (Div. 1 + Div. 2) Editorial
15214 1-1 greedy strings Statement A Codeforces Round 1085 (Div. 1 + Div. 2) {2207} PROGRAMMING 750.0 Codeforces Round 1085 (Div. 1 + Div. 2) Editorial
22379 Bingo Candies constructive algorithms math Statement A Codeforces Round 1086 (Div. 2) {2208} PROGRAMMING 500.0 Tutorial
2074 A Trivial String Problem dp strings Statement E Codeforces Round 1087 (Div. 2) {2209} PROGRAMMING 2250.0 Codeforces Round 1087 (Div. 2) Editorial
390 Binary Strings are Simple? constructive algorithms dsu interactive number theory Statement E Codeforces Round 1089 (Div. 2) {2210} PROGRAMMING 2750.0 Codeforces Round 1089 (Div. 2) Editorial
2327 A Simple RBS Problem constructive algorithms strings trees Statement D Codeforces Round 1089 (Div. 2) {2210} PROGRAMMING 2250.0 Codeforces Round 1089 (Div. 2) Editorial
353 Rational Bubble Sort geometry greedy Statement G Nebius Round 2 (Codeforces Round 1088, Div. 1 + Div. 2) {2211} PROGRAMMING 3250.0 Nebius Round 2 and Codeforces Round 1088 Editorial
25547 The Equalizer Statement A Codeforces Round 1091 (Div. 2) and CodeCraft 26 {2217} PROGRAMMING 500.0 Tutorial
12284 Grid Covering math number theory Statement C Codeforces Round 1091 (Div. 2) and CodeCraft 26 {2217} PROGRAMMING 1500.0 Tutorial
12669 A Wonderful Contest math Statement A Spectral::Cup 2026 Round 1 (Codeforces Round 1094, Div. 1 + Div. 2) {2222} PROGRAMMING 500.0 Spectral::Cup 2026 Round 1 (Codeforces Round 1094, Div. 1 + Div. 2) Editorial
8319 Zhily and Bracket Swapping constructive algorithms greedy Statement A Codeforces Round 1097 (Div. 1, Based on Zhili Cup 2026) {2223} PROGRAMMING 500.0 Codeforces Round 1097 (Div. 1, Div2, Based on Zhili Cup 2026) Tutorial
118 Zhily and Colorful Strings divide and conquer fft math Statement F Codeforces Round 1097 (Div. 1, Based on Zhili Cup 2026) {2223} PROGRAMMING 4500.0 Codeforces Round 1097 (Div. 1, Div2, Based on Zhili Cup 2026) Tutorial
384 Zhily and Cycle graphs greedy Statement D Codeforces Round 1097 (Div. 1, Based on Zhili Cup 2026) {2223} PROGRAMMING 2500.0 Codeforces Round 1097 (Div. 1, Div2, Based on Zhili Cup 2026) Tutorial
796 String Cutting binary search brute force greedy hashing string suffix structures strings Statement F Educational Codeforces Round 189 (Rated for Div. 2) {2225} PROGRAMMING Tutorial
3343 Reserved Reversals constructive algorithms dp greedy Statement D Codeforces Round 1095 (Div. 2) {2226} PROGRAMMING 2000.0 Codeforces Round 1095 (Div. 2) Editorial
210 Stop Spot strings trees Statement G Codeforces Round 1095 (Div. 2) {2226} PROGRAMMING 2500.0 Codeforces Round 1095 (Div. 2) Editorial
14789 Palindromex binary search brute force constructive algorithms data structures greedy implementation two pointers Statement D Codeforces Round 1096 (Div. 3) {2227} PROGRAMMING Codeforces Round 1096 (Div. 3) — Editorial
28711 Party Monster greedy Statement B Codeforces Round 1096 (Div. 3) {2227} PROGRAMMING Codeforces Round 1096 (Div. 3) — Editorial
32582 Koshary implementation math Statement A Codeforces Round 1096 (Div. 3) {2227} PROGRAMMING Codeforces Round 1096 (Div. 3) — Editorial
245 Wowee Binary String combinatorics dp strings Statement H Spectral::Cup 2026 Round 2 (Codeforces Round 1100, Div. 1 + Div. 2) {2229} PROGRAMMING 4000.0 Spectral::Cup 2026 Round 2 (Codeforces Round 1100, Div. 1 + Div. 2) Editorial
17717 Digit String greedy implementation math Statement B Educational Codeforces Round 190 (Rated for Div. 2) {2230} PROGRAMMING Educational Codeforces Round 190 — Editorial
1261 Permutation Transmission (Easy Version) combinatorics sortings Statement E1 Educational Codeforces Round 191 (Rated for Div. 2) {2233} PROGRAMMING 154371
1253 Permutation Transmission (Difficult Version) combinatorics sortings Statement E2 Educational Codeforces Round 191 (Rated for Div. 2) {2233} PROGRAMMING 154371
29221 Tatar TV Show math strings Statement B Codeforces Round 1103 (Div. 3) {2236} PROGRAMMING 154496
6597 Fullmetal Bitchemist constructive algorithms greedy math Statement D Order Capital Round 2 (Codeforces Round 1104, Div. 1 + Div. 2) {2237} PROGRAMMING 1750.0 Order Capital Round 2 (Codeforces Round 1104, Div. 1 + Div. 2) Editorial
16837 An Alternative Way dp greedy math Statement D Codeforces Round 1107 (Div. 3) {2241} PROGRAMMING Codeforces Round 1107 (Div. 3) Editorial
35150 Divide and Conquer greedy math number theory Statement A Codeforces Round 1107 (Div. 3) {2241} PROGRAMMING Codeforces Round 1107 (Div. 3) Editorial
1595 Product of Closures bitmasks brute force constructive algorithms dp greedy implementation math Statement E Educational Codeforces Round 192 (Rated for Div. 2) {2242} PROGRAMMING 155047
8059 Two Digit Strings dp greedy strings Statement D Educational Codeforces Round 192 (Rated for Div. 2) {2242} PROGRAMMING 155047
25096 Bigrams sortings strings Statement A Educational Codeforces Round 192 (Rated for Div. 2) {2242} PROGRAMMING 155047
17792 Stepan and Permutation constructive algorithms dsu greedy math number theory sortings Statement C Codeforces Round 1109 (Div. 3) {2244} PROGRAMMING Codeforces Round 1109 (Div. 3) Editorial
9088 Masha and the Garland data structures dp strings Statement E Codeforces Round 1109 (Div. 3) {2244} PROGRAMMING Codeforces Round 1109 (Div. 3) Editorial
30294 Iskander and Drawings dp games greedy strings Statement A Codeforces Round 1109 (Div. 3) {2244} PROGRAMMING Codeforces Round 1109 (Div. 3) Editorial
24892 Nikita and Books greedy math sortings Statement B Codeforces Round 1109 (Div. 3) {2244} PROGRAMMING Codeforces Round 1109 (Div. 3) Editorial
7083 MEXOR bitmasks constructive algorithms math Statement C Spectral::Cup 2026 Round 3 (Codeforces Round 1110, Div. 1 + Div. 2) {2245} PROGRAMMING 1250.0 Spectral::Cup 2026 Round 3 (Codeforces Round 1110, Div. 1 + Div. 2) Editorial
3870 Construct an Array (Easy Version) dfs and similar implementation Statement D1 Spectral::Cup 2026 Round 3 (Codeforces Round 1110, Div. 1 + Div. 2) {2245} PROGRAMMING 1500.0 Spectral::Cup 2026 Round 3 (Codeforces Round 1110, Div. 1 + Div. 2) Editorial
22253 Zero Sum constructive algorithms Statement A Codeforces Round 1111 (Div. 2) {2247} PROGRAMMING 500.0
16275 Yet Another Constructive constructive algorithms Statement B Codeforces Round 1111 (Div. 2) {2247} PROGRAMMING 750.0
2008 Excuse for Breaks binary search greedy math Statement E Codeforces Round 1113 (Div. 2) {2248} PROGRAMMING 2500.0 Codeforces Round 1113 (Div. 2) Editorial
7307 Good Pair Queries constructive algorithms greedy math Statement D Codeforces Round 1113 (Div. 2) {2248} PROGRAMMING 1750.0 Codeforces Round 1113 (Div. 2) Editorial
227 No Balance Left dp math Statement G Codeforces Round 1113 (Div. 2) {2248} PROGRAMMING 3500.0 Codeforces Round 1113 (Div. 2) Editorial
20515 You Delete, I Delete greedy Statement A Codeforces Round 1113 (Div. 2) {2248} PROGRAMMING 500.0 Codeforces Round 1113 (Div. 2) Editorial
14756 Merge to Match greedy sortings Statement B Codeforces Round 1113 (Div. 2) {2248} PROGRAMMING 1250.0 Codeforces Round 1113 (Div. 2) Editorial
245 String (Easy Version) divide and conquer implementation strings Statement E1 Codeforces Round 1112 (Div. 1) {2249} PROGRAMMING 2250.0 Codeforces Round 1112 (Div. 1, Div. 2) Editorial
227 String (Hard Version) divide and conquer implementation strings Statement E2 Codeforces Round 1112 (Div. 1) {2249} PROGRAMMING 1750.0 Codeforces Round 1112 (Div. 1, Div. 2) Editorial
18939 Threshold Movement implementation math Statement A Codeforces Round 1112 (Div. 2) {2250} PROGRAMMING 500.0 Codeforces Round 1112 (Div. 1, Div. 2) Editorial
12739 Always Changing greedy math strings Statement B Codeforces Round 1115 (Div. 2) {2252} PROGRAMMING 1000.0 155741
3366 Whiplash bitmasks constructive algorithms math Statement F Codeforces Round 1114 (Div. 3) {2254} PROGRAMMING Tutorial
19775 Marenol (easy version) greedy Statement C1 Codeforces Round 1114 (Div. 3) {2254} PROGRAMMING Tutorial
14000 Marenol (hard version) greedy sortings Statement C2 Codeforces Round 1114 (Div. 3) {2254} PROGRAMMING Tutorial
25007 Evanescent implementation strings two pointers Statement B Codeforces Round 1114 (Div. 3) {2254} PROGRAMMING Tutorial
7121 A Ribbon for Tomorrow combinatorics math Statement B Codeforces Round 1116 (Div. 1) {2255} PROGRAMMING 1000.0 155840
16631 Domino Tiles implementation math Statement B Codeforces Round 1116 (Div. 2) {2256} PROGRAMMING 1000.0 155840
20308 Creating Abbreviations brute force strings Statement A Codeforces Round 1117 (Div. 2) {2257} PROGRAMMING 500.0 Codeforces Round 1117 (Div. 2) Editorial
1306 Dr. Agos's Dark Mode brute force constructive algorithms math strings Statement D Codeforces Round 1121 (Div. 2) {2264} PROGRAMMING 2500.0