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
2047 Big Maximum Sum data structures dp greedy implementation math trees Statement D Codeforces Beta Round 67 (Div. 2) {75} PROGRAMMING Codeforces Beta Round #67 (Div. 2) Editorial 2100
16786 Powerful array data structures implementation math two pointers Statement D Yandex.Algorithm 2011: Round 2 {86} PROGRAMMING Problemset analysis (Yandex, Round 2) 2700
1375 Last Chance data structures implementation strings Statement E Codeforces Beta Round 98 (Div. 2) {137} PROGRAMMING Codeforces Beta Round #98 (Div. 2): Editorial 2000
5506 After Training data structures implementation math Statement B Codeforces Round 123 (Div. 2) {195} PROGRAMMING Codeforces Round #123 (Div. 2) Разбор Задач 1300
1013 Anniversary data structures implementation math matrices number theory Statement C Codeforces Round 140 (Div. 1) {226} PROGRAMMING Codeforces Round #140 Editorial 2100
258 Sequence Transformation data structures dp implementation math Statement E Codeforces Round 172 (Div. 1) {280} PROGRAMMING Codeforces Round #172 Editorial 3000
2016 Insertion Sort data structures dp implementation math Statement C Codeforces Round 212 (Div. 2) {362} PROGRAMMING Codeforces Round #212 (Div. 2). Tutorial. Part 1. 2000
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
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
13575 Powers of Two brute force data structures implementation math Statement B Educational Codeforces Round 15 {702} PROGRAMMING 46324 1500
3137 Video Cards brute force data structures implementation math number theory Statement F Codeforces Round 376 (Div. 2) {731} PROGRAMMING 47840 1900
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
14586 Average Sleep Time data structures implementation math Statement B Educational Codeforces Round 21 {808} PROGRAMMING 52010 1300
1791 Mister B and PR Shifts data structures implementation math Statement B Codeforces Round 421 (Div. 1) {819} PROGRAMMING Codeforces Round #421 Editorial 2100
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
10690 Multiplicity data structures dp implementation math number theory Statement C Codeforces Round 523 (Div. 2) {1061} PROGRAMMING Tutorial (en) 1700
6556 Binary Numbers AND Sum data structures implementation math Statement E Codeforces Round 515 (Div. 3) {1066} PROGRAMMING 62419 1700
1086 New Year and the Acquaintance Estimation binary search data structures graphs greedy implementation math sortings Statement E Good Bye 2018 {1091} PROGRAMMING Editorial 2400
16768 Game with string data structures implementation math Statement B Codeforces Round 534 (Div. 2) {1104} PROGRAMMING Codeforces Round #534 — Editorial 1300
3947 Power Transmission (Hard Edition) data structures geometry implementation math Statement C2 Codeforces Round 558 (Div. 2) {1163} PROGRAMMING 66943 2000
2444 Serge and Dining Room binary search data structures graph matchings greedy implementation math trees Statement C Codeforces Round 569 (Div. 1) {1179} PROGRAMMING Editorial of Round #569 2400
11057 Candies! data structures dp implementation math Statement C Codeforces Round 572 (Div. 2) {1189} PROGRAMMING Editorial of Codeforces Round #572 1400
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
2061 Sum Queries? data structures greedy implementation math Statement E Educational Codeforces Round 72 (Rated for Div. 2) {1217} PROGRAMMING Educational Codeforces Round 72 Editorial 2300
13513 Beautiful Numbers data structures implementation math two pointers Statement B Codeforces Round 604 (Div. 2) {1265} PROGRAMMING Codeforces Round #604 Editorial 1300
3868 Decreasing Debts constructive algorithms data structures graphs greedy implementation math two pointers Statement D Codeforces Global Round 6 {1266} PROGRAMMING Codeforces Global Round 6 Editorial 2000
3274 Let's Play the Words? data structures hashing implementation math Statement D Codeforces Round 606 (Div. 2, based on Technocup 2020 Elimination Round 4) {1277} PROGRAMMING Technocup 2020 — Elimination Round 4 + Codeforces Round 606: Editorial 1800
12646 MEX maximizing data structures greedy implementation math Statement D Codeforces Round 615 (Div. 3) {1294} PROGRAMMING Codeforces Round #615 (Div. 3) Editorial 1600
172 Johnny and New Toy data structures implementation math Statement F Codeforces Round 647 (Div. 1) - Thanks, Algo Muse! {1361} PROGRAMMING 3500.0 Codeforces Round #647 Editorial 3300
2592 Two Types of Spells binary search data structures greedy implementation math sortings Statement E Educational Codeforces Round 93 (Rated for Div. 2) {1398} PROGRAMMING Educational Codeforces Round 93 Editorial
28112 Numbers on Whiteboard constructive algorithms data structures games implementation math Statement C Educational Codeforces Round 96 (Rated for Div. 2) {1430} PROGRAMMING Educational Codeforces Round 96 — Editorial
1680 Latin Square data structures implementation math matrices Statement C Codeforces Round 691 (Div. 1) {1458} PROGRAMMING 1500.0 Codeforces Round #691 Editorial (finished)
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
1736 Spanning Tree Queries binary search data structures dsu graphs implementation math sortings Statement E Educational Codeforces Round 122 (Rated for Div. 2) {1633} PROGRAMMING 99539
4457 Rescheduling the Exam binary search data structures greedy implementation math sortings Statement E Codeforces Round 776 (Div. 3) {1650} PROGRAMMING 100712
4443 Reverse Sort Sum constructive algorithms data structures greedy implementation math two pointers Statement D Codeforces Round 782 (Div. 2) {1659} PROGRAMMING 2000.0 Codeforces Round #782 (Div. 2) Editorial
3136 Promising String (hard version) data structures implementation math strings Statement F2 Codeforces Round 780 (Div. 3) {1660} PROGRAMMING Codeforces Round #780 (Div. 3) Editorial
10978 Where is the Pizza? data structures dfs and similar dsu graphs implementation math Statement C Codeforces Round 788 (Div. 2) {1670} PROGRAMMING 1750.0 Tutorial 1400
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
12311 Recent Actions data structures greedy implementation math Statement A Codeforces Round 854 by cybercats (Div. 1 + Div. 2) {1799} PROGRAMMING 500.0 Codeforces Round #854 Editorial
15015 Hits Different data structures dp implementation math Statement G Codeforces Round 871 (Div. 4) {1829} PROGRAMMING Codeforces Round 871 (Div. 4) Editorial 1600
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
2105 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
8991 Rating System brute force data structures dp greedy implementation math Statement D Educational Codeforces Round 151 (Rated for Div. 2) {1845} PROGRAMMING 117791
24201 Vika and the Bridge binary search data structures greedy implementation math sortings Statement B Codeforces Round 885 (Div. 2) {1848} PROGRAMMING 1000.0 Codeforces Round #885 (Div.2) Editorial
15373 The Morning Star combinatorics data structures geometry implementation math sortings Statement G Codeforces Round 886 (Div. 4) {1850} PROGRAMMING Codeforces Round #886 (Div. 4) Editorial
13084 Colorful Table binary search data structures dp implementation math sortings two pointers Statement C CodeTON Round 6 (Div. 1 + Div. 2, Rated, Prizes!) {1870} PROGRAMMING 1500.0 CodeTON Round 6 (Div. 1 + Div. 2, Rated, Prizes!) Editorial
1463 Trees and XOR Queries Again bitmasks data structures dfs and similar implementation math trees Statement F Educational Codeforces Round 159 (Rated for Div. 2) {1902} PROGRAMMING Educational Codeforces Round 159 Editorial
4598 Cyclic MEX binary search constructive algorithms data structures implementation math two pointers Statement D Codeforces Round 915 (Div. 2) {1905} PROGRAMMING 2000.0 Codeforces Round 915 (Div. 2) Editorial
6472 Array Repetition binary search data structures dp implementation math Statement D Codeforces Round 919 (Div. 2) {1920} PROGRAMMING 2000.0 Editorial for Codeforces Round #919 (Div. 2)
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
14797 Vlad and an Odd Ordering binary search bitmasks data structures dp implementation math number theory Statement E Codeforces Round 928 (Div. 4) {1926} PROGRAMMING 126132
345 Digital Patterns combinatorics data structures implementation math Statement F Codeforces Round 924 (Div. 2) {1928} PROGRAMMING 2750.0 Codeforces Round 924 Editorial
18856 LR-remainders brute force data structures implementation math Statement C Codeforces Round 927 (Div. 3) {1932} PROGRAMMING 126196
1645 Distance Learning Courses in MAC binary search bitmasks data structures greedy implementation math Statement E Codeforces Round 932 (Div. 2) {1935} PROGRAMMING 2500.0 Codeforces Round #932 (Div. 2) Editorial
4528 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
2955 Chain Reaction data structures dsu greedy implementation math number theory Statement E Educational Codeforces Round 164 (Rated for Div. 2) {1954} PROGRAMMING Educational Codeforces Round 164 Editorial
2861 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
13595 Elections data structures greedy implementation math Statement D Codeforces Round 953 (Div. 2) {1978} PROGRAMMING 1500.0 130527
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
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
650 Game in Tree (Easy Version) binary search data structures games implementation trees Statement F1 Codeforces Round 973 (Div. 2) {2013} PROGRAMMING 2000.0 134298
7440 Minimize the Difference binary search data structures greedy implementation math Statement D Codeforces Round 973 (Div. 2) {2013} PROGRAMMING 2000.0 134298
17221 All Pairs Segments data structures implementation math Statement B Codeforces Round 975 (Div. 2) {2019} PROGRAMMING 1000.0 Editorial of Codeforces Round 975 (Div. 1, Div. 2)
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
5814 Sums of Segments binary search data structures dp implementation math Statement D Educational Codeforces Round 171 (Rated for Div. 2) {2026} PROGRAMMING Educational Codeforces Round 171 Editorial
1389 Balanced constructive algorithms data structures implementation math Statement E Codeforces Round 983 (Div. 2) {2032} PROGRAMMING 2250.0 Codeforces Round 983 (Div. 2) 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
2571 Hard Demon Problem data structures dp implementation math Statement H Codeforces Round 993 (Div. 4) {2044} PROGRAMMING Codeforces Round 993 (Div. 4) Editorial
7662 Refined Product Optimality binary search data structures greedy implementation math schedules sortings Statement D Good Bye 2024: 2025 is NEAR {2053} PROGRAMMING 1750.0 Good Bye 2024: 2025 is NEAR 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
1520 Counting Is Not Fun (Easy Version) combinatorics data structures dfs and similar dsu implementation math Statement F1 Codeforces Round 1000 (Div. 2) {2063} PROGRAMMING 1750.0 Codeforces Round 1000 (Div. 2) — Editorial
1073 Infinite Sequence (Hard Version) bitmasks constructive algorithms data structures dp implementation math Statement D2 Codeforces Round 1007 (Div. 2) {2071} PROGRAMMING 1250.0 Codeforces Round 1007 (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
704 Query Jungle data structures data structures implementation math math trees Statement G Squarepoint Challenge (Codeforces Round 1055, Div. 1 + Div. 2) {2152} PROGRAMMING 4000.0 Squarepoint Challenge (Codeforces Round 1055, Div. 1 + Div. 2) Editorial
8987 khba Loves to Sleep! binary search data structures geometry implementation math Statement E Codeforces Round 1062 (Div. 4) {2167} PROGRAMMING Arpa Video Tutorial
3233 Mixing MEXes data structures implementation math Statement G Codeforces Round 1074 (Div. 4) {2185} PROGRAMMING Codeforces Round 1074 (Div. 4) Editorial
20407 OutOfMemoryError data structures implementation math two pointers Statement D Codeforces Round 1074 (Div. 4) {2185} PROGRAMMING Codeforces Round 1074 (Div. 4) Editorial