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
54694 Atilla's Favorite Problem greedy implementation strings Statement B Codeforces Round 835 (Div. 4) {1760} PROGRAMMING 109348
15906 Elemental Decompress constructive algorithms greedy implementation sortings Statement C Codeforces Round 842 (Div. 2) {1768} PROGRAMMING 1500.0 Codeforces Round #842 (Div. 2) Editorial
20509 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
17775 Serval and Inversion Magic implementation strings Statement B Codeforces Round 853 (Div. 2) {1789} PROGRAMMING 1000.0 Codeforces Round #853 (Div. 2) Editorial
41596 Polycarp and the Day of Pi implementation math strings Statement A Codeforces Round 847 (Div. 3) {1790} PROGRAMMING 111948
84325 Codeforces Checking implementation strings Statement A Codeforces Round 849 (Div. 4) {1791} PROGRAMMING 112282
24830 Two Towers brute force implementation strings Statement A Educational Codeforces Round 143 (Rated for Div. 2) {1795} PROGRAMMING 112963
19795 Typical Interview Problem implementation strings Statement A Educational Codeforces Round 144 (Rated for Div. 2) {1796} PROGRAMMING Educational Codeforces Round 144 Editorial
18587 Asterisk-Minor Template implementation strings Statement B Educational Codeforces Round 144 (Rated for Div. 2) {1796} PROGRAMMING Educational Codeforces Round 144 Editorial
21192 Showstopper greedy implementation sortings Statement A Codeforces Round 860 (Div. 2) {1798} PROGRAMMING 500.0 Editorial of Codeforces Round 860 (Div. 2) 800
7069 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
37724 Is It a Cat? implementation strings Statement A Codeforces Round 855 (Div. 3) {1800} PROGRAMMING Codeforces Round 855 (Div. 3) Editorial
22893 Subsequence Addition (Easy Version) brute force dp greedy implementation sortings Statement G1 Codeforces Round 859 (Div. 4) {1807} PROGRAMMING 114143
30155 Subsequence Addition (Hard Version) dp greedy implementation math sortings Statement G2 Codeforces Round 859 (Div. 4) {1807} PROGRAMMING 114143
34944 Find and Replace greedy implementation strings Statement C Codeforces Round 859 (Div. 4) {1807} PROGRAMMING 114143
4036 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!)
8827 Umka and a Long Flight constructive algorithms implementation math Statement D Codeforces Round 863 (Div. 3) {1811} PROGRAMMING 114788
17804 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
16528 Tear It Apart brute force implementation math strings Statement C Educational Codeforces Round 147 (Rated for Div. 2) {1821} PROGRAMMING 115296
73683 Love Story implementation strings Statement A Codeforces Round 871 (Div. 4) {1829} PROGRAMMING Codeforces Round 871 (Div. 4) Editorial 800
3804 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
39102 Cipher Shifer implementation strings two pointers Statement A Codeforces Round 878 (Div. 3) {1840} PROGRAMMING Codeforces Round #878 (Div.3) Editorial
24466 Keep it Beautiful implementation strings Statement B Educational Codeforces Round 150 (Rated for Div. 2) {1841} PROGRAMMING 117262
2269 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
29174 Rudolph and Tic-Tac-Toe brute force implementation strings Statement B Codeforces Round 883 (Div. 3) {1846} PROGRAMMING
4339 Professor Higashikata brute force data structures dsu greedy implementation sortings Statement D Codeforces Round 882 (Div. 2) {1847} PROGRAMMING 2000.0 Tutorial
77077 To My Critics implementation sortings Statement A Codeforces Round 886 (Div. 4) {1850} PROGRAMMING Codeforces Round #886 (Div. 4) Editorial
55187 Word on the Paper implementation strings Statement C Codeforces Round 886 (Div. 4) {1850} PROGRAMMING Codeforces Round #886 (Div. 4) Editorial
17613 Prefix Permutation Sums implementation math Statement D Codeforces Round 888 (Div. 3) {1851} PROGRAMMING 118667
27942 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
12568 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
36776 Gift Carpet greedy implementation strings Statement A Codeforces Round 894 (Div. 3) {1862} PROGRAMMING Tutorial
2824 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
8481 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
13351 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
17590 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)
5903 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
31372 YetnotherrokenKeoard data structures implementation strings Statement B Codeforces Round 913 (Div. 3) {1907} PROGRAMMING Codeforces Round 913 (Div. 3) Editorial
35749 Problemsolving Log implementation strings Statement A Codeforces Round 916 (Div. 3) {1914} PROGRAMMING Codeforces Round 916 (Div. 3) Editorial
35879 Unnatural Language Processing dp greedy implementation strings Statement D Codeforces Round 918 (Div. 4) {1915} PROGRAMMING 123952
9926 Mathematical Problem brute force constructive algorithms implementation math strings Statement D Good Bye 2023 {1916} PROGRAMMING 1500.0
28572 2023 constructive algorithms implementation math number theory Statement A Good Bye 2023 {1916} PROGRAMMING 250.0
29086 Tricky Template constructive algorithms implementation strings Statement A Educational Codeforces Round 161 (Rated for Div. 2) {1922} PROGRAMMING Educational Codeforces Round 161 Editorial
2283 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
4703 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
6492 Shuffling Songs bitmasks dp graphs implementation strings Statement G Codeforces Round 937 (Div. 4) {1950} PROGRAMMING Codeforces Round 937 (Div. 4) Editorial
17880 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
26897 Product of Binary Decimals dp implementation number theory Statement D Codeforces Round 937 (Div. 4) {1950} PROGRAMMING Codeforces Round 937 (Div. 4) Editorial
47815 Clock Conversion implementation math Statement C Codeforces Round 937 (Div. 4) {1950} PROGRAMMING Codeforces Round 937 (Div. 4) Editorial
4634 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
32950 Progressive Square constructive algorithms data structures implementation sortings Statement B Codeforces Round 938 (Div. 3) {1955} PROGRAMMING 128243
31243 Binary Cut dp greedy implementation sortings strings Statement D Codeforces Round 944 (Div. 4) {1971} PROGRAMMING Codeforces Round 944 (Div. 4) Editorial 1100
45889 Different String implementation strings Statement B Codeforces Round 944 (Div. 4) {1971} PROGRAMMING Codeforces Round 944 (Div. 4) Editorial 800
35080 Symmetric Encoding implementation sortings strings Statement B Codeforces Round 946 (Div. 3) {1974} PROGRAMMING Codeforces Round #946 (Div. 3) Editorial 800
3006 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
20977 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
5982 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
18166 Manhattan Permutations constructive algorithms greedy implementation math Statement C Codeforces Round 953 (Div. 2) {1978} PROGRAMMING 1250.0 130527
17844 GCD-sequence greedy implementation math math number theory number theory Statement D Codeforces Round 950 (Div. 3) {1980} PROGRAMMING 130135
10351 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
27723 Soccer greedy implementation math sortings Statement A Codeforces Round 955 (Div. 2, with prizes from NEAR!) {1982} PROGRAMMING 500.0 130839
18697 Corner Twist constructive algorithms greedy implementation math Statement B Codeforces Round 956 (Div. 2) and ByteRace 2024 {1983} PROGRAMMING 1000.0
21326 Large Addition constructive algorithms implementation math Statement B Codeforces Global Round 26 {1984} PROGRAMMING 750.0 Codeforces Global Round 26 Editorial
3998 ''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
75158 Creating Words implementation strings Statement A Codeforces Round 952 (Div. 4) {1985} PROGRAMMING Codeforces Round 952 (Div. 4) Editorial
33454 Slavic's Exam greedy implementation strings Statement D Codeforces Round 964 (Div. 4) {1999} PROGRAMMING Video Tutorial
45134 Primary Task implementation math strings Statement A Codeforces Round 966 (Div. 3) {2000} PROGRAMMING 132689
20890 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
2088 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
17785 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)
702 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)
23102 Kevin and Combination Lock brute force implementation math number theory Statement A Codeforces Global Round 28 {2048} PROGRAMMING 250.0 Tutorial
15245 Three Strings dp implementation strings Statement E Codeforces Round 991 (Div. 3) {2050} PROGRAMMING Разбор Codeforces Round 991 (Div. 3)
2327 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
11182 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
57427 Skibidus and Amog'u brute force constructive algorithms implementation strings Statement A Codeforces Round 1003 (Div. 4) {2065} PROGRAMMING Video Tutorial
7055 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
25584 Lady Bug implementation math Statement B Codeforces Round 1014 (Div. 2) {2092} PROGRAMMING 750.0 Codeforces Round #1014 (Div. 2) Editorial
755 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
5557 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
28746 Difficult Contest constructive algorithms implementation sortings strings Statement A Educational Codeforces Round 181 (Rated for Div. 2) {2125} PROGRAMMING Educational Codeforces Round 181 Editorial
45595 Homework brute force implementation strings Statement A Codeforces Round 1043 (Div. 3) {2132} PROGRAMMING Codeforces Round 1043 (Div. 3) Editorial
32089 Redstone? brute force implementation math Statement A Codeforces Round 1044 (Div. 2) {2133} PROGRAMMING 500.0 Codeforces Round 1044 (Div. 2) Editorial
27620 Painting With Two Colors constructive algorithms implementation math Statement A Codeforces Round 1045 (Div. 2) {2134} PROGRAMMING 500.0 145832
3495 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
7032 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
17080 Drifting Away implementation implementation implementation implementation implementation Statement B Educational Codeforces Round 184 (Rated for Div. 2) {2169} PROGRAMMING Educational Codeforces Round 184 Editorial
7839 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
12620 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
22722 Impost or Sus greedy implementation strings Statement B Good Bye 2025 {2178} PROGRAMMING 750.0
26531 New Year String greedy implementation strings Statement A Educational Codeforces Round 186 (Rated for Div. 2) {2182} PROGRAMMING Educational Codeforces Round 186 Editorial
3446 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
17245 Array and Permutation implementation sortings two pointers Statement B Codeforces Round 1079 (Div. 2) {2197} PROGRAMMING 1000.0
14789 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
32582 Koshary implementation math Statement A Codeforces Round 1096 (Div. 3) {2227} PROGRAMMING Codeforces Round 1096 (Div. 3) — Editorial
17717 Digit String greedy implementation math Statement B Educational Codeforces Round 190 (Rated for Div. 2) {2230} PROGRAMMING Educational Codeforces Round 190 — Editorial
1595 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
245 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
227 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
18939 Threshold Movement implementation math Statement A Codeforces Round 1112 (Div. 2) {2250} PROGRAMMING 500.0 Codeforces Round 1112 (Div. 1, Div. 2) Editorial
25007 Evanescent implementation strings two pointers Statement B Codeforces Round 1114 (Div. 3) {2254} PROGRAMMING Tutorial
16631 Domino Tiles implementation math Statement B Codeforces Round 1116 (Div. 2) {2256} PROGRAMMING 1000.0 155840