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
2415 Sum of Medians binary search brute force data structures implementation Statement D Yandex.Algorithm 2011: Round 1 {85} PROGRAMMING Yandex.Algorithm 2011 - Round 1. Problem C. Tutorial 2200
687 Chip Play brute force data structures implementation Statement C Codeforces Beta Round 74 (Div. 1 Only) {89} PROGRAMMING Solutions for Codeforces Beta Round #74 2100
224 Two Circles brute force data structures implementation Statement E Codeforces Round 211 (Div. 2) {363} PROGRAMMING 9537 2600
10545 Bear and Prime Numbers binary search brute force data structures dp implementation math number theory Statement C Codeforces Round 226 (Div. 2) {385} PROGRAMMING Codeforces Round #226 (Div. 2) — Editorial 1800
7496 Vasya and Basketball binary search brute force data structures implementation sortings two pointers Statement C Codeforces Round 281 (Div. 2) {493} PROGRAMMING Codeforces Round #281 (Div. 2) Editorial 1700
22588 Han Solo and Lazer Gun brute force data structures geometry implementation math Statement B Codeforces Round 291 (Div. 2) {514} PROGRAMMING Codeforces Round #291 (Div. 2) Editorial 1400
6452 Lorenzo Von Matterhorn brute force data structures implementation trees Statement A Codeforces Round 362 (Div. 1) {696} PROGRAMMING Codeforces Round #362 (Editorial) 1500
13575 Powers of Two brute force data structures implementation math Statement B Educational Codeforces Round 15 {702} PROGRAMMING 46324 1500
10192 Thor brute force data structures implementation Statement A Codeforces Round 366 (Div. 1) {704} PROGRAMMING Tutorial 1600
3137 Video Cards brute force data structures implementation math number theory Statement F Codeforces Round 376 (Div. 2) {731} PROGRAMMING 47840 1900
3165 New Year and Fireworks brute force data structures dfs and similar dp implementation Statement D Good Bye 2016 {750} PROGRAMMING Good Bye 2016 — hints and codes 1900
522 Dasha and Photos brute force data structures dp implementation Statement F Codeforces Round 394 (Div. 2) {761} PROGRAMMING Codeforces Round #394 (Div. 2) [Editorial] 2900
6237 Molly's Chemicals binary search brute force data structures implementation math Statement C ICM Technex 2017 and Codeforces Round 400 (Div. 1 + Div. 2, combined) {776} PROGRAMMING ICM Technex 2017 and Codeforces Round #400 (Div. 1 + Div. 2, combined) Editorial 1800
1306 Bamboo Partition brute force data structures implementation math number theory sortings two pointers Statement C Codeforces Round 424 (Div. 1, rated, based on VK Cup Finals) {830} PROGRAMMING Codeforces Round #424 Editorial 2500
21793 Hotelier brute force data structures implementation Statement A Codeforces Round 578 (Div. 2) {1200} PROGRAMMING Codeforces Round #578 (Div. 2) Editorial 1000
4396 White Lines brute force data structures dp implementation two pointers Statement D Codeforces Round 578 (Div. 2) {1200} PROGRAMMING Codeforces Round #578 (Div. 2) Editorial 1900
1162 Graph Traveler brute force data structures dfs and similar dp graphs implementation math number theory Statement F Codeforces Round 578 (Div. 2) {1200} PROGRAMMING Codeforces Round #578 (Div. 2) Editorial 2500
2763 You Are Given a WASD-string... brute force data structures dp greedy implementation math strings Statement C Educational Codeforces Round 70 (Rated for Div. 2) {1202} PROGRAMMING 68972 2100
6714 Remainder Problem brute force data structures implementation Statement F Educational Codeforces Round 71 (Rated for Div. 2) {1207} PROGRAMMING Educational Codeforces Round 71 Editorial 2100
1736 Alice and the Doll brute force data structures greedy implementation Statement D Codeforces Round 593 (Div. 2) {1236} PROGRAMMING 70654 2100
9780 Hyperset brute force data structures implementation Statement B Codeforces Round 612 (Div. 2) {1287} PROGRAMMING Codeforces Round #612 - Editorial 1500
8890 Mind Control brute force data structures implementation Statement A Codeforces Round 616 (Div. 1) {1290} PROGRAMMING 500.0 Codeforces Round #616 Editorial 1700
13686 Nastya and Strange Generator brute force data structures greedy implementation Statement A Codeforces Round 637 (Div. 1) - Thanks, Ivan Belonogov! {1340} PROGRAMMING 500.0 Codeforces Round #637 Editorial
1392 Restore the Permutation by Sorted Segments brute force constructive algorithms data structures greedy implementation Statement F Codeforces Round 636 (Div. 3) {1343} PROGRAMMING 76352 2800
4666 Searchlights binary search brute force data structures dp geometry implementation sortings Statement D Grakn Forces 2020 {1408} PROGRAMMING 2000.0 Grakn Forces -- Editorial
5230 Identify the Operations brute force combinatorics data structures dsu greedy implementation Statement B Codeforces Round 681 (Div. 1, based on VK Cup 2019-2020 - Final) {1442} PROGRAMMING 1000.0 84298
1688 Two Editorials brute force data structures greedy implementation Statement E Educational Codeforces Round 98 (Rated for Div. 2) {1452} PROGRAMMING 84847
10169 Divide and Summarize binary search brute force data structures divide and conquer implementation sortings Statement D Codeforces Round 689 (Div. 2, based on Zed Code Competition) {1461} PROGRAMMING 1500.0 Codeforces Round #689 (Div. 2). Editorial
8386 Pekora and Trampoline brute force data structures dp graphs greedy implementation Statement C Codeforces Global Round 13 {1491} PROGRAMMING 1000.0 Codeforces Global Round 13 Editorial
538 Qingshan and Daniel brute force data structures greedy implementation Statement E Codeforces Round 706 (Div. 1) {1495} PROGRAMMING 2500.0 Codeforces Round #706 Editorial
32589 Yet Another Card Deck brute force data structures implementation trees Statement C Educational Codeforces Round 107 (Rated for Div. 2) {1511} PROGRAMMING 89634
9160 Compression and Expansion brute force data structures greedy implementation trees Statement C Deltix Round, Spring 2021 (open for everyone, rated, Div. 1 + Div. 2) {1523} PROGRAMMING 1500.0 Deltix Round, Spring 2021. Editorial 1600
3211 Funny Substrings brute force data structures hashing implementation strings Statement E Codeforces Round 725 (Div. 3) {1538} PROGRAMMING Codeforces Round #725 (Div. 3) Editorial
2229 Train Maintenance brute force data structures implementation Statement C Codeforces Round 745 (Div. 1) {1580} PROGRAMMING 1750.0 Codeforces Round #745 Editorial 2200
11572 Fault-tolerant Network brute force data structures implementation Statement C Educational Codeforces Round 124 (Rated for Div. 2) {1651} PROGRAMMING Educational Codeforces Round 124 Editorial
10329 Monoblock brute force combinatorics data structures divide and conquer greedy implementation Statement C Codeforces Round 816 (Div. 2) {1715} PROGRAMMING 1750.0 Codeforces Round #816 (Div. 2) editorial
3449 Fibonacci Strings brute force data structures greedy implementation math number theory Statement B Codeforces Round 814 (Div. 1) {1718} PROGRAMMING 1250.0 Codeforces Round #814 (Div. 1, Div. 2) Editorial
13302 Counting Rectangles brute force data structures dp implementation Statement E Codeforces Round 817 (Div. 4) {1722} PROGRAMMING 106478 1600
9871 Balance (Easy version) brute force data structures implementation Statement D1 Codeforces Round 830 (Div. 2) {1732} PROGRAMMING 1250.0 108327 1500
12951 Zero-Sum Prefixes brute force data structures dp greedy implementation Statement C Codeforces Round 833 (Div. 2) {1748} PROGRAMMING 1500.0 Codeforces Round #833 (Div. 2) Editorial 1600
1626 Rebrending brute force data structures dp implementation Statement F Codeforces Round 852 (Div. 2) {1793} PROGRAMMING 3250.0 Codeforces Round #852 Editorial
4627 Li Hua and Tree brute force data structures dfs and similar dp implementation trees Statement D Codeforces Round 864 (Div. 2) {1797} PROGRAMMING 1750.0 Codeforces Round 864 (Div. 2) Editorial
18772 Three Sevens brute force data structures greedy implementation Statement B Codeforces Round 860 (Div. 2) {1798} PROGRAMMING 750.0 Editorial of Codeforces Round 860 (Div. 2) 1000
3896 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!)
1946 Walk the Runway bitmasks brute force data structures dp graphs implementation sortings Statement E Codeforces Round 870 (Div. 2) {1826} PROGRAMMING 2500.0 Codeforces Round #870 (Div. 2) Editorial 2400
2761 MEX of LCM binary search brute force data structures implementation math number theory two pointers Statement E Codeforces Round 879 (Div. 2) {1834} PROGRAMMING 2500.0 Codeforces Round #879 Editorial
8991 Rating System brute force data structures dp greedy implementation math Statement D Educational Codeforces Round 151 (Rated for Div. 2) {1845} PROGRAMMING 117791
4254 Professor Higashikata brute force data structures dsu greedy implementation sortings Statement D Codeforces Round 882 (Div. 2) {1847} PROGRAMMING 2000.0 Tutorial
1637 Exotic Queries brute force data structures implementation sortings Statement F Harbour.Space Scholarship Contest 2023-2024 (Div. 1 + Div. 2) {1864} PROGRAMMING 2500.0 Harbour.Space Scholarship Contest 2023-2024 (Div. 1 + Div. 2) Editorial
2632 Happy Life in University brute force data structures dfs and similar dp implementation trees Statement E Good Bye 2023 {1916} PROGRAMMING 2000.0
4964 Sum of Progression brute force data structures implementation math Statement F Codeforces Round 920 (Div. 3) {1921} PROGRAMMING Editorial for Codeforces Round 920 (Div. 3)
3272 Space Harbour brute force data structures implementation math sortings Statement B Codeforces Round 921 (Div. 1) {1924} PROGRAMMING 1000.0 Codeforces Round 921 (Div. 1, Div. 2) Editorial
18856 LR-remainders brute force data structures implementation math Statement C Codeforces Round 927 (Div. 3) {1932} PROGRAMMING 126196
97 Next and Prev brute force data structures implementation Statement F Codeforces Round 942 (Div. 1) {1967} PROGRAMMING 3500.0 Tutorial 3200
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
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
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
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
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
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
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
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
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
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
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