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

Solved
Name
Tags
Solutions
Index
Contest
Type
Points
Tutorial
Rating Level
24693 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
2404 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
1015 Learning Binary Search combinatorics divide and conquer dp Statement F Nebius Round 2 (Codeforces Round 1088, Div. 1 + Div. 2) {2211} PROGRAMMING 3000.0 Nebius Round 2 and Codeforces Round 1088 Editorial
1022 Minimum Path Cover dp interactive number theory trees Statement E Nebius Round 2 (Codeforces Round 1088, Div. 1 + Div. 2) {2211} PROGRAMMING 2500.0 Nebius Round 2 and Codeforces Round 1088 Editorial
165 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
3776 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
892 Interval Game bitmasks combinatorics dp games greedy math probabilities Statement F Codeforces Round 1091 (Div. 2) and CodeCraft 26 {2217} PROGRAMMING 2750.0 Tutorial
281 Closer dp Statement H Codeforces Round 1091 (Div. 2) and CodeCraft 26 {2217} PROGRAMMING 3750.0 Tutorial
1453 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
154 Counting Sort? combinatorics dp Statement H Spectral::Cup 2026 Round 1 (Codeforces Round 1094, Div. 1 + Div. 2) {2222} PROGRAMMING 4000.0 Spectral::Cup 2026 Round 1 (Codeforces Round 1094, Div. 1 + Div. 2) Editorial
6126 Median Partition dp Statement C Spectral::Cup 2026 Round 1 (Codeforces Round 1094, Div. 1 + Div. 2) {2222} PROGRAMMING 1500.0 Spectral::Cup 2026 Round 1 (Codeforces Round 1094, Div. 1 + Div. 2) Editorial
3733 Zhily and Barknights binary search data structures dp math sortings two pointers Statement B Codeforces Round 1097 (Div. 1, Based on Zhili Cup 2026) {2223} PROGRAMMING 750.0 Codeforces Round 1097 (Div. 1, Div2, Based on Zhili Cup 2026) Tutorial
14145 Red-Black Pairs dp greedy Statement C Educational Codeforces Round 189 (Rated for Div. 2) {2225} PROGRAMMING Tutorial
3192 Reserved Reversals constructive algorithms dp greedy Statement D Codeforces Round 1095 (Div. 2) {2226} PROGRAMMING 2000.0 Codeforces Round 1095 (Div. 2) Editorial
9788 It All Went Sideways binary search data structures dp greedy Statement E Codeforces Round 1096 (Div. 3) {2227} PROGRAMMING Codeforces Round 1096 (Div. 3) — Editorial
4452 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
1696 Fallen Leaves dfs and similar dp trees Statement H Codeforces Round 1096 (Div. 3) {2227} PROGRAMMING Codeforces Round 1096 (Div. 3) — Editorial
8055 Cirno and Number (Easy Version) binary search brute force dp implementation Statement C1 Codeforces Round 1098 (Div. 2) {2228} PROGRAMMING 1500.0 Codeforces Round 1098 (Div. 2) Editorial
341 Momoyo and the Network binary search dfs and similar divide and conquer dp trees Statement F Codeforces Round 1098 (Div. 2) {2228} PROGRAMMING 3500.0 Codeforces Round 1098 (Div. 2) Editorial
1098 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
1983 Deconstruction Tree combinatorics data structures dp graphs trees Statement E 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
230 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
349 Roadworks data structures dp Statement G Spectral::Cup 2026 Round 2 (Codeforces Round 1100, Div. 1 + Div. 2) {2229} PROGRAMMING 3250.0 Spectral::Cup 2026 Round 2 (Codeforces Round 1100, Div. 1 + Div. 2) Editorial
225 The Endians dp trees Statement I Spectral::Cup 2026 Round 2 (Codeforces Round 1100, Div. 1 + Div. 2) {2229} PROGRAMMING 5000.0 Spectral::Cup 2026 Round 2 (Codeforces Round 1100, Div. 1 + Div. 2) Editorial
517 Game on Growing Tree binary search dfs and similar dp games trees Statement F Educational Codeforces Round 190 (Rated for Div. 2) {2230} PROGRAMMING Educational Codeforces Round 190 — Editorial
5252 Good Schedule dp graphs greedy two pointers Statement D Educational Codeforces Round 190 (Rated for Div. 2) {2230} PROGRAMMING Educational Codeforces Round 190 — Editorial
1159 Graph Cutting dfs and similar dp trees Statement E Codeforces Round 1099 (Div. 2) {2231} PROGRAMMING 2500.0
12026 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
2714 Magical Tiered Cake constructive algorithms dfs and similar dp greedy Statement D Codeforces Round 1101 (Div. 2) {2232} PROGRAMMING 2000.0 Codeforces Round 1101 (Div. 2) — Editorial
9401 Cost of a Bracket Sequence brute force dp greedy Statement C Educational Codeforces Round 191 (Rated for Div. 2) {2233} PROGRAMMING 154371
397 Shortest GCD Paths dp graphs math number theory shortest paths Statement F Educational Codeforces Round 191 (Rated for Div. 2) {2233} PROGRAMMING 154371
2005 Vlad, Misha and Two Arrays combinatorics data structures dfs and similar divide and conquer dp Statement E Codeforces Round 1102 (Div. 2) {2234} PROGRAMMING 2500.0 Tutorial
12643 Brand New Tatar TV Show binary search constructive algorithms dp games math Statement D Codeforces Round 1103 (Div. 3) {2236} PROGRAMMING 154496
989 Elections in Saransk (hard version) combinatorics dp fft math number theory Statement F2 Codeforces Round 1103 (Div. 3) {2236} PROGRAMMING 154496
6379 Friendly Gifts dp Statement E Codeforces Round 1103 (Div. 3) {2236} PROGRAMMING 154496
928 Paint the Array data structures dp greedy Statement F Order Capital Round 2 (Codeforces Round 1104, Div. 1 + Div. 2) {2237} PROGRAMMING 2500.0 Order Capital Round 2 (Codeforces Round 1104, Div. 1 + Div. 2) Editorial
67 DBFS Order (Easy Version) dp trees Statement I1 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
94 DBFS Order (Hard Version) dp trees Statement I2 Order Capital Round 2 (Codeforces Round 1104, Div. 1 + Div. 2) {2237} PROGRAMMING 4500.0 Order Capital Round 2 (Codeforces Round 1104, Div. 1 + Div. 2) Editorial
8891 Village Guilds dfs and similar dp trees Statement C Codeforces Round 1106 (Div. 2) {2238} PROGRAMMING 1250.0 Codeforces Round 1106 (Div. 2) Editorial
1833 Cake Trial dp greedy two pointers Statement E Codeforces Round 1106 (Div. 2) {2238} PROGRAMMING 2250.0 Codeforces Round 1106 (Div. 2) Editorial
620 Hunting the Beast combinatorics dp graphs Statement D Codeforces Round 1105 (Div. 1) {2239} PROGRAMMING 2000.0 Codeforces Round 1105 (Div. 1, Div. 2) Editorial
205 Colorful Works dp fft games implementation Statement F Codeforces Round 1105 (Div. 1) {2239} PROGRAMMING 3500.0 Codeforces Round 1105 (Div. 1, Div. 2) Editorial
6010 Fair and Square combinatorics dp graphs math number theory trees Statement E Codeforces Round 1107 (Div. 3) {2241} PROGRAMMING Codeforces Round 1107 (Div. 3) Editorial
15897 An Alternative Way dp greedy math Statement D Codeforces Round 1107 (Div. 3) {2241} PROGRAMMING Codeforces Round 1107 (Div. 3) Editorial
1419 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
416 Summer Vacation data structures dp probabilities Statement F Educational Codeforces Round 192 (Rated for Div. 2) {2242} PROGRAMMING 155047
7120 Two Digit Strings dp greedy strings Statement D Educational Codeforces Round 192 (Rated for Div. 2) {2242} PROGRAMMING 155047
11844 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
2322 Yura and Deadlines data structures dp Statement G Codeforces Round 1109 (Div. 3) {2244} PROGRAMMING Codeforces Round 1109 (Div. 3) Editorial
7894 Masha and the Garland data structures dp strings Statement E Codeforces Round 1109 (Div. 3) {2244} PROGRAMMING Codeforces Round 1109 (Div. 3) Editorial
27648 Iskander and Drawings dp games greedy strings Statement A Codeforces Round 1109 (Div. 3) {2244} PROGRAMMING Codeforces Round 1109 (Div. 3) Editorial
3701 Anya Loves Trees! dp greedy trees Statement F Codeforces Round 1109 (Div. 3) {2244} PROGRAMMING Codeforces Round 1109 (Div. 3) Editorial
267 Familiar? brute force combinatorics dp Statement F Spectral::Cup 2026 Round 3 (Codeforces Round 1110, Div. 1 + Div. 2) {2245} PROGRAMMING 3000.0 Spectral::Cup 2026 Round 3 (Codeforces Round 1110, Div. 1 + Div. 2) Editorial
954 Tom and Jerry dfs and similar dsu games trees Statement E Spectral::Cup 2026 Round 3 (Codeforces Round 1110, Div. 1 + Div. 2) {2245} PROGRAMMING 2500.0 Spectral::Cup 2026 Round 3 (Codeforces Round 1110, Div. 1 + Div. 2) Editorial
8112 0mar and Alternating Sums combinatorics dp math Statement C Codeforces Round 1108 (Div. 2) {2246} PROGRAMMING 1500.0 Codeforces Round 1108 (Div. 2) Editorial
392 Paths on a Grid data structures dp hashing Statement F Codeforces Round 1111 (Div. 2) {2247} PROGRAMMING 3500.0
7316 Maximize the Score dp greedy Statement C Codeforces Round 1113 (Div. 2) {2248} PROGRAMMING 1500.0
85 No Balance Left dp math Statement G Codeforces Round 1113 (Div. 2) {2248} PROGRAMMING 3500.0