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

Solved
Name
Tags
Solutions
Index
Contest
Type
Points
Tutorial
Rating Level
4466 No Palindromes brute force constructive algorithms greedy hashing implementation strings Statement E Codeforces Global Round 25 {1951} PROGRAMMING 2250.0 Codeforces Global Round 25 Editorial
899 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
10523 Long Inversions brute force greedy implementation sortings Statement E Codeforces Round 938 (Div. 3) {1955} PROGRAMMING 128243
4753 Nene and the Mex Operator bitmasks brute force constructive algorithms divide and conquer dp greedy implementation Statement D Codeforces Round 939 (Div. 2) {1956} PROGRAMMING 1750.0 [Editorial] Codeforces Round 939 (Div. 2)
1667 Nene vs. Monsters (Easy Version) brute force implementation math Statement E1 Codeforces Round 939 (Div. 2) {1956} PROGRAMMING 1500.0 [Editorial] Codeforces Round 939 (Div. 2)
1116 Nene vs. Monsters (Hard Version) brute force implementation math Statement E2 Codeforces Round 939 (Div. 2) {1956} PROGRAMMING 750.0 [Editorial] Codeforces Round 939 (Div. 2)
97 Next and Prev brute force data structures implementation Statement F Codeforces Round 942 (Div. 1) {1967} PROGRAMMING 3500.0 Tutorial 3200
12422 Circle Perimeter binary search brute force dfs and similar geometry implementation math Statement F Codeforces Round 944 (Div. 4) {1971} PROGRAMMING Codeforces Round 944 (Div. 4) Editorial 1600
319 Maximum GCD Sum Queries bitmasks brute force dp implementation number theory Statement F Codeforces Round 945 (Div. 2) {1973} PROGRAMMING 3000.0 Editorial for Codeforces Round #945 (Div. 2) 3100
28470 Chess For Three brute force dp implementation math Statement A Codeforces Round 945 (Div. 2) {1973} PROGRAMMING 500.0 Editorial for Codeforces Round #945 (Div. 2) 900
4388 Cutting Game binary search brute force data structures implementation sortings two pointers Statement F Codeforces Round 946 (Div. 3) {1974} PROGRAMMING Codeforces Round #946 (Div. 3) Editorial 1900
20673 Bazoka and Mocha's Array brute force greedy implementation sortings Statement A Codeforces Round 947 (Div. 1 + Div. 2) {1975} PROGRAMMING 250.0 editorial_zh.pdf 800
31726 Guess the Maximum brute force greedy implementation Statement A Codeforces Round 951 (Div. 2) {1979} PROGRAMMING 500.0 Codeforces Round 951 (Div. 2) Editorial
9709 Beauty of the mountains brute force data structures implementation math number theory Statement D Codeforces Round 955 (Div. 2, with prizes from NEAR!) {1982} PROGRAMMING 1750.0 130839
19727 Collatz Conjecture brute force implementation math number theory Statement B 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
7206 Maximize the Largest Component (Easy Version) brute force data structures dfs and similar dsu graphs implementation Statement H1 Codeforces Round 952 (Div. 4) {1985} PROGRAMMING Codeforces Round 952 (Div. 4) Editorial
1783 Range Minimum Sum binary search brute force data structures implementation Statement E Codeforces Round 958 (Div. 2) {1988} PROGRAMMING 2500.0 Editorial of Codeforces Round 958 (Div. 2)
10254 Squaring brute force constructive algorithms data structures greedy implementation math number theory Statement C Codeforces Round 961 (Div. 2) {1995} PROGRAMMING 1750.0 Video Tutorial
26380 Diagonals brute force greedy implementation math Statement A Codeforces Round 961 (Div. 2) {1995} PROGRAMMING 500.0 Video Tutorial
12495 Decode brute force combinatorics implementation Statement E Codeforces Round 962 (Div. 3) {1996} PROGRAMMING Codeforces Round 962 (Div. 3) Editorial
3770 Level Up binary search brute force data structures implementation Statement E Educational Codeforces Round 168 (Rated for Div. 2) {1997} PROGRAMMING Video Tutorial
895 Eliminating Balls With Merging (Hard Version) binary search brute force data structures divide and conquer implementation Statement E2 Codeforces Round 965 (Div. 2) {1998} PROGRAMMING 1750.0 Video Tutorial
41519 Card Game brute force implementation Statement B Codeforces Round 964 (Div. 4) {1999} PROGRAMMING Video Tutorial
31432 Game with Doors brute force implementation Statement B Educational Codeforces Round 169 (Rated for Div. 2) {2004} PROGRAMMING Educational Codeforces Round 169 Editorial
52866 osu!mania brute force implementation Statement B Codeforces Round 971 (Div. 4) {2009} PROGRAMMING Codeforces Round 971 (Div. 4) Editorial
24667 Three Brothers brute force implementation math Statement B Testing Round 19 (Div. 3) {2010} PROGRAMMING 800
12567 Cards Partition brute force greedy implementation math Statement A Codeforces Round 975 (Div. 1) {2018} PROGRAMMING 500.0 Editorial of Codeforces Round 975 (Div. 1, Div. 2)
1918 Digital Village (Easy Version) brute force data structures dp dsu graphs greedy implementation math shortest paths trees Statement E1 Codeforces Round 977 (Div. 2, based on COMPFEST 16 - Final Round) {2021} PROGRAMMING 1750.0 Codeforces Round #977 (Div. 2, based on COMPFEST 16 — Final Round) Editorial
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
7835 Attribute Checks brute force data structures dp implementation math Statement D Educational Codeforces Round 170 (Rated for Div. 2) {2025} PROGRAMMING Educational Codeforces Round 170 Editorial
20251 Alice's Adventures in ''Chess'' brute force implementation math strings Statement A Codeforces Round 986 (Div. 2) {2028} PROGRAMMING 500.0 Codeforces Round 986 (Div. 2) Editorial
2015 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
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
22150 Anya and 1100 brute force data structures implementation Statement C Codeforces Round 984 (Div. 3) {2036} PROGRAMMING Codeforces Round 984 (Div. 3) Editorial
15940 I Love 1543 brute force implementation matrices Statement D Codeforces Round 984 (Div. 3) {2036} PROGRAMMING Codeforces Round 984 (Div. 3) Editorial
25503 Intercepted Inputs brute force implementation Statement B Codeforces Round 988 (Div. 3) {2037} PROGRAMMING Video Tutorial
1816 Matrix Transformation bitmasks brute force dfs and similar graphs implementation Statement E Educational Codeforces Round 173 (Rated for Div. 2) {2043} PROGRAMMING Educational Codeforces Round 173 Editorial
2210 Mirror Maze brute force dfs and similar graphs implementation Statement M 2024-2025 ICPC Asia Jakarta Regional Contest (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {2045} PROGRAMMING raRzKDJLPHcUnqTcwvGznwEdKiDWjEkd.pdf 1800
22814 Kevin and Combination Lock brute force implementation math number theory Statement A Codeforces Global Round 28 {2048} PROGRAMMING 250.0 Tutorial
18867 pspspsps brute force constructive algorithms implementation Statement B Codeforces Round 994 (Div. 2) {2049} PROGRAMMING 750.0 Codeforces Round #994 (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
14621 Kevin and Geometry brute force constructive algorithms data structures geometry greedy implementation math two pointers Statement B IAEPC Preliminary Contest (Codeforces Round 999, Div. 1 + Div. 2) {2061} PROGRAMMING 1000.0 IAEPC Preliminary Contest (Codeforces Round 999, Div. 1 + Div. 2) Editorial
10709 Kevin and Numbers brute force data structures greedy implementation math Statement D IAEPC Preliminary Contest (Codeforces Round 999, Div. 1 + Div. 2) {2061} PROGRAMMING 1500.0 IAEPC Preliminary Contest (Codeforces Round 999, Div. 1 + Div. 2) Editorial
55215 Skibidus and Amog'u brute force constructive algorithms implementation strings Statement A Codeforces Round 1003 (Div. 4) {2065} PROGRAMMING Video Tutorial
19599 Robot Program brute force implementation math Statement B Educational Codeforces Round 175 (Rated for Div. 2) {2070} PROGRAMMING Video Tutorial
17590 For Wizards, the Exam Is Easy, but I Couldn't Handle It brute force greedy implementation Statement D Codeforces Round 1006 (Div. 3) {2072} PROGRAMMING Codeforces Round 1006 (Div. 3) Editorial
12005 Counting Points brute force geometry implementation two pointers Statement D Codeforces Round 1009 (Div. 3) {2074} PROGRAMMING Codeforces Round 1009 (Div. 3) — Editorial
338 Maximum Polygon brute force data structures implementation math Statement D Codeforces Round 1008 (Div. 1) {2077} PROGRAMMING 2250.0 Codeforces Round 1008 (Div. 1, Div. 2) Editorial
6827 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
711 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
3520 Apple Tree Traversing brute force dfs and similar greedy implementation trees Statement D Codeforces Round 1023 (Div. 2) {2107} PROGRAMMING 2000.0 Codeforces Round 1023 (Div 2) Editorial
17794 Fibonacci Cubes brute force dp implementation math Statement B Educational Codeforces Round 179 (Rated for Div. 2) {2111} PROGRAMMING Educational Codeforces Round 179 Editorial
14575 Come a Little Closer brute force greedy implementation math Statement D Codeforces Round 1027 (Div. 3) {2114} PROGRAMMING 143268
8397 Red Light, Green Light (Easy version) brute force dfs and similar dp graphs implementation Statement D1 Codeforces Round 1030 (Div. 2) {2118} PROGRAMMING 1250.0 Codeforces Round 1030 (Div. 2) Editorial
2215 Ice Baby binary search brute force data structures dp implementation sortings Statement H Codeforces Round 1032 (Div. 3) {2121} PROGRAMMING Codeforces Round 1032 (Div. 3) Editorial
565 23 Rises Again brute force data structures dfs and similar dp flows graphs implementation probabilities trees Statement H Atto Round 1 (Codeforces Round 1041, Div. 1 + Div. 2) {2127} PROGRAMMING 4000.0 Atto Round 1 (Codeforces Round 1041, Div. 1 + Div. 2) Editorial
43105 Homework brute force implementation strings Statement A Codeforces Round 1043 (Div. 3) {2132} PROGRAMMING Codeforces Round 1043 (Div. 3) Editorial
30849 Redstone? brute force implementation math Statement A Codeforces Round 1044 (Div. 2) {2133} PROGRAMMING 500.0 Codeforces Round 1044 (Div. 2) Editorial
22777 Maximum Even Sum brute force greedy implementation math Statement C Codeforces Round 1047 (Div. 3) {2137} PROGRAMMING Codeforces Round 1047 (Div. 3) Editorial
633 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
21734 Equal Occurrences brute force greedy implementation Statement A Codeforces Round 1052 (Div. 2) {2146} PROGRAMMING 500.0 Codeforces Round 1052 (Div. 2) Editorial
10177 The Ancient Wizards' Capes brute force dp implementation Statement C Codeforces Round 1056 (Div. 2) {2155} PROGRAMMING 1750.0 Codeforces Round 1056 (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
1605 Strange Operation (Easy Version) brute force data structures greedy implementation Statement F1 Codeforces Round 1061 (Div. 2) {2156} PROGRAMMING 3250.0 Codeforces Round 1061 (Div. 2) Editorial
3246 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
5337 Make Connected brute force dsu implementation Statement B Pinely Round 5 (Div. 1 + Div. 2) {2161} PROGRAMMING 1000.0
23264 New Year Cake brute force implementation Statement B Educational Codeforces Round 186 (Rated for Div. 2) {2182} PROGRAMMING Educational Codeforces Round 186 Editorial
452 Codeforces Heuristic Contest 001 brute force constructive algorithms geometry implementation Statement H Codeforces Round 1080 (Div. 3) {2195} PROGRAMMING Codeforces Round 1080 (Div. 3) Editorial
766 RReeppeettiittiioonn binary search brute force implementation math number theory Statement B Codeforces Round 1092 (Unrated, Div. 1, Based on THUPC 2026 — Finals) {2215} PROGRAMMING 1250.0
78 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
31369 The 67th Integer Problem brute force games implementation math Statement A Codeforces Round 1090 (Div. 4) {2218} PROGRAMMING