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 ... 8 9 10

Solved
Name
Tags
Solutions
Index
Contest
Type
Points
Tutorial
Rating Level
1133 Remove the Grail Tree dfs and similar dp greedy trees Statement H Codeforces Round 1076 (Div. 3) {2193} PROGRAMMING Разбор Codeforces Round 1076 (Div. 3)
20077 Offshores greedy implementation math Statement B Codeforces Round 1078 (Div. 2) {2194} PROGRAMMING 1000.0 Codeforces Round #1078 Editorial
314 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
243 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
1082 Double Bracket Sequence data structures dp greedy sortings Statement D Codeforces Round 1079 (Div. 1) {2196} PROGRAMMING 2250.0 Tutorial
1213 Two Towers *special greedy math Statement B Kotlin Heroes: Episode 14 {2199} PROGRAMMING 151783
24457 Specialty String brute force greedy strings Statement C Codeforces Round 1084 (Div. 3) {2200} PROGRAMMING Codeforces Round 1084 (Div. 3) Editorial
3298 Mooclear Reactor 2 data structures greedy implementation sortings Statement F Codeforces Round 1084 (Div. 3) {2200} PROGRAMMING Codeforces Round 1084 (Div. 3) Editorial
9403 Divisive Battle games greedy math number theory Statement E Codeforces Round 1084 (Div. 3) {2200} PROGRAMMING Codeforces Round 1084 (Div. 3) Editorial
28201 Deletion Sort greedy sortings Statement B Codeforces Round 1084 (Div. 3) {2200} PROGRAMMING Codeforces Round 1084 (Div. 3) Editorial
13569 Portal greedy sortings Statement D Codeforces Round 1084 (Div. 3) {2200} PROGRAMMING Codeforces Round 1084 (Div. 3) Editorial
859 Binary Not Search and Queries data structures greedy implementation Statement D Codeforces Round 1082 (Div. 1) {2201} PROGRAMMING 2250.0 Codeforces Round 1082 (Div. 1, Div. 2) Complete Editorial
12610 ABAB Construction greedy implementation Statement B Codeforces Round 1082 (Div. 2) {2202} PROGRAMMING 1250.0 Codeforces Round 1082 (Div. 1, Div. 2) Complete Editorial
8052 Test Generator binary search bitmasks greedy math Statement C Educational Codeforces Round 187 (Rated for Div. 2) {2203} PROGRAMMING Educational Codeforces Round 187 Editorial
6149 Divisibility Game brute force games greedy number theory Statement D Educational Codeforces Round 187 (Rated for Div. 2) {2203} PROGRAMMING Educational Codeforces Round 187 Editorial
16442 Beautiful Numbers dp greedy math Statement B Educational Codeforces Round 187 (Rated for Div. 2) {2203} PROGRAMMING Educational Codeforces Round 187 Editorial
1363 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
5699 Simons and Beating Peaks data structures divide and conquer dp greedy implementation trees Statement D Codeforces Round 1083 (Div. 2) {2205} PROGRAMMING 1750.0 Tutorial
8800 Simons and Posting Blogs greedy sortings Statement C Codeforces Round 1083 (Div. 2) {2205} PROGRAMMING 1250.0 Tutorial
61 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
6642 One Night At Freddy's games greedy sortings Statement B Codeforces Round 1085 (Div. 1 + Div. 2) {2207} PROGRAMMING 1250.0 Codeforces Round 1085 (Div. 1 + Div. 2) Editorial
15024 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
4828 Tree Orientation (Easy Version) constructive algorithms dfs and similar dsu graphs greedy trees Statement D1 Codeforces Round 1086 (Div. 2) {2208} PROGRAMMING 1250.0 Tutorial
2099 Tree Orientation (Hard Version) data structures dfs and similar dsu graphs greedy matrices sortings trees Statement D2 Codeforces Round 1086 (Div. 2) {2208} PROGRAMMING 1250.0 Tutorial
12753 Stamina and Tasks dp greedy math Statement C Codeforces Round 1086 (Div. 2) {2208} PROGRAMMING 1250.0 Tutorial
15116 Cyclists games greedy implementation sortings Statement B Codeforces Round 1086 (Div. 2) {2208} PROGRAMMING 1000.0 Tutorial
470 Dynamic Values And Maximum Sum data structures greedy implementation trees Statement F Codeforces Round 1087 (Div. 2) {2209} PROGRAMMING 3000.0 Codeforces Round 1087 (Div. 2) Editorial
272 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
24794 A Simple Sequence constructive algorithms dp greedy number theory Statement A Codeforces Round 1089 (Div. 2) {2210} PROGRAMMING 500.0 Codeforces Round 1089 (Div. 2) Editorial
2418 A Simple GCD Problem (Hard Version) dp greedy number theory Statement C2 Codeforces Round 1089 (Div. 2) {2210} PROGRAMMING 1000.0 Codeforces Round 1089 (Div. 2) Editorial
14733 A Simple GCD Problem (Easy Version) greedy number theory Statement C1 Codeforces Round 1089 (Div. 2) {2210} PROGRAMMING 1250.0 Codeforces Round 1089 (Div. 2) Editorial
13066 Mickey Mouse Constructive greedy math Statement B Nebius Round 2 (Codeforces Round 1088, Div. 1 + Div. 2) {2211} PROGRAMMING 1250.0 Nebius Round 2 and Codeforces Round 1088 Editorial
170 EXPloration, EXPloitation, and Gain Some EXPerience! bitmasks brute force dp greedy implementation Statement D Codeforces Round 1092 (Unrated, Div. 1, Based on THUPC 2026 — Finals) {2215} PROGRAMMING 2750.0 152930
3836 Interval Mod constructive algorithms dp greedy math Statement A Codeforces Round 1092 (Unrated, Div. 1, Based on THUPC 2026 — Finals) {2215} PROGRAMMING 750.0 152930
907 Interval Game bitmasks combinatorics dp games greedy math probabilities Statement F Codeforces Round 1091 (Div. 2) and CodeCraft 26 {2217} PROGRAMMING 2750.0 Tutorial
18620 Flip the Bit (Easy Version) greedy implementation Statement B Codeforces Round 1091 (Div. 2) and CodeCraft 26 {2217} PROGRAMMING 1000.0 Tutorial
3824 Flip the Bit (Hard Version) greedy implementation math Statement D Codeforces Round 1091 (Div. 2) and CodeCraft 26 {2217} PROGRAMMING 1500.0 Tutorial
31264 The 67th Permutation Problem constructive algorithms greedy math Statement C Codeforces Round 1090 (Div. 4) {2218} PROGRAMMING Codeforces Round 1090 (Div. 4) Editorial
40681 The 67th 6-7 Integer Problem greedy math Statement B Codeforces Round 1090 (Div. 4) {2218} PROGRAMMING Codeforces Round 1090 (Div. 4) Editorial
21934 The 67th OEIS Problem greedy math number theory Statement D Codeforces Round 1090 (Div. 4) {2218} PROGRAMMING Codeforces Round 1090 (Div. 4) Editorial
1471 Coloring a Red Black Tree dp greedy probabilities trees Statement C Codeforces Round 1093 (Div. 1) {2219} PROGRAMMING 1750.0 Codeforces Round 1093 (Div. 1, Div. 2) Editorial
21321 Blocked greedy sortings Statement A Codeforces Round 1093 (Div. 2) {2220} PROGRAMMING 500.0 Tutorial
9072 Artistic Balance Tree greedy sortings Statement B Spectral::Cup 2026 Round 1 (Codeforces Round 1094, Div. 1 + Div. 2) {2222} PROGRAMMING 1250.0 Spectral::Cup 2026 Round 1 (Codeforces Round 1094, Div. 1 + Div. 2) Editorial
9246 Zhily and Mex and Max constructive algorithms greedy math sortings Statement B Codeforces Round 1097 (Div. 2, Based on Zhili Cup 2026) {2224} PROGRAMMING 750.0 Codeforces Round 1097 (Div. 1, Div2, Based on Zhili Cup 2026) Tutorial
773 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
8261 Mental Monumental (Easy Version) binary search data structures greedy math two pointers Statement C Codeforces Round 1095 (Div. 2) {2226} PROGRAMMING 1500.0 Codeforces Round 1095 (Div. 2) Editorial
1063 Mental Monumental (Hard Version) data structures greedy math Statement E Codeforces Round 1095 (Div. 2) {2226} PROGRAMMING 2500.0 Codeforces Round 1095 (Div. 2) Editorial
15664 Disturbing Distribution greedy math Statement A Codeforces Round 1095 (Div. 2) {2226} PROGRAMMING 500.0 Codeforces Round 1095 (Div. 2) Editorial
14834 Everything Everywhere greedy math number theory Statement B Codeforces Round 1095 (Div. 2) {2226} PROGRAMMING 750.0 Codeforces Round 1095 (Div. 2) Editorial
14315 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
4510 It Just Keeps Going Sideways data structures dp greedy math Statement F Codeforces Round 1096 (Div. 3) {2227} PROGRAMMING Codeforces Round 1096 (Div. 3) — Editorial
21917 Marisa Steals Reimu's Takeout greedy implementation Statement A Codeforces Round 1098 (Div. 2) {2228} PROGRAMMING 500.0 Codeforces Round 1098 (Div. 2) Editorial
6260 Cirno and Number (Hard Version) greedy implementation Statement C2 Codeforces Round 1098 (Div. 2) {2228} PROGRAMMING 1000.0 Codeforces Round 1098 (Div. 2) Editorial
1114 Load Unbalancing binary search bitmasks dp greedy implementation Statement F Spectral::Cup 2026 Round 2 (Codeforces Round 1100, Div. 1 + Div. 2) {2229} PROGRAMMING 2500.0 Spectral::Cup 2026 Round 2 (Codeforces Round 1100, Div. 1 + Div. 2) Editorial
18691 Slimes on a Line brute force greedy math Statement A Spectral::Cup 2026 Round 2 (Codeforces Round 1100, Div. 1 + Div. 2) {2229} PROGRAMMING 500.0 Spectral::Cup 2026 Round 2 (Codeforces Round 1100, Div. 1 + Div. 2) Editorial
18519 Absolute Cinema greedy math Statement B Spectral::Cup 2026 Round 2 (Codeforces Round 1100, Div. 1 + Div. 2) {2229} PROGRAMMING 750.0 Spectral::Cup 2026 Round 2 (Codeforces Round 1100, Div. 1 + Div. 2) Editorial
1497 Minimum Influence binary search data structures geometry greedy implementation math sortings two pointers Statement E Educational Codeforces Round 190 (Rated for Div. 2) {2230} PROGRAMMING Educational Codeforces Round 190 — Editorial
5325 Good Schedule dp graphs greedy two pointers Statement D Educational Codeforces Round 190 (Rated for Div. 2) {2230} PROGRAMMING Educational Codeforces Round 190 — Editorial
17298 Digit String greedy implementation math Statement B Educational Codeforces Round 190 (Rated for Div. 2) {2230} PROGRAMMING Educational Codeforces Round 190 — Editorial
3825 Maximum Prefix Sums constructive algorithms greedy implementation two pointers Statement D Codeforces Round 1099 (Div. 2) {2231} PROGRAMMING 2000.0
808 Quadratic Jumps constructive algorithms greedy math number theory Statement F Codeforces Round 1099 (Div. 2) {2231} PROGRAMMING 2750.0
12152 Seating Arrangement (Easy Version) binary search dp greedy ternary search two pointers Statement C1 Codeforces Round 1101 (Div. 2) {2232} PROGRAMMING 750.0 Codeforces Round 1101 (Div. 2) — Editorial
20995 Cake Leveling binary search greedy math Statement B Codeforces Round 1101 (Div. 2) {2232} PROGRAMMING 1000.0 Codeforces Round 1101 (Div. 2) — Editorial
8768 Seating Arrangement (Hard Version) binary search greedy ternary search two pointers Statement C2 Codeforces Round 1101 (Div. 2) {2232} PROGRAMMING 1000.0 Codeforces Round 1101 (Div. 2) — Editorial
309 The Cake Is a Lie greedy math number theory Statement F Codeforces Round 1101 (Div. 2) {2232} PROGRAMMING 3250.0 Codeforces Round 1101 (Div. 2) — Editorial
23382 Convergence greedy sortings Statement A Codeforces Round 1101 (Div. 2) {2232} PROGRAMMING 500.0 Codeforces Round 1101 (Div. 2) — Editorial
2344 Vessels, Heights and Two Versions (Hard Version) data structures dfs and similar dsu greedy implementation trees Statement F Codeforces Round 1102 (Div. 2) {2234} PROGRAMMING 1750.0 Tutorial
12265 Vessels, Heights and Two Versions (Easy Version) dfs and similar dsu greedy implementation two pointers Statement C Codeforces Round 1102 (Div. 2) {2234} PROGRAMMING 1250.0 Tutorial
21115 Omsk Programmers brute force greedy math Statement C Codeforces Round 1103 (Div. 3) {2236} PROGRAMMING 154496
34739 Games on the Train greedy math Statement A Codeforces Round 1103 (Div. 3) {2236} PROGRAMMING 154496
6396 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
139 Slime and Queries data structures greedy trees Statement H Order Capital Round 2 (Codeforces Round 1104, Div. 1 + Div. 2) {2237} PROGRAMMING 3500.0 Order Capital Round 2 (Codeforces Round 1104, Div. 1 + Div. 2) Editorial
447 Infinite Work combinatorics graphs greedy math Statement F Codeforces Round 1106 (Div. 2) {2238} PROGRAMMING 2750.0 Codeforces Round 1106 (Div. 2) Editorial
1891 Cake Trial dp greedy two pointers Statement E Codeforces Round 1106 (Div. 2) {2238} PROGRAMMING 2250.0 Codeforces Round 1106 (Div. 2) Editorial
19595 Another Puzzle from Papyrus greedy math sortings Statement A Codeforces Round 1106 (Div. 2) {2238} PROGRAMMING 500.0 Codeforces Round 1106 (Div. 2) Editorial
9062 Nim Game Is XOR Game bitmasks constructive algorithms games greedy math Statement A Codeforces Round 1105 (Div. 1) {2239} PROGRAMMING 750.0 Codeforces Round 1105 (Div. 1, Div. 2) Editorial
6976 Decidophobia greedy sortings two pointers Statement B Codeforces Round 1105 (Div. 1) {2239} PROGRAMMING 1000.0 Codeforces Round 1105 (Div. 1, Div. 2) Editorial
913 Summmon binary search data structures greedy math number theory Statement G Codeforces Round 1107 (Div. 3) {2241} PROGRAMMING Codeforces Round 1107 (Div. 3) Editorial
4754 A Bit Odd data structures games greedy math Statement F Codeforces Round 1107 (Div. 3) {2241} PROGRAMMING Codeforces Round 1107 (Div. 3) Editorial
16194 An Alternative Way dp greedy math Statement D Codeforces Round 1107 (Div. 3) {2241} PROGRAMMING Codeforces Round 1107 (Div. 3) Editorial
33634 Divide and Conquer greedy math number theory Statement A Codeforces Round 1107 (Div. 3) {2241} PROGRAMMING Codeforces Round 1107 (Div. 3) Editorial
1466 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
17202 Predominant Frequency Division data structures greedy implementation math Statement B Educational Codeforces Round 192 (Rated for Div. 2) {2242} PROGRAMMING 155047
7416 Two Digit Strings dp greedy strings Statement D Educational Codeforces Round 192 (Rated for Div. 2) {2242} PROGRAMMING 155047
12441 Yaroslav and Productivity constructive algorithms dp greedy math number theory Statement D Codeforces Round 1109 (Div. 3) {2244} PROGRAMMING Codeforces Round 1109 (Div. 3) Editorial
16753 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
28558 Iskander and Drawings dp games greedy strings Statement A Codeforces Round 1109 (Div. 3) {2244} PROGRAMMING Codeforces Round 1109 (Div. 3) Editorial
3966 Anya Loves Trees! dp greedy trees Statement F Codeforces Round 1109 (Div. 3) {2244} PROGRAMMING Codeforces Round 1109 (Div. 3) Editorial
23258 Nikita and Books greedy math sortings Statement B Codeforces Round 1109 (Div. 3) {2244} PROGRAMMING Codeforces Round 1109 (Div. 3) Editorial
1708 Excuse for Breaks binary search greedy math Statement E Codeforces Round 1113 (Div. 2) {2248} PROGRAMMING 2500.0
6255 Good Pair Queries constructive algorithms greedy math Statement D Codeforces Round 1113 (Div. 2) {2248} PROGRAMMING 1750.0
13195 Merge to Match greedy sortings Statement B Codeforces Round 1113 (Div. 2) {2248} PROGRAMMING 1250.0
9363 Rank Subsequence brute force greedy implementation Statement A Codeforces Round 1112 (Div. 1) {2249} PROGRAMMING 750.0 Codeforces Round 1112 (Div. 1, Div. 2) Editorial
7839 Risky Tower binary search brute force data structures greedy sortings Statement C Codeforces Round 1115 (Div. 2) {2252} PROGRAMMING 1250.0
298 Spectral Components dfs and similar dp greedy sortings trees Statement F Codeforces Round 1115 (Div. 2) {2252} PROGRAMMING 2750.0
10911 Always Changing greedy math strings Statement B Codeforces Round 1115 (Div. 2) {2252} PROGRAMMING 1000.0
4085 Array Replacement greedy sortings Statement D Codeforces Round 1115 (Div. 2) {2252} PROGRAMMING 1750.0
2553 Hypercarp and Interdimensional Jumps binary search brute force geometry greedy implementation math Statement D Educational Codeforces Round 193 (Rated for Div. 2) {2253} PROGRAMMING
772 Nightcrawler data structures dfs and similar dp greedy sortings trees Statement G Codeforces Round 1114 (Div. 3) {2254} PROGRAMMING
11636 Marenol (hard version) greedy sortings Statement C2 Codeforces Round 1114 (Div. 3) {2254} PROGRAMMING
1123 Even If the World Turns communication greedy interactive math number theory Statement C Codeforces Round 1116 (Div. 1) {2255} PROGRAMMING 1750.0