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

Solved
Name
Tags
Solutions
Index
Contest
Type
Points
Tutorial
Rating Level
54944 Atilla's Favorite Problem greedy implementation strings Statement B Codeforces Round 835 (Div. 4) {1760} PROGRAMMING 109348
15924 Elemental Decompress constructive algorithms greedy implementation sortings Statement C Codeforces Round 842 (Div. 2) {1768} PROGRAMMING 1500.0 Codeforces Round #842 (Div. 2) Editorial
20521 Gardener and the Capybaras (easy version) brute force implementation strings Statement A1 Codeforces Round 843 (Div. 2) {1775} PROGRAMMING 500.0 Codeforces Round #843 (Div. 2) Editorial
17786 Serval and Inversion Magic implementation strings Statement B Codeforces Round 853 (Div. 2) {1789} PROGRAMMING 1000.0 Codeforces Round #853 (Div. 2) Editorial
41651 Polycarp and the Day of Pi implementation math strings Statement A Codeforces Round 847 (Div. 3) {1790} PROGRAMMING 111948
85091 Codeforces Checking implementation strings Statement A Codeforces Round 849 (Div. 4) {1791} PROGRAMMING 112282
24851 Two Towers brute force implementation strings Statement A Educational Codeforces Round 143 (Rated for Div. 2) {1795} PROGRAMMING 112963
19805 Typical Interview Problem implementation strings Statement A Educational Codeforces Round 144 (Rated for Div. 2) {1796} PROGRAMMING Educational Codeforces Round 144 Editorial
18608 Asterisk-Minor Template implementation strings Statement B Educational Codeforces Round 144 (Rated for Div. 2) {1796} PROGRAMMING Educational Codeforces Round 144 Editorial
21208 Showstopper greedy implementation sortings Statement A Codeforces Round 860 (Div. 2) {1798} PROGRAMMING 500.0 Editorial of Codeforces Round 860 (Div. 2) 800
7081 Double Lexicographically Minimum constructive algorithms greedy implementation strings Statement C Codeforces Round 854 by cybercats (Div. 1 + Div. 2) {1799} PROGRAMMING 1500.0 Codeforces Round #854 Editorial
37843 Is It a Cat? implementation strings Statement A Codeforces Round 855 (Div. 3) {1800} PROGRAMMING Codeforces Round 855 (Div. 3) Editorial
22933 Subsequence Addition (Easy Version) brute force dp greedy implementation sortings Statement G1 Codeforces Round 859 (Div. 4) {1807} PROGRAMMING 114143
30370 Subsequence Addition (Hard Version) dp greedy implementation math sortings Statement G2 Codeforces Round 859 (Div. 4) {1807} PROGRAMMING 114143
35036 Find and Replace greedy implementation strings Statement C Codeforces Round 859 (Div. 4) {1807} PROGRAMMING 114143
4061 Monsters brute force data structures dfs and similar dsu graphs implementation trees Statement E CodeTON Round 4 (Div. 1 + Div. 2, Rated, Prizes!) {1810} PROGRAMMING 2000.0 Editorial of CodeTON Round 4 (Div. 1 + Div. 2, Rated, Prizes!)
8848 Umka and a Long Flight constructive algorithms implementation math Statement D Codeforces Round 863 (Div. 3) {1811} PROGRAMMING 114788
17836 Yura's New Name implementation strings Statement A Codeforces Round 866 (Div. 2) {1820} PROGRAMMING 500.0 Codeforces Round #866 (Div.1, Div.2, based on Lipetsk Team Olympiad) Editorial
16571 Tear It Apart brute force implementation math strings Statement C Educational Codeforces Round 147 (Rated for Div. 2) {1821} PROGRAMMING 115296
74372 Love Story implementation strings Statement A Codeforces Round 871 (Div. 4) {1829} PROGRAMMING Codeforces Round 871 (Div. 4) Editorial 800
3816 Bracket Walk constructive algorithms data structures implementation sortings strings Statement D Codeforces Round 877 (Div. 2) {1838} PROGRAMMING 1750.0 Codeforces Round #877 (Div. 2) Editorial
39187 Cipher Shifer implementation strings two pointers Statement A Codeforces Round 878 (Div. 3) {1840} PROGRAMMING Codeforces Round #878 (Div.3) Editorial
24515 Keep it Beautiful implementation strings Statement B Educational Codeforces Round 150 (Rated for Div. 2) {1841} PROGRAMMING 117262
2294 Omsk Metro (hard version) data structures dfs and similar divide and conquer dp implementation math trees Statement F2 Codeforces Round 881 (Div. 3) {1843} PROGRAMMING Codeforces Round #881 (Div. 3) Editorial
29198 Rudolph and Tic-Tac-Toe brute force implementation strings Statement B Codeforces Round 883 (Div. 3) {1846} PROGRAMMING
4353 Professor Higashikata brute force data structures dsu greedy implementation sortings Statement D Codeforces Round 882 (Div. 2) {1847} PROGRAMMING 2000.0 Tutorial
77752 To My Critics implementation sortings Statement A Codeforces Round 886 (Div. 4) {1850} PROGRAMMING Codeforces Round #886 (Div. 4) Editorial
55475 Word on the Paper implementation strings Statement C Codeforces Round 886 (Div. 4) {1850} PROGRAMMING Codeforces Round #886 (Div. 4) Editorial
17661 Prefix Permutation Sums implementation math Statement D Codeforces Round 888 (Div. 3) {1851} PROGRAMMING 118667
28049 Good Arrays constructive algorithms implementation math Statement B Codeforces Round 890 (Div. 2) supported by Constructor Institute {1856} PROGRAMMING 750.0 Codeforces Round #890 (Div. 2) Editorial
12600 Queries for the Array data structures dfs and similar implementation strings trees Statement C Educational Codeforces Round 154 (Rated for Div. 2) {1861} PROGRAMMING Educational Codeforces Round 154 Editorial
36839 Gift Carpet greedy implementation strings Statement A Codeforces Round 894 (Div. 3) {1862} PROGRAMMING Tutorial
2828 Candy Party (Hard Version) bitmasks constructive algorithms dp graphs greedy implementation math Statement B2 Codeforces Round 896 (Div. 1) {1868} PROGRAMMING 750.0 Codeforces Round 896 (Div. 1, Div. 2) Editorial
8502 Candy Party (Easy Version) bitmasks constructive algorithms graphs greedy implementation math Statement B1 Codeforces Round 896 (Div. 1) {1868} PROGRAMMING 500.0 Codeforces Round 896 (Div. 1, Div. 2) Editorial
13377 Torn Lucky Ticket brute force dp hashing implementation math Statement C Educational Codeforces Round 157 (Rated for Div. 2) {1895} PROGRAMMING Educational Codeforces Round 157 Editorial
17611 Milica and String brute force implementation strings Statement A Codeforces Round 910 (Div. 2) {1898} PROGRAMMING 500.0 Editorial for Codeforces Round #910 (Div. 2)
5930 Set To Max (Hard Version) binary search constructive algorithms data structures dsu greedy implementation sortings two pointers Statement D2 Codeforces Round 914 (Div. 2) {1904} PROGRAMMING 750.0 Codeforces Round 914 (Div. 2) Editorial
31459 YetnotherrokenKeoard data structures implementation strings Statement B Codeforces Round 913 (Div. 3) {1907} PROGRAMMING Codeforces Round 913 (Div. 3) Editorial
35884 Problemsolving Log implementation strings Statement A Codeforces Round 916 (Div. 3) {1914} PROGRAMMING Codeforces Round 916 (Div. 3) Editorial
35989 Unnatural Language Processing dp greedy implementation strings Statement D Codeforces Round 918 (Div. 4) {1915} PROGRAMMING 123952
9940 Mathematical Problem brute force constructive algorithms implementation math strings Statement D Good Bye 2023 {1916} PROGRAMMING 1500.0
28615 2023 constructive algorithms implementation math number theory Statement A Good Bye 2023 {1916} PROGRAMMING 250.0
29116 Tricky Template constructive algorithms implementation strings Statement A Educational Codeforces Round 161 (Rated for Div. 2) {1922} PROGRAMMING Educational Codeforces Round 161 Editorial
2308 Modular Sequence constructive algorithms dp greedy implementation math number theory Statement E Codeforces Round 924 (Div. 2) {1928} PROGRAMMING 2250.0 Codeforces Round 924 Editorial
4723 Non-Palindromic Substring data structures hashing implementation math strings Statement B Codeforces Round 934 (Div. 1) {1943} PROGRAMMING 1250.0 Codeforces Round #934 (Div1, Div2) Editorial
6532 Shuffling Songs bitmasks dp graphs implementation strings Statement G Codeforces Round 937 (Div. 4) {1950} PROGRAMMING Codeforces Round 937 (Div. 4) Editorial
17942 Nearly Shortest Repeating Substring brute force implementation number theory strings Statement E Codeforces Round 937 (Div. 4) {1950} PROGRAMMING Codeforces Round 937 (Div. 4) Editorial
26951 Product of Binary Decimals dp implementation number theory Statement D Codeforces Round 937 (Div. 4) {1950} PROGRAMMING Codeforces Round 937 (Div. 4) Editorial
47949 Clock Conversion implementation math Statement C Codeforces Round 937 (Div. 4) {1950} PROGRAMMING Codeforces Round 937 (Div. 4) Editorial
4663 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
33019 Progressive Square constructive algorithms data structures implementation sortings Statement B Codeforces Round 938 (Div. 3) {1955} PROGRAMMING 128243
31334 Binary Cut dp greedy implementation sortings strings Statement D Codeforces Round 944 (Div. 4) {1971} PROGRAMMING Codeforces Round 944 (Div. 4) Editorial 1100
46083 Different String implementation strings Statement B Codeforces Round 944 (Div. 4) {1971} PROGRAMMING Codeforces Round 944 (Div. 4) Editorial 800
35145 Symmetric Encoding implementation sortings strings Statement B Codeforces Round 946 (Div. 3) {1974} PROGRAMMING Codeforces Round #946 (Div. 3) Editorial 800
3015 Chain Queries binary search data structures dfs and similar implementation trees Statement E Codeforces Round 947 (Div. 1 + Div. 2) {1975} PROGRAMMING 2000.0 editorial_zh.pdf 2100
20991 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
6006 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
18196 Manhattan Permutations constructive algorithms greedy implementation math Statement C Codeforces Round 953 (Div. 2) {1978} PROGRAMMING 1250.0 130527
17891 GCD-sequence greedy implementation math math number theory number theory Statement D Codeforces Round 950 (Div. 3) {1980} PROGRAMMING 130135
10455 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
27745 Soccer greedy implementation math sortings Statement A Codeforces Round 955 (Div. 2, with prizes from NEAR!) {1982} PROGRAMMING 500.0 130839
18738 Corner Twist constructive algorithms greedy implementation math Statement B Codeforces Round 956 (Div. 2) and ByteRace 2024 {1983} PROGRAMMING 1000.0
21361 Large Addition constructive algorithms implementation math Statement B Codeforces Global Round 26 {1984} PROGRAMMING 750.0 Codeforces Global Round 26 Editorial
4014 ''a'' String Problem hashing implementation math string suffix structures strings Statement D Codeforces Global Round 26 {1984} PROGRAMMING 2500.0 Codeforces Global Round 26 Editorial
75590 Creating Words implementation strings Statement A Codeforces Round 952 (Div. 4) {1985} PROGRAMMING Codeforces Round 952 (Div. 4) Editorial
33538 Slavic's Exam greedy implementation strings Statement D Codeforces Round 964 (Div. 4) {1999} PROGRAMMING Video Tutorial
45273 Primary Task implementation math strings Statement A Codeforces Round 966 (Div. 3) {2000} PROGRAMMING 132689
20970 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
2103 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
17828 Shohag Loves Strings constructive algorithms greedy implementation strings Statement B CodeTON Round 9 (Div. 1 + Div. 2, Rated, Prizes!) {2039} PROGRAMMING 1000.0 Editorial of CodeTON Round 9 (Div. 1 + Div. 2)
710 Auto Complete data structures implementation sortings strings trees Statement I 2024 ICPC Asia Taichung Regional Contest (Unrated, Online Mirror, ICPC Rules, Preferably Teams) {2041} PROGRAMMING Problem Analysis and Hints (PDF)
23131 Kevin and Combination Lock brute force implementation math number theory Statement A Codeforces Global Round 28 {2048} PROGRAMMING 250.0 Tutorial
15347 Three Strings dp implementation strings Statement E Codeforces Round 991 (Div. 3) {2050} PROGRAMMING Разбор Codeforces Round 991 (Div. 3)
2340 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
11218 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
57770 Skibidus and Amog'u brute force constructive algorithms implementation strings Statement A Codeforces Round 1003 (Div. 4) {2065} PROGRAMMING Video Tutorial
7070 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
25653 Lady Bug implementation math Statement B Codeforces Round 1014 (Div. 2) {2092} PROGRAMMING 750.0 Codeforces Round #1014 (Div. 2) Editorial
756 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
5578 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
28801 Difficult Contest constructive algorithms implementation sortings strings Statement A Educational Codeforces Round 181 (Rated for Div. 2) {2125} PROGRAMMING Educational Codeforces Round 181 Editorial
45831 Homework brute force implementation strings Statement A Codeforces Round 1043 (Div. 3) {2132} PROGRAMMING Codeforces Round 1043 (Div. 3) Editorial
32162 Redstone? brute force implementation math Statement A Codeforces Round 1044 (Div. 2) {2133} PROGRAMMING 500.0 Codeforces Round 1044 (Div. 2) Editorial
27702 Painting With Two Colors constructive algorithms implementation math Statement A Codeforces Round 1045 (Div. 2) {2134} PROGRAMMING 500.0 145832
3556 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
7166 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
17176 Drifting Away implementation implementation implementation implementation implementation Statement B Educational Codeforces Round 184 (Rated for Div. 2) {2169} PROGRAMMING Educational Codeforces Round 184 Editorial
7901 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
12725 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
22814 Impost or Sus greedy implementation strings Statement B Good Bye 2025 {2178} PROGRAMMING 750.0
26641 New Year String greedy implementation strings Statement A Educational Codeforces Round 186 (Rated for Div. 2) {2182} PROGRAMMING Educational Codeforces Round 186 Editorial
3485 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
17386 Array and Permutation implementation sortings two pointers Statement B Codeforces Round 1079 (Div. 2) {2197} PROGRAMMING 1000.0
15039 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
33083 Koshary implementation math Statement A Codeforces Round 1096 (Div. 3) {2227} PROGRAMMING Codeforces Round 1096 (Div. 3) — Editorial
17909 Digit String greedy implementation math Statement B Educational Codeforces Round 190 (Rated for Div. 2) {2230} PROGRAMMING Educational Codeforces Round 190 — Editorial
1637 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
291 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
250 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
19383 Threshold Movement implementation math Statement A Codeforces Round 1112 (Div. 2) {2250} PROGRAMMING 500.0 Codeforces Round 1112 (Div. 1, Div. 2) Editorial
25839 Evanescent implementation strings two pointers Statement B Codeforces Round 1114 (Div. 3) {2254} PROGRAMMING Tutorial
17211 Domino Tiles implementation math Statement B Codeforces Round 1116 (Div. 2) {2256} PROGRAMMING 1000.0 155840