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
1088 Bags and Coins bitmasks constructive algorithms dp greedy Statement D Codeforces Round 207 (Div. 1) {356} PROGRAMMING 9210 2500
1029 Guess the Tree bitmasks constructive algorithms dp greedy trees Statement C Codeforces Round 245 (Div. 1) {429} PROGRAMMING Codeforces Round #245 — Editorial 2400
4098 Subsequence Counting bitmasks constructive algorithms greedy implementation Statement C Divide by Zero 2018 and Codeforces Round 474 (Div. 1 + Div. 2, combined) {960} PROGRAMMING Divide by Zero 2018 and Codeforces Round #474 (Div. 1 + Div. 2, combined) Editorial 1700
658 To Make 1 bitmasks constructive algorithms dp greedy number theory Statement G Technocup 2020 - Elimination Round 2 {1225} PROGRAMMING 70898 3000
13553 Ehab the Xorcist bitmasks constructive algorithms greedy number theory Statement D Codeforces Round 628 (Div. 2) {1325} PROGRAMMING 1750.0 74235 1700
3436 Perfect Triples bitmasks brute force constructive algorithms divide and conquer greedy implementation math Statement C Codeforces Round 633 (Div. 1) {1338} PROGRAMMING 1500.0 Editorial
9502 Edge Weight Assignment bitmasks constructive algorithms greedy math trees Statement B Codeforces Round 633 (Div. 1) {1338} PROGRAMMING 1000.0 Editorial
9335 Phoenix and Science binary search bitmasks constructive algorithms greedy math Statement D Codeforces Round 638 (Div. 2) {1348} PROGRAMMING 2000.0 Codeforces Round #638 (Div. 2) Editorial 1900
5431 GameGame bitmasks constructive algorithms dp games greedy math Statement B Codeforces Round 659 (Div. 1) {1383} PROGRAMMING 1000.0 Codeforces Round #659 Editorial
2675 Two Different bitmasks constructive algorithms divide and conquer greedy Statement F Grakn Forces 2020 {1408} PROGRAMMING 2500.0 Grakn Forces -- Editorial
910 Matrix Sorting bitmasks constructive algorithms dfs and similar greedy hashing string suffix structures two pointers Statement C Codeforces Round 707 (Div. 1, based on Moscow Open Olympiad in Informatics) {1500} PROGRAMMING 1500.0 Codeforces Round #707 Editorial 2600
6741 Nearest Beautiful Number (easy version) binary search bitmasks brute force constructive algorithms dfs and similar greedy Statement F1 Codeforces Round 739 (Div. 3) {1560} PROGRAMMING 94009 1900
4928 Nearest Beautiful Number (hard version) bitmasks brute force constructive algorithms dfs and similar dp greedy Statement F2 Codeforces Round 739 (Div. 3) {1560} PROGRAMMING 94009 2100
18999 MAX-MEX Cut bitmasks constructive algorithms dp greedy Statement C Codeforces Global Round 16 {1566} PROGRAMMING 1000.0 Codeforces Global Round 16 Editorial
3243 Treelabeling bitmasks constructive algorithms dfs and similar games graphs greedy trees Statement D Codeforces Round 754 (Div. 2) {1605} PROGRAMMING 2000.0 tutorial 2100
12015 Bit Flipping bitmasks constructive algorithms greedy strings Statement B Codeforces Round 782 (Div. 2) {1659} PROGRAMMING 750.0 Codeforces Round #782 (Div. 2) Editorial
954 Anti-Theft Road Planning bitmasks constructive algorithms divide and conquer greedy interactive math Statement F Codeforces Round 785 (Div. 2) {1673} PROGRAMMING 3250.0 Codeforces Round #785 (Div. 2) Editorial
18996 Patchouli's Magical Talisman bitmasks constructive algorithms greedy sortings Statement B Codeforces Round 796 (Div. 2) {1688} PROGRAMMING 750.0 Tutorial
14113 Even-Odd XOR bitmasks constructive algorithms greedy Statement G Codeforces Round 817 (Div. 4) {1722} PROGRAMMING 106478 1500
10240 SlavicG's Favorite Problem bitmasks brute force constructive algorithms data structures dfs and similar graphs greedy Statement G Codeforces Round 835 (Div. 4) {1760} PROGRAMMING 109348
16982 Absolute Maximization bitmasks constructive algorithms greedy math Statement A Codeforces Round 840 (Div. 2) and Enigma 2022 - Cybros LNMIIT {1763} PROGRAMMING 500.0 Codeforces Round #840 (Div. 2) and Enigma 2022 — Cybros LNMIIT Editorial
2714 The Harmonization of XOR bitmasks constructive algorithms greedy math Statement E TypeDB Forces 2023 (Div. 1 + Div. 2, Rated, Prizes!) {1787} PROGRAMMING 2250.0 TypeDB Forces 2023 (Div. 1 + Div. 2, Rated, Prizes!) Editorial
2739 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
8299 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
17390 Sets and Union bitmasks brute force constructive algorithms greedy Statement B Codeforces Round 899 (Div. 2) {1882} PROGRAMMING 1000.0 Codeforces Round 899 (Div. 2) Editorial
14805 StORage room bitmasks brute force constructive algorithms greedy Statement B Codeforces Round 912 (Div. 2) {1903} PROGRAMMING 1000.0 Codeforces Round #912 (Div. 2) Editorial
4127 XOR Break --- Solo Version bitmasks constructive algorithms greedy Statement D1 Codeforces Round 931 (Div. 2) {1934} PROGRAMMING 1500.0 Tutorial
8637 Bitwise Operation Wizard bitmasks constructive algorithms greedy interactive math Statement A Codeforces Round 930 (Div. 1) {1936} PROGRAMMING 500.0 Codeforces Round 930 (Div. 1, Div. 2) Editorial
5591 Birthday Gift bitmasks brute force constructive algorithms greedy implementation Statement D Codeforces Round 936 (Div. 2) {1946} PROGRAMMING 1750.0 Codeforces Round #936 (Div. 2) Editorial
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)
20360 A BIT of a Construction bitmasks constructive algorithms greedy implementation Statement B Codeforces Round 940 (Div. 2) and CodeCraft-23 {1957} PROGRAMMING 1000.0 Codeforces Round #940 and CodeCraft-23 (Div. 2) Editorial 1100
8085 Missing Subsequence Sum bitmasks constructive algorithms greedy number theory Statement B Codeforces Round 941 (Div. 1) {1965} PROGRAMMING 1250.0 Codeforces Round #941 (Div. 1, Div. 2) Editorial 1800
19862 Binary Colouring bitmasks constructive algorithms greedy math Statement B Codeforces Round 948 (Div. 2) {1977} PROGRAMMING 1250.0 129858 1100
7833 Fixing a Binary String bitmasks brute force constructive algorithms greedy hashing strings Statement D Codeforces Round 951 (Div. 2) {1979} PROGRAMMING 2000.0 Codeforces Round 951 (Div. 2) Editorial
6329 Turtle and an Incomplete Sequence bitmasks constructive algorithms greedy implementation math Statement C Codeforces Round 949 (Div. 2) {1981} PROGRAMMING 1500.0 Simplified Chinese Tutorial
20243 Increasing Sequence with Fixed OR bitmasks constructive algorithms greedy Statement C Codeforces Round 958 (Div. 2) {1988} PROGRAMMING 1000.0 Editorial of Codeforces Round 958 (Div. 2)
7869 Prime XOR Coloring bitmasks constructive algorithms graphs greedy math number theory Statement D Pinely Round 4 (Div. 1 + Div. 2) {1991} PROGRAMMING 1500.0 Video Tutorial
18870 AND Reconstruction bitmasks constructive algorithms greedy Statement B Pinely Round 4 (Div. 1 + Div. 2) {1991} PROGRAMMING 500.0 Video Tutorial
19429 Fun Game bitmasks constructive algorithms greedy math Statement B Codeforces Round 959 sponsored by NEAR (Div. 1 + Div. 2) {1994} PROGRAMMING 1000.0 Video Tutorial
13696 Trip to the Olympiad bitmasks constructive algorithms greedy math Statement C Hello 2025 {2057} PROGRAMMING 1500.0
19460 Creating Keys for StORages Has Become My Main Skill bitmasks constructive algorithms greedy Statement C Codeforces Round 1006 (Div. 3) {2072} PROGRAMMING Codeforces Round 1006 (Div. 3) Editorial
13466 Serval and The Formula bitmasks constructive algorithms greedy Statement C Codeforces Round 1011 (Div. 2) {2085} PROGRAMMING 1250.0 Codeforces Round #1011 (Div. 2) Editorial
14479 SUMdamental Decomposition bitmasks constructive algorithms greedy implementation math Statement B Codeforces Round 1022 (Div. 2) {2108} PROGRAMMING 1250.0 Codeforces Round 1022 Editorial
4004 Max Sum OR (Hard Version) bitmasks constructive algorithms divide and conquer greedy Statement D2 Codeforces Round 1052 (Div. 2) {2146} PROGRAMMING 1000.0 Codeforces Round 1052 (Div. 2) Editorial
10346 Max Sum OR (Easy Version) bitmasks constructive algorithms divide and conquer greedy trees Statement D1 Codeforces Round 1052 (Div. 2) {2146} PROGRAMMING 1500.0 Codeforces Round 1052 (Div. 2) Editorial
13361 Blackslex and Penguin Civilization bitmasks constructive algorithms greedy math Statement D Codeforces Round 1071 (Div. 3) {2179} PROGRAMMING Codeforces Round 1071 (Div. 3) Editorial
6386 XOR-factorization bitmasks constructive algorithms dp greedy number theory Statement C Codeforces Global Round 31 (Div. 1 + Div. 2) {2180} PROGRAMMING 1500.0 Codeforces Global Round 31
5179 Shortest Statement Ever bitmasks constructive algorithms dp greedy Statement B Codeforces Round 1077 (Div. 1) {2187} PROGRAMMING 1250.0 Codeforces Round 1077 (Div. 1, Div. 2) Editorial