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

Solved
Name
Tags
Solutions
Index
Contest
Type
Points
Tutorial
Rating Level
141144 Ultra-Fast Mathematician implementation Statement A Codeforces Beta Round 57 (Div. 2) {61} PROGRAMMING Round 57-A 900
190 Sleeping combinatorics implementation math Statement E Codeforces Beta Round 86 (Div. 1 Only) {113} PROGRAMMING Codeforces Beta Round #86 Editorial 2600
5032 Permutations brute force combinatorics implementation Statement B Codeforces Beta Round 92 (Div. 2 Only) {124} PROGRAMMING Codeforces Beta Round #92 - Analysis 1400
316 Lucky Pair combinatorics data structures implementation Statement D Codeforces Round 104 (Div. 1) {145} PROGRAMMING Codeforces Round #104 - Editorial 2800
993 Number Challenge combinatorics dp implementation math number theory Statement E Codeforces Round 146 (Div. 1) {235} PROGRAMMING Codeforces Round #146 Tutorial 2600
1708 Permutation Sum bitmasks combinatorics dp implementation meet-in-the-middle Statement D Codeforces Round 175 (Div. 2) {285} PROGRAMMING Codeforces Round #175 (Div. 2) Tutorial 1900
158 Vasily the Bear and Painting Square bitmasks combinatorics dp implementation Statement E Codeforces Round 195 (Div. 2) {336} PROGRAMMING Tutorial Codeforces Round #195 (Div. 2) 2600
4747 Tourist Problem combinatorics implementation math Statement C Codeforces Round 198 (Div. 2) {340} PROGRAMMING Tutorial 1700
2447 Two Heaps combinatorics constructive algorithms greedy implementation math sortings Statement B Codeforces Round 205 (Div. 2) {353} PROGRAMMING 9145 1800
1420 Compartments combinatorics constructive algorithms greedy implementation Statement C Codeforces Round 207 (Div. 1) {356} PROGRAMMING Codeforces Round #207: разбор задач 2200
5005 Matrix combinatorics data structures implementation Statement A Codeforces Round 213 (Div. 1) {364} PROGRAMMING Codeforces Round #213 Editorial 1800
1259 Curious Array brute force combinatorics implementation math Statement C Codeforces Round 239 (Div. 1) {407} PROGRAMMING Codeforces Round #239 Editorial 2500
48998 Pashmak and Flowers combinatorics implementation sortings Statement B Codeforces Round 261 (Div. 2) {459} PROGRAMMING Codeforces Round #261 Editorial 1300
987 Misha and Palindrome Degree binary search combinatorics implementation Statement E Codeforces Round 285 (Div. 2) {501} PROGRAMMING Tutorial 2800
445 Pasha and Pipe binary search brute force combinatorics dp implementation Statement F Codeforces Round 293 (Div. 2) {518} PROGRAMMING Codeforces Round #293 (Div.2) Editorial 2800
27184 Tavas and SaDDas bitmasks brute force combinatorics implementation Statement B Codeforces Round 299 (Div. 2) {535} PROGRAMMING Codeforces Round #299 Editorial 1100
2150 GukiZ and Binary Operations combinatorics implementation math matrices number theory Statement D Codeforces Round 307 (Div. 2) {551} PROGRAMMING Tutorial 2400
2297 Kyoya and Permutation binary search combinatorics constructive algorithms greedy implementation math Statement B Codeforces Round 309 (Div. 1) {553} PROGRAMMING Codeforces Round #309 Editorial 2200
2745 Lengthening Sticks combinatorics implementation math Statement A Codeforces Round 317 [AimFund Thanks-Round] (Div. 1) {571} PROGRAMMING Codeforces Round #317 [AimFund Thanks-Round] Editorial 2300
11700 Wet Shark and Bishops combinatorics implementation Statement B Codeforces Round 341 (Div. 2) {621} PROGRAMMING Editorial 1300
15038 Far Relative’s Birthday Cake brute force combinatorics constructive algorithms implementation Statement A Codeforces Round 343 (Div. 2) {629} PROGRAMMING Editorial of Codeforces Round #343 (Div.2) 800
7067 Vanya and Label bitmasks combinatorics implementation strings Statement C Codeforces Round 355 (Div. 2) {677} PROGRAMMING Codeforces Round #355 (Div. 2) Editorial 1500
2355 Mike and Geometry Problem combinatorics data structures dp geometry implementation Statement E Codeforces Round 361 (Div. 2) {689} PROGRAMMING Tutorial 2300
2321 PLEASE combinatorics dp implementation math matrices Statement C Codeforces Round 362 (Div. 1) {696} PROGRAMMING Codeforces Round #362 (Editorial) 2200
10315 Minimum number of steps combinatorics greedy implementation math Statement B Codeforces Round 411 (Div. 1) {804} PROGRAMMING Codeforces Round #411 Editorial 1400
6524 Makes And The Product combinatorics implementation math sortings Statement B Educational Codeforces Round 23 {817} PROGRAMMING 52638 1500
12633 The Fair Nut and String combinatorics dp implementation Statement C Codeforces Round 526 (Div. 2) {1084} PROGRAMMING 63753 1500
3418 Flag brute force combinatorics dp implementation Statement C Codeforces Round 567 (Div. 2) {1181} PROGRAMMING Editorial of Codeforces Round #567 (based on All-Russian olympiad in the name of Keldysh) 1900
19750 The Number of Products combinatorics dp implementation Statement B Codeforces Round 585 (Div. 2) {1215} PROGRAMMING Codeforces Round #585 Editorial 1500
31571 Yet Another Broken Keyboard combinatorics dp implementation Statement C Codeforces Round 605 (Div. 3) {1272} PROGRAMMING Codeforces Round #605 (Div. 3) Editorial 1100
11604 New Year and Ascent Sequence binary search combinatorics data structures dp implementation sortings Statement B Hello 2020 {1284} PROGRAMMING Hello 2020 Editorial 1500
1475 Cow and Treats binary search combinatorics dp greedy implementation math Statement E Codeforces Round 621 (Div. 1 + Div. 2) {1307} PROGRAMMING 2500.0 Codeforces Round #621 (Div. 1 + Div. 2) Editorial 2400
32631 K-th Beautiful String combinatorics implementation math Statement B Codeforces Round 629 (Div. 3) {1328} PROGRAMMING 75246 1300
4689 Two Arrays binary search brute force combinatorics dp greedy implementation two pointers Statement E Educational Codeforces Round 89 (Rated for Div. 2) {1366} PROGRAMMING Educational Codeforces Round 89 Editorial
5560 Asterism (Easy Version) brute force combinatorics implementation math number theory sortings Statement E1 Codeforces Round 654 (Div. 2) {1371} PROGRAMMING 1500.0 Codeforces Round #654 (Div. 2) Editorial
95 Chess Rush *special combinatorics dp implementation math Statement C Central-European Olympiad in Informatics, CEOI 2020, Day 2 (IOI, Unofficial Mirror Contest, Unrated) {1403} PROGRAMMING CEOI 2020 Online Mirror — Day 2 Tutorial
5470 Identify the Operations brute force combinatorics data structures dsu greedy implementation Statement B Codeforces Round 681 (Div. 1, based on VK Cup 2019-2020 - Final) {1442} PROGRAMMING 1000.0 84298
387 Multithreading (Hard Version) combinatorics implementation math Statement H2 Codeforces Global Round 12 {1450} PROGRAMMING 1750.0 Codeforces Global Round 12 Editorial
11769 Close Tuples (hard version) binary search combinatorics implementation math sortings two pointers Statement E2 Codeforces Round 690 (Div. 3) {1462} PROGRAMMING Codeforces Round #690 (Div. 3) Editorial
18724 Advertising Agency combinatorics implementation math sortings Statement E Codeforces Round 697 (Div. 3) {1475} PROGRAMMING Codeforces Round #697 (Div. 3) Editorial
4511 Almost Sorted binary search bitmasks combinatorics constructive algorithms dp implementation math Statement B Codeforces Round 715 (Div. 1) {1508} PROGRAMMING 1000.0 Codeforces Round #715 Editorial
1069 Group Photo binary search combinatorics implementation two pointers Statement E Contest 2050 and Codeforces Round 718 (Div. 1 + Div. 2) {1517} PROGRAMMING 2500.0 Contest 2050 and Codeforces Round #718 (Div.1 + Div.2) Editorial
3039 Priority Queue combinatorics dp implementation math Statement D Codeforces Round 729 (Div. 2) {1542} PROGRAMMING 2000.0
2110 Excellent Arrays brute force combinatorics constructive algorithms implementation math Statement D Educational Codeforces Round 111 (Rated for Div. 2) {1550} PROGRAMMING Educational Codeforces Round 111 Editorial
1114 Coloring combinatorics constructive algorithms implementation Statement E Educational Codeforces Round 114 (Rated for Div. 2) {1574} PROGRAMMING 95188
405 October 18, 2017 combinatorics dp implementation math Statement F Codeforces Round 752 (Div. 1) {1603} PROGRAMMING 3750.0 Editorial of Codeforces Round #752
3525 Expand the Path brute force combinatorics implementation math Statement E Educational Codeforces Round 123 (Rated for Div. 2) {1644} PROGRAMMING 100227
3389 Tyler and Strings combinatorics data structures implementation strings Statement C Codeforces Round 775 (Div. 1, based on Moscow Open Olympiad in Informatics) {1648} PROGRAMMING 1500.0 Codeforces Round #775 Editorial
3653 Lost Arithmetic Progression combinatorics implementation math number theory Statement D Codeforces Round 785 (Div. 2) {1673} PROGRAMMING 2000.0 Codeforces Round #785 (Div. 2) Editorial
26734 Infinite Replacement combinatorics implementation strings Statement C Codeforces Round 786 (Div. 3) {1674} PROGRAMMING 102482
1493 Coloring brute force combinatorics constructive algorithms dfs and similar dp dsu graphs implementation Statement E Educational Codeforces Round 130 (Rated for Div. 2) {1697} PROGRAMMING 103835
10728 Monoblock brute force combinatorics data structures divide and conquer greedy implementation Statement C Codeforces Round 816 (Div. 2) {1715} PROGRAMMING 1750.0 Codeforces Round #816 (Div. 2) editorial
30030 Password combinatorics implementation Statement A Educational Codeforces Round 137 (Rated for Div. 2) {1743} PROGRAMMING Educational Codeforces Round 137 Editorial 800
2418 Valid Bitonic Permutations combinatorics dp implementation math Statement D Codeforces Round 840 (Div. 2) and Enigma 2022 - Cybros LNMIIT {1763} PROGRAMMING 2000.0 Codeforces Round #840 (Div. 2) and Enigma 2022 — Cybros LNMIIT Editorial
3876 Game on Axis combinatorics dsu graphs implementation Statement D TypeDB Forces 2023 (Div. 1 + Div. 2, Rated, Prizes!) {1787} PROGRAMMING 2000.0 TypeDB Forces 2023 (Div. 1 + Div. 2, Rated, Prizes!) Editorial
1010 Serval and Music Game brute force combinatorics implementation math number theory Statement E Codeforces Round 853 (Div. 2) {1789} PROGRAMMING 2000.0 Codeforces Round #853 (Div. 2) Editorial
10110 Serval and Toxel's Arrays combinatorics implementation math Statement C Codeforces Round 853 (Div. 2) {1789} PROGRAMMING 1250.0 Codeforces Round #853 (Div. 2) Editorial
10750 Ira and Flamenco combinatorics data structures implementation sortings Statement F Codeforces Round 874 (Div. 3) {1833} PROGRAMMING 116636
15894 The Morning Star combinatorics data structures geometry implementation math sortings Statement G Codeforces Round 886 (Div. 4) {1850} PROGRAMMING Codeforces Round #886 (Div. 4) Editorial
23779 Forming Triangles combinatorics implementation math Statement B Educational Codeforces Round 161 (Rated for Div. 2) {1922} PROGRAMMING Educational Codeforces Round 161 Editorial
497 Digital Patterns combinatorics data structures implementation math Statement F Codeforces Round 924 (Div. 2) {1928} PROGRAMMING 2750.0 Codeforces Round 924 Editorial
12843 Chat Screenshots combinatorics dfs and similar graphs implementation Statement F Codeforces Round 925 (Div. 3) {1931} PROGRAMMING 125878
913 Help, what does it mean to be "Based" brute force combinatorics constructive algorithms games implementation sortings Statement J April Fools Day Contest 2024 {1952} PROGRAMMING April Fools Day Contest 2024 Editorial
5963 Invertible Bracket Sequences binary search combinatorics data structures divide and conquer implementation two pointers Statement D Educational Codeforces Round 166 (Rated for Div. 2) {1976} PROGRAMMING Educational Codeforces Round 166 Editorial
12955 Decode brute force combinatorics implementation Statement E Codeforces Round 962 (Div. 3) {1996} PROGRAMMING Codeforces Round 962 (Div. 3) Editorial
346 Speedbreaker Counting (Easy Version) combinatorics dp games greedy implementation math Statement F1 Codeforces Round 975 (Div. 1) {2018} PROGRAMMING 1500.0 Editorial of Codeforces Round 975 (Div. 1, Div. 2)
1955 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
2067 Permutations Harmony brute force combinatorics constructive algorithms greedy hashing implementation math Statement E Rayan Programming Contest 2024 - Selection (Codeforces Round 989, Div. 1 + Div. 2) {2034} PROGRAMMING 2000.0 Rayan 2024 Selection Round Editorial
1585 Counting Is Not Fun (Easy Version) combinatorics data structures dfs and similar dsu implementation math Statement F1 Codeforces Round 1000 (Div. 2) {2063} PROGRAMMING 1750.0 Codeforces Round 1000 (Div. 2) — Editorial
2449 Binary Subsequence Value Sum combinatorics dp fft implementation math Statement C Codeforces Round 1008 (Div. 1) {2077} PROGRAMMING 1500.0 Codeforces Round 1008 (Div. 1, Div. 2) Editorial
92 Quantifier combinatorics dp implementation Statement E Codeforces Round 1010 (Div. 1, Unrated) {2081} PROGRAMMING 2250.0 Codeforces Round 1010 (Div. 1, Div. 2, based on Zhili Cup 2025) Editorial
685 Antiamuny and Slider Movement binary search brute force combinatorics implementation math Statement D Codeforces Round 1048 (Div. 1) {2138} PROGRAMMING 2500.0 Codeforces Round 1048 (Div. 1, Div. 2) Editorial
1576 Looking at Towers (difficult version) combinatorics data structures dp implementation Statement E2 Educational Codeforces Round 182 (Rated for Div. 2) {2144} PROGRAMMING Educational Codeforces Round 182 Editorial
2821 Looking at Towers (easy version) combinatorics dp implementation Statement E1 Educational Codeforces Round 182 (Rated for Div. 2) {2144} PROGRAMMING Educational Codeforces Round 182 Editorial
1298 Attraction Theory combinatorics dp implementation math Statement D Codeforces Round 1053 (Div. 1) {2150} PROGRAMMING 2500.0 Editorial of Codeforces Round 1053 (Div. 1, Div. 2)
3426 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
326 Amanojaku and Sequence (Hard Version) combinatorics data structures implementation math Statement E2 Codeforces Round 1098 (Div. 2) {2228} PROGRAMMING 1500.0 Codeforces Round 1098 (Div. 2) Editorial
4278 Permutation Cuts combinatorics implementation math Statement B Codeforces Round 1112 (Div. 1) {2249} PROGRAMMING 1250.0 Codeforces Round 1112 (Div. 1, Div. 2) Editorial