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.

Get exact match for tags using this format, eg: [u'brute force', 'dp']

< 1 2 3 ... 83 84 85 86 87 ... 100 101 102 >

Solved
Name
Tags
Solutions
Index
Contest
Type
Points
Tutorial
Rating Level
927 The Tree Has Fallen! bitmasks dfs and similar math trees Statement E Codeforces Round 848 (Div. 2) {1778} PROGRAMMING 2250.0 Codeforces Round #848 (Div. 2) Editorial
13542 The Forbidden Permutation greedy math Statement B Codeforces Round 848 (Div. 2) {1778} PROGRAMMING 1000.0 Codeforces Round #848 (Div. 2) Editorial
700 Maximizing Root dfs and similar dp graphs math trees Statement F Codeforces Round 848 (Div. 2) {1778} PROGRAMMING 2750.0 Codeforces Round #848 (Div. 2) Editorial
24646 Flip Flop Sum greedy implementation Statement A Codeforces Round 848 (Div. 2) {1778} PROGRAMMING 500.0 Codeforces Round #848 (Div. 2) Editorial
2902 Flexible String Revisit combinatorics dp math probabilities Statement D Codeforces Round 848 (Div. 2) {1778} PROGRAMMING 1750.0 Codeforces Round #848 (Div. 2) Editorial
8613 Flexible String bitmasks brute force strings Statement C Codeforces Round 848 (Div. 2) {1778} PROGRAMMING 1250.0 Codeforces Round #848 (Div. 2) Editorial
1285 Xorcerer's Stones constructive algorithms dp trees Statement F Hello 2023 {1779} PROGRAMMING 2250.0
337 The Game of the Century constructive algorithms graphs shortest paths Statement G Hello 2023 {1779} PROGRAMMING 2750.0
147 Olympic Team Building brute force meet-in-the-middle Statement H Hello 2023 {1779} PROGRAMMING 4000.0
23986 MKnez's ConstructiveForces Task constructive algorithms math Statement B Hello 2023 {1779} PROGRAMMING 750.0
12774 Least Prefix Sum data structures greedy Statement C Hello 2023 {1779} PROGRAMMING 1250.0
23373 Hall of Fame constructive algorithms greedy math strings Statement A Hello 2023 {1779} PROGRAMMING 500.0
8145 Boris and His Amazing Haircut constructive algorithms data structures dp ds greedy Statement D Hello 2023 {1779} PROGRAMMING 1500.0
1824 Anya's Simultaneous Exhibition constructive algorithms data structures graphs greedy interactive sortings Statement E Hello 2023 {1779} PROGRAMMING 2250.0
1586 Three Chairs bitmasks brute force combinatorics data structures number theory sortings Statement F Codeforces Round 846 (Div. 2) {1780} PROGRAMMING 2000.0 111841
1496 Josuke and Complete Graph binary search brute force data structures number theory Statement E Codeforces Round 846 (Div. 2) {1780} PROGRAMMING 1750.0 111841
21900 Hayato and School constructive algorithms greedy Statement A Codeforces Round 846 (Div. 2) {1780} PROGRAMMING 500.0 111841
19056 GCD Partition brute force greedy math number theory Statement B Codeforces Round 846 (Div. 2) {1780} PROGRAMMING 1000.0 111841
782 Delicious Dessert math number theory string suffix structures strings Statement G Codeforces Round 846 (Div. 2) {1780} PROGRAMMING 2500.0 111841
5101 Bit Guessing Game binary search bitmasks interactive Statement D Codeforces Round 846 (Div. 2) {1780} PROGRAMMING 1500.0 111841
98 Window Signals (hard version) Statement H2 VK Cup 2022 - Отборочный раунд (Engine) {1781} PROGRAMMING 1500.0 Tutorial
121 Window Signals (easy version) Statement H1 VK Cup 2022 - Отборочный раунд (Engine) {1781} PROGRAMMING 3750.0 Tutorial
1331 Rectangle Shrinking binary search data structures greedy implementation two pointers Statement E VK Cup 2022 - Отборочный раунд (Engine) {1781} PROGRAMMING 2750.0 Tutorial
15200 Parallel Projection math Statement A VK Cup 2022 - Отборочный раунд (Engine) {1781} PROGRAMMING 500.0 Tutorial
5635 Many Perfect Squares brute force math number theory Statement D VK Cup 2022 - Отборочный раунд (Engine) {1781} PROGRAMMING 2000.0 Tutorial
13717 Going to the Cinema binary search math sortings two pointers Statement B VK Cup 2022 - Отборочный раунд (Engine) {1781} PROGRAMMING 1000.0 Tutorial
7983 Equal Frequencies greedy implementation Statement C VK Cup 2022 - Отборочный раунд (Engine) {1781} PROGRAMMING 1500.0 Tutorial
235 Diverse Coloring trees Statement G VK Cup 2022 - Отборочный раунд (Engine) {1781} PROGRAMMING 3500.0 Tutorial
976 Bracket Insertion brute force combinatorics constructive algorithms dp math trees Statement F VK Cup 2022 - Отборочный раунд (Engine) {1781} PROGRAMMING 3250.0 Tutorial
9598 Yet Another Tournament binary search greedy sortings Statement C Educational Codeforces Round 141 (Rated for Div. 2) {1783} PROGRAMMING Educational Codeforces Round 141 Editorial
486 Weighed Tree Radius data structures divide and conquer trees Statement G Educational Codeforces Round 141 (Rated for Div. 2) {1783} PROGRAMMING Educational Codeforces Round 141 Editorial
18193 Matrix of Differences constructive algorithms Statement B Educational Codeforces Round 141 (Rated for Div. 2) {1783} PROGRAMMING Educational Codeforces Round 141 Editorial
32154 Make it Beautiful constructive algorithms sortings Statement A Educational Codeforces Round 141 (Rated for Div. 2) {1783} PROGRAMMING Educational Codeforces Round 141 Editorial
2166 Game of the Year brute force math number theory Statement E Educational Codeforces Round 141 (Rated for Div. 2) {1783} PROGRAMMING Educational Codeforces Round 141 Editorial
1060 Double Sort II dfs and similar flows graphs greedy Statement F Educational Codeforces Round 141 (Rated for Div. 2) {1783} PROGRAMMING Educational Codeforces Round 141 Editorial
4591 Different Arrays brute force dp Statement D Educational Codeforces Round 141 (Rated for Div. 2) {1783} PROGRAMMING Educational Codeforces Round 141 Editorial
1055 Wooden Spoon combinatorics dp Statement D VK Cup 2022 - Финальный раунд (Engine) {1784} PROGRAMMING 2000.0 Codeforces Round #850 Editorial
1709 Monsters (hard version) data structures Statement C VK Cup 2022 - Финальный раунд (Engine) {1784} PROGRAMMING 1750.0 Codeforces Round #850 Editorial
15529 Monsters (easy version) greedy Statement A VK Cup 2022 - Финальный раунд (Engine) {1784} PROGRAMMING 500.0 Codeforces Round #850 Editorial
257 Minimums or Medians Statement F VK Cup 2022 - Финальный раунд (Engine) {1784} PROGRAMMING 4000.0 Codeforces Round #850 Editorial
3398 Letter Exchange constructive algorithms constructive algorithms Statement B VK Cup 2022 - Финальный раунд (Engine) {1784} PROGRAMMING 1250.0 Codeforces Round #850 Editorial
350 Infinite Game combinatorics dp games probabilities Statement E VK Cup 2022 - Финальный раунд (Engine) {1784} PROGRAMMING 3000.0 Codeforces Round #850 Editorial
14177 Non-alternating Deck (easy version) implementation Statement A1 Codeforces Round 850 (Div. 2, based on VK Cup 2022 - Final Round) {1786} PROGRAMMING 500.0 Codeforces Round #850 Editorial
9155 Cake Assembly Line brute force sortings Statement B Codeforces Round 850 (Div. 2, based on VK Cup 2022 - Final Round) {1786} PROGRAMMING 1000.0 Codeforces Round #850 Editorial
11530 Alternating Deck (hard version) implementation Statement A2 Codeforces Round 850 (Div. 2, based on VK Cup 2022 - Final Round) {1786} PROGRAMMING 500.0 Codeforces Round #850 Editorial
297 Treasure Hunt divide and conquer two pointers Statement I TypeDB Forces 2023 (Div. 1 + Div. 2, Rated, Prizes!) {1787} PROGRAMMING 3750.0 TypeDB Forces 2023 (Div. 1 + Div. 2, Rated, Prizes!) Editorial
2413 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
7299 Remove the Bracket dp greedy math Statement C TypeDB Forces 2023 (Div. 1 + Div. 2, Rated, Prizes!) {1787} PROGRAMMING 1750.0 TypeDB Forces 2023 (Div. 1 + Div. 2, Rated, Prizes!) Editorial
13595 Number Factorization greedy math number theory Statement B TypeDB Forces 2023 (Div. 1 + Div. 2, Rated, Prizes!) {1787} PROGRAMMING 1000.0 TypeDB Forces 2023 (Div. 1 + Div. 2, Rated, Prizes!) Editorial
700 Inverse Transformation constructive algorithms implementation math Statement F TypeDB Forces 2023 (Div. 1 + Div. 2, Rated, Prizes!) {1787} PROGRAMMING 2500.0 TypeDB Forces 2023 (Div. 1 + Div. 2, Rated, Prizes!) Editorial
3475 Game on Axis combinatorics ds 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
19407 Exponential Equation constructive algorithms math Statement A TypeDB Forces 2023 (Div. 1 + Div. 2, Rated, Prizes!) {1787} PROGRAMMING 500.0 TypeDB Forces 2023 (Div. 1 + Div. 2, Rated, Prizes!) Editorial
458 Colorful Tree Again data structures Statement G TypeDB Forces 2023 (Div. 1 + Div. 2, Rated, Prizes!) {1787} PROGRAMMING 3250.0 TypeDB Forces 2023 (Div. 1 + Div. 2, Rated, Prizes!) Editorial
241 Codeforces Scoreboard data structures dp ternary search Statement H TypeDB Forces 2023 (Div. 1 + Div. 2, Rated, Prizes!) {1787} PROGRAMMING 3500.0 TypeDB Forces 2023 (Div. 1 + Div. 2, Rated, Prizes!) Editorial
889 XOR, Tree, and Queries constructive algorithms dfs and similar ds graphs trees Statement F Codeforces Round 851 (Div. 2) {1788} PROGRAMMING 3000.0 Codeforces Round #851 (Div. 2) Editorial
2773 Sum Over Zero data structures dp Statement E Codeforces Round 851 (Div. 2) {1788} PROGRAMMING 2500.0 Codeforces Round #851 (Div. 2) Editorial
20524 Sum of Two Numbers constructive algorithms greedy implementation math Statement B Codeforces Round 851 (Div. 2) {1788} PROGRAMMING 1000.0 Codeforces Round #851 (Div. 2) Editorial
33058 One and Two brute force math Statement A Codeforces Round 851 (Div. 2) {1788} PROGRAMMING 500.0 Codeforces Round #851 (Div. 2) Editorial
4031 Moving Dots binary search brute force combinatorics dp math two pointers Statement D Codeforces Round 851 (Div. 2) {1788} PROGRAMMING 2250.0 Codeforces Round #851 (Div. 2) Editorial
17699 Matching Numbers constructive algorithms greedy math Statement C Codeforces Round 851 (Div. 2) {1788} PROGRAMMING 1500.0 Codeforces Round #851 (Div. 2) Editorial
8856 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
1731 Serval and Shift-Shift-Shift bitmasks brute force constructive algorithms implementation Statement D Codeforces Round 853 (Div. 2) {1789} PROGRAMMING 1750.0 Codeforces Round #853 (Div. 2) Editorial
840 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
20345 Serval and Mocha's Array brute force math number theory Statement A Codeforces Round 853 (Div. 2) {1789} PROGRAMMING 500.0 Codeforces Round #853 (Div. 2) Editorial
16375 Serval and Inversion Magic implementation strings Statement B Codeforces Round 853 (Div. 2) {1789} PROGRAMMING 1000.0 Codeforces Round #853 (Div. 2) Editorial
751 Serval and Brain Power brute force dp dp greedy implementation Statement F Codeforces Round 853 (Div. 2) {1789} PROGRAMMING 2750.0 Codeforces Round #853 (Div. 2) Editorial
15624 Vlad and a Pair of Numbers bitmasks constructive algorithms Statement E Codeforces Round 847 (Div. 3) {1790} PROGRAMMING 111948
1164 Tokens on Graph constructive algorithms dfs and similar graphs shortest paths Statement G Codeforces Round 847 (Div. 3) {1790} PROGRAMMING 111948
3439 Timofey and Black-White Tree brute force dfs and similar divide and conquer graphs greedy math shortest paths trees Statement F Codeforces Round 847 (Div. 3) {1790} PROGRAMMING 111948
27762 Taisia and Dice greedy greedy math Statement B Codeforces Round 847 (Div. 3) {1790} PROGRAMMING 111948
24580 Premutation brute force implementation math Statement C Codeforces Round 847 (Div. 3) {1790} PROGRAMMING 111948
37811 Polycarp and the Day of Pi implementation math strings Statement A Codeforces Round 847 (Div. 3) {1790} PROGRAMMING 111948
21619 Matryoshkas data structures greedy sortings Statement D Codeforces Round 847 (Div. 3) {1790} PROGRAMMING 111948
4942 Teleporters (Hard Version) binary search greedy sortings Statement G2 Codeforces Round 849 (Div. 4) {1791} PROGRAMMING 112282
24206 Teleporters (Easy Version) greedy sortings Statement G1 Codeforces Round 849 (Div. 4) {1791} PROGRAMMING 112282
12952 Range Update Point Query binary search brute force data structures Statement F Codeforces Round 849 (Div. 4) {1791} PROGRAMMING 112282
49002 Prepend and Append implementation two pointers Statement C Codeforces Round 849 (Div. 4) {1791} PROGRAMMING 112282
30213 Negatives and Positives greedy sortings Statement E Codeforces Round 849 (Div. 4) {1791} PROGRAMMING 112282
46154 Following Directions geometry implementation Statement B Codeforces Round 849 (Div. 4) {1791} PROGRAMMING 112282
33010 Distinct Split brute force greedy strings Statement D Codeforces Round 849 (Div. 4) {1791} PROGRAMMING 112282
64691 Codeforces Checking implementation strings Statement A Codeforces Round 849 (Div. 4) {1791} PROGRAMMING 112282
21944 Stand-up Comedian greedy math Statement B Educational Codeforces Round 142 (Rated for Div. 2) {1792} PROGRAMMING 111835
14605 Min Max Sort binary search brute force greedy math Statement C Educational Codeforces Round 142 (Rated for Div. 2) {1792} PROGRAMMING 111835
401 Graph Coloring (hard version) brute force fft Statement F2 Educational Codeforces Round 142 (Rated for Div. 2) {1792} PROGRAMMING 111835
751 Graph Coloring (easy version) dp Statement F1 Educational Codeforces Round 142 (Rated for Div. 2) {1792} PROGRAMMING 111835
28593 GamingForces greedy sortings Statement A Educational Codeforces Round 142 (Rated for Div. 2) {1792} PROGRAMMING 111835
6421 Fixed Prefix Permutations binary search data structures math sortings strings Statement D Educational Codeforces Round 142 (Rated for Div. 2) {1792} PROGRAMMING 111835
1418 Divisors and Table dp number theory shortest paths Statement E Educational Codeforces Round 142 (Rated for Div. 2) {1792} PROGRAMMING 111835
18211 Yet Another Promotion greedy math Statement A Codeforces Round 852 (Div. 2) {1793} PROGRAMMING 500.0 Codeforces Round #852 Editorial
1126 Velepin and Marketing data structures dp greedy sortings Statement E Codeforces Round 852 (Div. 2) {1793} PROGRAMMING 2500.0 Codeforces Round #852 Editorial
1432 Rebrending brute force data structures dp implementation Statement F Codeforces Round 852 (Div. 2) {1793} PROGRAMMING 3250.0 Codeforces Round #852 Editorial
6379 Moscow Gorillas dp greedy implementation two pointers Statement D Codeforces Round 852 (Div. 2) {1793} PROGRAMMING 1750.0 Codeforces Round #852 Editorial
16084 Fedya and Array constructive algorithms math Statement B Codeforces Round 852 (Div. 2) {1793} PROGRAMMING 1000.0 Codeforces Round #852 Editorial
21950 Dora and Search constructive algorithms data structures two pointers Statement C Codeforces Round 852 (Div. 2) {1793} PROGRAMMING 1250.0 Codeforces Round #852 Editorial
14718 Scoring Subsequences binary search greedy math two pointers Statement C Codeforces Round 856 (Div. 2) {1794} PROGRAMMING 1250.0 Codeforces Round 856 (Div. 2) Editorial
17423 Prefix and Suffix Array constructive algorithms strings Statement A Codeforces Round 856 (Div. 2) {1794} PROGRAMMING 750.0 Codeforces Round 856 (Div. 2) Editorial
24441 Not Dividing constructive algorithms greedy math Statement B Codeforces Round 856 (Div. 2) {1794} PROGRAMMING 1000.0 Codeforces Round 856 (Div. 2) Editorial
1136 Labeling the Tree with Distances data structures dp hashing implementation trees Statement E Codeforces Round 856 (Div. 2) {1794} PROGRAMMING 2750.0 Codeforces Round 856 (Div. 2) Editorial
3687 Counting Factorizations combinatorics dp math number theory Statement D Codeforces Round 856 (Div. 2) {1794} PROGRAMMING 2000.0 Codeforces Round 856 (Div. 2) Editorial
23819 Two Towers brute force implementation strings Statement A Educational Codeforces Round 143 (Rated for Div. 2) {1795} PROGRAMMING 112963