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 3 4 5 >

Solved
Name
Tags
Solutions
Index
Contest
Type
Points
Tutorial
Rating Level
1089 New Year and the Acquaintance Estimation binary search data structures graphs greedy implementation math sortings Statement E Good Bye 2018 {1091} PROGRAMMING Editorial 2400
18575 New Year and the Christmas Ornament brute force implementation math Statement A Good Bye 2018 {1091} PROGRAMMING Editorial 900
11438 Beautiful Graph dfs and similar graphs Statement D Educational Codeforces Round 56 (Rated for Div. 2) {1093} PROGRAMMING 63877 1600
7636 Make It Connected dsu graphs greedy Statement F Codeforces Round 529 (Div. 3) {1095} PROGRAMMING Codeforces Round #529 (Div. 3) Editorial 2000
1162 Construct a tree binary search constructive algorithms dfs and similar graphs greedy trees Statement C Codeforces Round 530 (Div. 1) {1098} PROGRAMMING 64331 2300
2673 Andrew and Taxi binary search dfs and similar graphs Statement E Codeforces Round 532 (Div. 2) {1100} PROGRAMMING Unofficial Tutorial 2200
2381 Elongated Matrix binary search bitmasks brute force dp graphs Statement F Codeforces Round 531 (Div. 3) {1102} PROGRAMMING 64439 2400
958 Johnny Solving constructive algorithms dfs and similar graphs math Statement C Codeforces Round 534 (Div. 1) {1103} PROGRAMMING Codeforces Round #534 — Editorial 2800
4431 Kilani and the Game dfs and similar graphs implementation shortest paths Statement D Codeforces Round 533 (Div. 2) {1105} PROGRAMMING Tutorial 1900
19934 Lunar New Year and a Wander data structures dfs and similar graphs greedy shortest paths Statement D Codeforces Round 536 (Div. 2) {1106} PROGRAMMING Tutorial 1500
958 Vasya and Endless Credits dp flows graph matchings graphs sortings Statement F Educational Codeforces Round 59 (Rated for Div. 2) {1107} PROGRAMMING Educational Codeforces Round 59 Editorial 2700
3606 MST Unification binary search dsu graphs greedy Statement F Codeforces Round 535 (Div. 3) {1108} PROGRAMMING 64751 2300
1507 Sasha and Interesting Fact from Graph Theory brute force combinatorics dp math trees Statement D Codeforces Round 539 (Div. 1) {1109} PROGRAMMING Codeforces Round #539 Editorial 2600
1121 Tree data structures dfs and similar dp graphs trees Statement E CodeCraft-19 and Codeforces Round 537 (Div. 2) {1111} PROGRAMMING CodeCraft-19 and Codeforces Round #537 (Div. 2) Editorial 2800
1782 Power Tree dfs and similar dp dsu graphs greedy trees Statement D Codeforces Round 543 (Div. 1, based on Technocup 2019 Final Round) {1120} PROGRAMMING Разбор задач финала Технокубка 2019 и Codeforces Round #543 2400
3647 Gourmet choice dfs and similar dp dsu graphs greedy Statement D Codeforces Round 541 (Div. 2) {1131} PROGRAMMING Codeforces Round #541 Editorial 2000
8803 Spanning Tree with Maximum Degree graphs Statement F1 Codeforces Round 544 (Div. 3) {1133} PROGRAMMING Codeforces Round #544 (Div. 3) Editorial 1600
3839 Spanning Tree with One Fixed Degree constructive algorithms dfs and similar dsu graphs greedy Statement F2 Codeforces Round 544 (Div. 3) {1133} PROGRAMMING Codeforces Round #544 (Div. 3) Editorial 2200
1326 Museums Tour dp graphs implementation Statement C Codeforces Round 545 (Div. 1) {1137} PROGRAMMING Codeforces Round #545 – Editorial 2800
16881 Edgy Trees dfs and similar dsu graphs math trees Statement C Codeforces Round 548 (Div. 2) {1139} PROGRAMMING Codeforces Round #548 Editorial 1500
2308 Maximize Mex flows graph matchings graphs Statement E Codeforces Round 548 (Div. 2) {1139} PROGRAMMING Codeforces Round #548 Editorial 2400
2556 Privatization of Roads in Treeland binary search constructive algorithms dfs and similar graphs greedy trees Statement G Codeforces Round 547 (Div. 3) {1141} PROGRAMMING 66062 2500
638 Pink Floyd graphs interactive Statement E Codeforces Round 549 (Div. 1) {1142} PROGRAMMING Codeforces Round #549 Editorial 3100
14371 Graph Without Long Directed Paths dfs and similar graphs Statement F Codeforces Round 550 (Div. 3) {1144} PROGRAMMING 66307 1700
4228 Tree Diameter bitmasks graphs interactive Statement C Forethought Future Cup - Elimination Round {1146} PROGRAMMING 66639 1700
1056 Zoning Restrictions dp flows graphs Statement G Forethought Future Cup - Elimination Round {1146} PROGRAMMING 66639 2600
5595 Hide and Seek graphs Statement A Forethought Future Cup - Final Round (Onsite Finalists Only) {1147} PROGRAMMING Forethought Future Cup Final Round Tutorial 1500
861 Palindrome XOR dfs and similar graphs Statement D Forethought Future Cup - Final Round (Onsite Finalists Only) {1147} PROGRAMMING Forethought Future Cup Final Round Tutorial 2600
390 Gold Experience constructive algorithms graphs math number theory probabilities Statement G Codeforces Global Round 3 {1148} PROGRAMMING Codeforces Global Round 3 Editorial 3100
970 Abandoning Roads brute force dp graphs greedy Statement D Codeforces Round 556 (Div. 1) {1149} PROGRAMMING 66783 2900
674 Election Promises games graphs Statement E Codeforces Round 556 (Div. 1) {1149} PROGRAMMING 66783 3100
1124 Neko and Flashback constructive algorithms dfs and similar graphs Statement E Codeforces Round 554 (Div. 2) {1152} PROGRAMMING T 2500
517 Delivery Oligopoly brute force dp graphs Statement F Educational Codeforces Round 63 (Rated for Div. 2) {1155} PROGRAMMING 66687 2700
156 Optimizer graphs greedy hashing implementation Statement G Educational Codeforces Round 64 (Rated for Div. 2) {1156} PROGRAMMING 66827 3100
2127 Permutation recovery constructive algorithms data structures dfs and similar graphs greedy math sortings Statement C Codeforces Round 559 (Div. 1) {1158} PROGRAMMING 66993 2300
1018 Magical Permutation bitmasks brute force constructive algorithms data structures graphs math Statement E Codeforces Round 558 (Div. 2) {1163} PROGRAMMING 66943 2800
1310 Indecisive Taxi Fee data structures graphs shortest paths Statement F Codeforces Round 558 (Div. 2) {1163} PROGRAMMING 66943 2900
815 Vicky's Delivery Service data structures dsu graphs hashing Statement F Codeforces Round 561 (Div. 2) {1166} PROGRAMMING Codeforces Round #561 (Div. 2) Editorial 2800
26444 News Distribution dfs and similar dsu graphs Statement C Educational Codeforces Round 65 (Rated for Div. 2) {1167} PROGRAMMING 67058 1400
10760 Pairs graphs implementation Statement B Codeforces Round 562 (Div. 2) {1169} PROGRAMMING Codeforces Round #562 — Editorial 1500
85 Graph Decomposition *special graphs Statement G Kotlin Heroes: Episode 1 {1170} PROGRAMMING Kotlin Heroes Editorial
1982 Ehab and the Big Finale constructive algorithms divide and conquer graphs implementation interactive trees Statement F Codeforces Round 563 (Div. 2) {1174} PROGRAMMING Codeforces round #563 editorial 2300
13701 Cover it! dfs and similar dsu graphs shortest paths trees Statement E Codeforces Round 565 (Div. 3) {1176} PROGRAMMING 67598 1700
5845 Recover it! dfs and similar graphs greedy number theory sortings Statement D Codeforces Round 565 (Div. 3) {1176} PROGRAMMING 67598 1900
299 Stock Exchange binary search flows graphs Statement H Codeforces Global Round 4 {1178} PROGRAMMING E 3500
5445 Subsequences (easy version) dp graphs implementation shortest paths Statement E Codeforces Round 570 (Div. 3) {1183} PROGRAMMING Tutorial 2000
1867 Daleks' Invasion (easy) graphs trees Statement E1 Helvetic Coding Contest 2019 online mirror (teams allowed, unrated) {1184} PROGRAMMING helvetic-coding-contest-2019-editorial.pdf 2000
1062 Daleks' Invasion (medium) dfs and similar graphs shortest paths trees Statement E2 Helvetic Coding Contest 2019 online mirror (teams allowed, unrated) {1184} PROGRAMMING helvetic-coding-contest-2019-editorial.pdf 2200
692 The Doctor Meets Vader (Medium) flows graph matchings graphs shortest paths sortings Statement B2 Helvetic Coding Contest 2019 online mirror (teams allowed, unrated) {1184} PROGRAMMING helvetic-coding-contest-2019-editorial.pdf 2300
669 Daleks' Invasion (hard) data structures dsu graphs trees Statement E3 Helvetic Coding Contest 2019 online mirror (teams allowed, unrated) {1184} PROGRAMMING helvetic-coding-contest-2019-editorial.pdf 2500
1053 Vus the Cossack and a Graph dfs and similar graphs greedy implementation Statement F Codeforces Round 571 (Div. 2) {1186} PROGRAMMING E 2300
692 Gang Up flows graphs Statement G Educational Codeforces Round 67 (Rated for Div. 2) {1187} PROGRAMMING Разбор Educational Codeforces Round 67 2600
8961 Add on a Tree trees Statement A1 Codeforces Round 572 (Div. 1) {1188} PROGRAMMING Editorial of Codeforces Round #572 1600
4076 Matching vs Independent Set constructive algorithms graphs greedy sortings Statement C Codeforces Round 576 (Div. 1) {1198} PROGRAMMING E 2200
1302 Rectangle Painting 2 flows graph matchings graphs Statement E Codeforces Round 576 (Div. 1) {1198} PROGRAMMING E 2500
1164 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
148 Knightmare (easy) graphs interactive shortest paths Statement E1 Codeforces Round 577 (Div. 2) {1201} PROGRAMMING Codeforces Round #577 (Div 2) Editorial 2900
167 Knightmare (hard) graphs interactive shortest paths Statement E2 Codeforces Round 577 (Div. 2) {1201} PROGRAMMING Codeforces Round #577 (Div 2) Editorial 3000
7264 Anna, Svyatoslav and Maps dp graphs greedy shortest paths Statement C Codeforces Round 581 (Div. 2) {1204} PROGRAMMING 69244 1700
7522 Shortest Cycle bitmasks brute force graphs shortest paths Statement B Codeforces Round 580 (Div. 1) {1205} PROGRAMMING 69158 1900
10813 Cow and Snacks dfs and similar dsu graphs Statement D Codeforces Round 584 - Dasha Code Championship - Elimination Round (rated, open for everyone, Div. 1 + Div. 2) {1209} PROGRAMMING 69791 1700
1367 Koala and Notebook data structures dfs and similar graphs shortest paths strings trees Statement F Codeforces Round 584 - Dasha Code Championship - Elimination Round (rated, open for everyone, Div. 1 + Div. 2) {1209} PROGRAMMING 69791 2600
5550 Anadi and Domino brute force graphs Statement A Dasha Code Championship - SPb Finals Round (only for onsite-finalists) {1210} PROGRAMMING Dasha Code Championship Finals and Mirror Round 588 Editorial 1600
1628 Konrad and Company Evaluation graphs Statement D Dasha Code Championship - SPb Finals Round (only for onsite-finalists) {1210} PROGRAMMING Dasha Code Championship Finals and Mirror Round 588 Editorial 2300
354 Marek and Matching (easy version) brute force probabilities Statement F1 Dasha Code Championship - SPb Finals Round (only for onsite-finalists) {1210} PROGRAMMING Dasha Code Championship Finals and Mirror Round 588 Editorial 2900
438 Marek and Matching (hard version) brute force probabilities Statement F2 Dasha Code Championship - SPb Finals Round (only for onsite-finalists) {1210} PROGRAMMING Dasha Code Championship Finals and Mirror Round 588 Editorial 3100
149 kotlinkotlinkotlinkotlin... *special graphs implementation strings Statement F Kotlin Heroes: Episode 2 {1211} PROGRAMMING Kotlin Heroes: Episode 2 Editorial 2400
52 Unusual Graph *special graphs Statement I Kotlin Heroes: Episode 2 {1211} PROGRAMMING Kotlin Heroes: Episode 2 Editorial 3000
9634 Path Queries divide and conquer dsu graphs sortings trees Statement G Codeforces Round 582 (Div. 3) {1213} PROGRAMMING Codeforces Round #582 (Div. 3) Editorial 2000
3032 Unstable String Sort data structures dfs and similar dsu graphs greedy implementation strings Statement F Codeforces Round 582 (Div. 3) {1213} PROGRAMMING Codeforces Round #582 (Div. 3) Editorial 2400
2866 Petya and Construction Set constructive algorithms graphs math sortings trees Statement E Codeforces Round 583 (Div. 1 + Div. 2, based on Olympiad of Metropolises) {1214} PROGRAMMING Tutorial 2000
5980 Coloring Edges constructive algorithms dfs and similar graphs Statement D Educational Codeforces Round 72 (Rated for Div. 2) {1217} PROGRAMMING Educational Codeforces Round 72 Editorial 2000
725 Forced Online Queries Problem data structures divide and conquer dsu graphs trees Statement F Educational Codeforces Round 72 (Rated for Div. 2) {1217} PROGRAMMING Educational Codeforces Round 72 Editorial 2800
607 Xor Spanning Tree divide and conquer fft graphs Statement D Bubble Cup 12 - Finals [Online Mirror, unrated, Div. 1] {1218} PROGRAMMING E 2600
180 BubbleReactor dp graphs Statement A Bubble Cup 12 - Finals [Online Mirror, unrated, Div. 1] {1218} PROGRAMMING E 2800
165 Alpha planetary system constructive algorithms graphs shortest paths Statement G Bubble Cup 12 - Finals [Online Mirror, unrated, Div. 1] {1218} PROGRAMMING E 3300
4144 Alex and Julian bitmasks math number theory Statement D Codeforces Round 586 (Div. 1 + Div. 2) {1220} PROGRAMMING Codeforces Round #586 Editorial 1900
3012 Tourism dfs and similar dp dsu graphs greedy trees Statement E Codeforces Round 586 (Div. 1 + Div. 2) {1220} PROGRAMMING Codeforces Round #586 Editorial 2200
1650 Arson In Berland Forest binary search graphs graphs shortest paths Statement E Technocup 2020 - Elimination Round 3 {1227} PROGRAMMING Разбор задач №2 2200
5452 Complete Tripartite brute force constructive algorithms graphs hashing implementation Statement D Codeforces Round 589 (Div. 2) {1228} PROGRAMMING 70162 1800
213 Alice and the Cactus dfs and similar graphs math probabilities Statement F Codeforces Round 593 (Div. 2) {1236} PROGRAMMING 70654 2900
2078 The Maximum Subtree dfs and similar dp graphs trees Statement F Educational Codeforces Round 74 (Rated for Div. 2) {1238} PROGRAMMING Educational Codeforces Round 74 Editorial 2300
2616 Catowice City 2-sat dfs and similar graph matchings graphs Statement D Codeforces Round 594 (Div. 1) {1239} PROGRAMMING Editorial of Codeforces Round #594 (on the problems of Moscow Team Olympiad) 2400
318 Swiper, no swiping! graphs implementation Statement F Codeforces Round 594 (Div. 1) {1239} PROGRAMMING Editorial of Codeforces Round #594 (on the problems of Moscow Team Olympiad) 3400
327 Football graphs Statement F Codeforces Round 591 (Div. 1, based on Technocup 2020 Elimination Round 1) {1240} PROGRAMMING Сodeforces Round 591 (Технокубок 2020 — Отборочный раунд 1) Разбор 3100
9397 0-1 MST dfs and similar dsu graphs sortings Statement B Codeforces Round 599 (Div. 1) {1242} PROGRAMMING Codeforces Round #599 Editorial 1900
1956 Sum Balance bitmasks dfs and similar dp graphs Statement C Codeforces Round 599 (Div. 1) {1242} PROGRAMMING Codeforces Round #599 Editorial 2400
157 Planar Perimeter constructive algorithms graphs Statement E Codeforces Round 599 (Div. 1) {1242} PROGRAMMING Codeforces Round #599 Editorial 3200
8321 Paint the Tree brute force constructive algorithms dp graphs implementation trees Statement D Codeforces Round 592 (Div. 2) {1244} PROGRAMMING Codeforces Round #592 (Div. 2) Tutorial 1700
9758 Shichikuji and Power Grid dsu graphs greedy shortest paths trees Statement D Codeforces Round 597 (Div. 2) {1245} PROGRAMMING Codeforces Round #597 (Div. 2) Editorial 1900
1766 Wires dfs and similar graphs greedy Statement N 2019-2020 ICPC, NERC, Southern and Volga Russian Regional Contest (Online Mirror, ICPC Rules, Teams Preferred) {1250} PROGRAMMING 2200
913 The Coronation graphs implementation Statement E 2019-2020 ICPC, NERC, Southern and Volga Russian Regional Contest (Online Mirror, ICPC Rules, Teams Preferred) {1250} PROGRAMMING 2500
322 Projectors flows graphs Statement K 2019-2020 ICPC, NERC, Southern and Volga Russian Regional Contest (Online Mirror, ICPC Rules, Teams Preferred) {1250} PROGRAMMING 3200
1086 Regular Forestation hashing trees Statement F 2019-2020 ICPC, Asia Jakarta Regional Contest (Online Mirror, ICPC Rules, Teams Preferred) {1252} PROGRAMMING T 2500
646 Road Construction flows graphs Statement L 2019-2020 ICPC, Asia Jakarta Regional Contest (Online Mirror, ICPC Rules, Teams Preferred) {1252} PROGRAMMING T 2600
10286 Harmonious Graph constructive algorithms dfs and similar dsu graphs greedy sortings Statement D Codeforces Round 600 (Div. 2) {1253} PROGRAMMING Editorial 1700
2267 Cheap Robot binary search dsu graphs shortest paths trees Statement F Codeforces Round 600 (Div. 2) {1253} PROGRAMMING Editorial 2600
12553 Fridge Lockers graphs implementation Statement B Codeforces Round 601 (Div. 2) {1255} PROGRAMMING Codeforces Round #601 Editorial 1200
16099 Secret Passwords dfs and similar dsu graphs Statement D Codeforces Round 603 (Div. 2) {1263} PROGRAMMING Codeforces Round #603 (Div. 2) Editorial 1500
957 Economic Difficulties data structures dfs and similar dp flows graphs trees Statement F Codeforces Round 603 (Div. 2) {1263} PROGRAMMING Разбор Codeforces Round #603 (Div. 2) 2500
3878 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
377 Almost Same Distance dfs and similar graphs Statement F Codeforces Global Round 6 {1266} PROGRAMMING Codeforces Global Round 6 Editorial 2900
134 Red-Blue Graph dp graphs math matrices meet-in-the-middle Statement H Codeforces Global Round 6 {1266} PROGRAMMING Codeforces Global Round 6 Editorial 3400
720 Foolprüf Security graphs Statement F 2019-2020 ICPC, NERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1267} PROGRAMMING 2800
642 Invertation in Tournament brute force divide and conquer graphs math Statement D Codeforces Round 609 (Div. 1) {1268} PROGRAMMING Codeforces Round #609 — Editorial 3100
2977 Subset with Zero Sum constructive algorithms dfs and similar graphs math Statement G Good Bye 2019 {1270} PROGRAMMING Разбор Goodbye 2019 2700
8034 Nearest Opposite Parity dfs and similar graphs shortest paths Statement E Codeforces Round 605 (Div. 3) {1272} PROGRAMMING Codeforces Round #605 (Div. 3) Editorial 2000
5699 Two Fairs combinatorics dfs and similar dsu graphs Statement B Codeforces Round 606 (Div. 1, based on Technocup 2020 Elimination Round 4) {1276} PROGRAMMING Technocup 2020 — Elimination Round 4 + Codeforces Round 606: Editorial 1900
4349 Segment Tree data structures dsu graphs trees Statement D Educational Codeforces Round 78 (Rated for Div. 2) {1278} PROGRAMMING Educational Codeforces Round 78 Editorial 2100
3044 Jeremy Bearimy dfs and similar graphs greedy trees Statement C Codeforces Round 607 (Div. 1) {1280} PROGRAMMING Codeforces Round #607 Editorial 2000
1223 The Cake Is a Lie constructive algorithms data structures dfs and similar graphs Statement E Codeforces Round 610 (Div. 2) {1282} PROGRAMMING 72461 2400
9580 Christmas Trees graphs greedy shortest paths Statement D Codeforces Round 611 (Div. 3) {1283} PROGRAMMING Codeforces Round #611 (Div. 3) Editorial 1800
413 New Year and Social Network data structures graph matchings graphs math trees Statement F Hello 2020 {1284} PROGRAMMING Hello 2020 Editorial 3100
228 Seollal graphs Statement G Hello 2020 {1284} PROGRAMMING Hello 2020 Editorial 3300
2005 Delete a Segment brute force constructive algorithms data structures dp graphs sortings trees two pointers Statement E Codeforces Round 613 (Div. 2) {1285} PROGRAMMING Codeforces Round #613 (Div. 2) Editorial 2300
5511 Numbers on Tree constructive algorithms data structures dfs and similar graphs greedy trees Statement B Codeforces Round 612 (Div. 1) {1286} PROGRAMMING Codeforces Round #612 - Editorial 2000
2016 Prefix Enlightenment dfs and similar dsu graphs Statement C Codeforces Round 616 (Div. 1) {1290} PROGRAMMING 1750.0 Codeforces Round #616 Editorial 2400
954 Coffee Varieties (hard version) constructive algorithms graphs interactive Statement D Codeforces Round 616 (Div. 1) {1290} PROGRAMMING 2500.0 Codeforces Round #616 Editorial 2900
729 Coffee Varieties (easy version) graphs interactive Statement F Codeforces Round 616 (Div. 2) {1291} PROGRAMMING 3000.0 Codeforces Round #616 Editorial 2700
977 Chaotic V. dp graphs greedy math number theory trees Statement D Codeforces Round 614 (Div. 1) {1292} PROGRAMMING 1750.0 Codeforces Round #614 Editorial 2700
8228 String Coloring (easy version) constructive algorithms dp graphs greedy sortings Statement E1 Codeforces Round 617 (Div. 3) {1296} PROGRAMMING Codeforces Round #617 (Div. 3) Editorial 1800
530 Around the World bitmasks combinatorics dfs and similar dp graphs graphs math trees Statement D Codeforces Round 618 (Div. 1) {1299} PROGRAMMING 1750.0 Codeforces Round #618 Editorial 2900
4247 Time to Run constructive algorithms graphs implementation Statement D Codeforces Round 619 (Div. 2) {1301} PROGRAMMING 1750.0 Codeforces Round #619 (Div. 2) Editorial 1900
1417 Super Jaber dfs and similar graphs implementation shortest paths Statement F Codeforces Round 619 (Div. 2) {1301} PROGRAMMING 2500.0 Codeforces Round #619 (Div. 2) Editorial 2700
6694 Shortest and Longest LIS constructive algorithms graphs greedy two pointers Statement D Codeforces Round 620 (Div. 2) {1304} PROGRAMMING 1750.0 Codeforces Round #620 (Div. 2) Editorial 1800
5914 1-Trees and Queries data structures dfs and similar shortest paths trees Statement E Codeforces Round 620 (Div. 2) {1304} PROGRAMMING 2000.0 Codeforces Round #620 (Div. 2) Editorial 2000
5373 Kuroni and the Celebration constructive algorithms dfs and similar graphs interactive trees Statement D Ozon Tech Challenge 2020 (Div.1 + Div.2, Rated, T-shirts + prizes!) {1305} PROGRAMMING 1750.0 Ozon Tech Challenge 2020 Editorial 1900
1398 Kuroni and Antihype bitmasks dp dsu graphs Statement G Ozon Tech Challenge 2020 (Div.1 + Div.2, Rated, T-shirts + prizes!) {1305} PROGRAMMING 3250.0 Ozon Tech Challenge 2020 Editorial 3300
7276 Cow and Fields binary search data structures dfs and similar graphs greedy shortest paths sortings Statement D Codeforces Round 621 (Div. 1 + Div. 2) {1307} PROGRAMMING 2000.0 Codeforces Round #621 (Div. 1 + Div. 2) Editorial 1900
598 Cow and Exercise flows graphs shortest paths Statement G Codeforces Round 621 (Div. 1 + Div. 2) {1307} PROGRAMMING 3500.0 Codeforces Round #621 (Div. 1 + Div. 2) Editorial 3000
2059 Tourism brute force dp graphs probabilities Statement D VK Cup 2019-2020 - Elimination Round (Engine) {1310} PROGRAMMING 2250.0 VK Cup 2019-2020 - Elimination Round (Engine) and Codeforces Round #623 2300
3569 Nash Matrix constructive algorithms dfs and similar graphs implementation Statement D CodeCraft-20 (Div. 2) {1316} PROGRAMMING 1750.0 Codecraft-20 (Div.2) Editorial 2000
2721 Instant Noodles graphs hashing math number theory Statement C Codeforces Round 626 (Div. 1, based on Moscow Open Olympiad in Informatics) {1322} PROGRAMMING 1500.0 Codeforces Round #626 Editorial
13226 Maximum White Subtree dfs and similar dp graphs trees Statement F Codeforces Round 627 (Div. 3) {1324} PROGRAMMING Codeforces Round #627 (Div. 3) Editorial
2371 Ehab's Last Theorem constructive algorithms dfs and similar graphs greedy Statement F Codeforces Round 628 (Div. 2) {1325} PROGRAMMING 2750.0 74235 2600
2346 Ehab's REAL Number Theory Problem brute force dfs and similar graphs number theory shortest paths Statement E Codeforces Round 628 (Div. 2) {1325} PROGRAMMING 2500.0 74235 2700
19528 Princesses and Princes brute force graphs greedy Statement B Educational Codeforces Round 84 (Rated for Div. 2) {1327} PROGRAMMING Educational Codeforces Round 84 Editorial 1300
3558 Infinite Path brute force dfs and similar graphs math number theory Statement D Educational Codeforces Round 84 (Rated for Div. 2) {1327} PROGRAMMING Educational Codeforces Round 84 Editorial 2200
11883 Tree Queries dfs and similar graphs trees Statement E Codeforces Round 629 (Div. 3) {1328} PROGRAMMING 75246 2100
4138 Challenges in school №41 brute force constructive algorithms games graphs greedy implementation sortings Statement D Codeforces Round 632 (Div. 2) {1333} PROGRAMMING 1750.0 Codeforces Round #632 (Div. 2) editorial
3187 Divisor Paths combinatorics graphs greedy math number theory Statement E Educational Codeforces Round 85 (Rated for Div. 2) {1334} PROGRAMMING Educational Codeforces Round 85 Editorial
7765 Minimum Euler Cycle constructive algorithms graphs greedy implementation Statement D Educational Codeforces Round 85 (Rated for Div. 2) {1334} PROGRAMMING Educational Codeforces Round 85 Editorial
2423 Robots on a Grid data structures dfs and similar dsu graphs greedy matrices Statement F Codeforces Round 634 (Div. 3) {1335} PROGRAMMING 75993 2600
279 Journey data structures divide and conquer graphs trees Statement F Codeforces Round 635 (Div. 1) {1336} PROGRAMMING 3250.0 Codeforces Round #635 Editorial 3600
416 JYPnation graphs Statement E Codeforces Round 633 (Div. 1) {1338} PROGRAMMING 2750.0 Editorial
1073 Nastya and Time Machine constructive algorithms dfs and similar graphs trees Statement D Codeforces Round 637 (Div. 1) - Thanks, Ivan Belonogov! {1340} PROGRAMMING 1750.0 Codeforces Round #637 Editorial
101 Nastya and Bees graphs interactive probabilities Statement E Codeforces Round 637 (Div. 1) - Thanks, Ivan Belonogov! {1340} PROGRAMMING 2250.0 Codeforces Round #637 Editorial
2431 Nastya and Unexpected Guest graphs shortest paths Statement C Codeforces Round 637 (Div. 1) - Thanks, Ivan Belonogov! {1340} PROGRAMMING 1250.0 Codeforces Round #637 Editorial
5755 Weights Distributing brute force graphs greedy shortest paths sortings Statement E Codeforces Round 636 (Div. 3) {1343} PROGRAMMING 76352 2400
6359 Monopole Magnets constructive algorithms dfs and similar dsu graphs Statement B Codeforces Round 639 (Div. 1) {1344} PROGRAMMING 1000.0 Codeforces Round #639 Editorial 2000
1981 Quantifier Question dfs and similar dp graphs math Statement C Codeforces Round 639 (Div. 1) {1344} PROGRAMMING 1500.0 Codeforces Round #639 Editorial 2600
545 Constructing the Dungeon *special graphs greedy Statement D Kotlin Heroes: Episode 4 {1346} PROGRAMMING Kotlin Heroes: Episode 4 — Editorial 1600
415 Magic Tricks *special dp graphs Statement E Kotlin Heroes: Episode 4 {1346} PROGRAMMING Kotlin Heroes: Episode 4 — Editorial 1700
917 Phoenix and Memory data structures dfs and similar graphs greedy Statement F Codeforces Round 638 (Div. 2) {1348} PROGRAMMING 3000.0 Codeforces Round #638 (Div. 2) Editorial 2600
4831 Orac and Game of Life dfs and similar graphs implementation shortest paths Statement C Codeforces Round 641 (Div. 1) {1349} PROGRAMMING 1250.0 Codeforces Round #641 Editorial 2000
3780 Graph Coloring dfs and similar dp graphs Statement E Educational Codeforces Round 87 (Rated for Div. 2) {1354} PROGRAMMING 77593 2100
28104 Polygon dp graphs implementation shortest paths Statement E Codeforces Round 644 (Div. 3) {1360} PROGRAMMING Codeforces Round #644 (Div. 3) Editorial 1300
8863 Johnny and Contribution constructive algorithms graphs greedy sortings Statement A Codeforces Round 647 (Div. 1) - Thanks, Algo Muse! {1361} PROGRAMMING 500.0 Codeforces Round #647 Editorial 1700
1848 Johnny and Megan's Necklace binary search bitmasks constructive algorithms dfs and similar dsu graphs Statement C Codeforces Round 647 (Div. 1) - Thanks, Algo Muse! {1361} PROGRAMMING 2000.0 Codeforces Round #647 Editorial 2500
1002 James and the Chase dfs and similar graphs probabilities trees Statement E Codeforces Round 647 (Div. 1) - Thanks, Algo Muse! {1361} PROGRAMMING 3000.0 Codeforces Round #647 Editorial 3000
4997 Ehab's Last Corollary constructive algorithms data structures dfs and similar dp graphs implementation trees Statement D Codeforces Round 649 (Div. 2) {1364} PROGRAMMING 2000.0 Codeforces round #649 editorial 2100
20999 Solve The Maze constructive algorithms dfs and similar dsu graphs greedy implementation shortest paths Statement D Codeforces Round 648 (Div. 2) {1365} PROGRAMMING 1500.0 Editorial — Codeforces Round #648 1700
896 Jog Around The Graph binary search dp geometry graphs Statement F Educational Codeforces Round 89 (Rated for Div. 2) {1366} PROGRAMMING Educational Codeforces Round 89 Editorial
678 Shifting Dominoes data structures geometry graphs trees Statement G Codeforces Global Round 8 {1368} PROGRAMMING 3500.0 Codeforces Global Round 8: editorial
9248 TediousLee dp graphs greedy math matrices trees Statement D Codeforces Round 652 (Div. 2) {1369} PROGRAMMING 2000.0 Codeforces Round #652 (Div. 2) Editorial 1900
2461 DeadLee constructive algorithms data structures graphs greedy implementation sortings Statement E Codeforces Round 652 (Div. 2) {1369} PROGRAMMING 2500.0 Codeforces Round #652 (Div. 2) Editorial 2400
1803 The Hidden Pair (Easy Version) binary search dfs and similar graphs interactive shortest paths trees Statement F1 Codeforces Round 651 (Div. 2) {1370} PROGRAMMING 2000.0 Editorial — Codeforces Round #651
1683 The Hidden Pair (Hard Version) binary search dfs and similar graphs interactive shortest paths trees Statement F2 Codeforces Round 651 (Div. 2) {1370} PROGRAMMING 1250.0 Editorial — Codeforces Round #651
1885 Network Coverage binary search data structures flows graph matchings graphs greedy Statement F Educational Codeforces Round 90 (Rated for Div. 2) {1373} PROGRAMMING Educational Codeforces Round 90 Editorial
764 Rearrange brute force constructive algorithms graphs greedy sortings Statement D Codeforces Round 659 (Div. 1) {1383} PROGRAMMING 1750.0 Codeforces Round #659 Editorial
667 String Transformation 2 dp graphs trees Statement C Codeforces Round 659 (Div. 1) {1383} PROGRAMMING 1750.0 Codeforces Round #659 Editorial
11288 String Transformation 1 dsu graphs greedy sortings strings trees Statement A Codeforces Round 659 (Div. 1) {1383} PROGRAMMING 1000.0 Codeforces Round #659 Editorial
438 Special Edges flows graphs Statement F Codeforces Round 659 (Div. 1) {1383} PROGRAMMING 2250.0 Codeforces Round #659 Editorial
9214 Directing Edges dfs and similar graphs Statement E Codeforces Round 656 (Div. 3) {1385} PROGRAMMING Codeforces Round #656 (Div. 3) Editorial 2000
1841 Columns Swaps 2-sat dfs and similar dsu graphs implementation Statement G Codeforces Round 656 (Div. 3) {1385} PROGRAMMING Codeforces Round #656 (Div. 3) Editorial 2300
6919 Captain Flint and Treasure data structures dfs and similar dp graphs greedy implementation trees Statement D Codeforces Round 660 (Div. 2) {1388} PROGRAMMING 2000.0 Codeforces Round #660 Editorial 2000
496 Directing Edges dfs and similar dp graphs greedy trees Statement G Educational Codeforces Round 92 (Rated for Div. 2) {1389} PROGRAMMING 80809
16059 Cyclic Permutations combinatorics graphs math Statement C Codeforces Round 663 (Div. 2) {1391} PROGRAMMING 1250.0 Codeforces Round #663 (Div. 2) Editorial
1937 Pairs of Pairs constructive algorithms dfs and similar graphs trees Statement E Codeforces Round 663 (Div. 2) {1391} PROGRAMMING 2750.0 Codeforces Round #663 (Div. 2) Editorial
233 Kevin and Grid fft graphs math Statement I Codeforces Global Round 10 {1392} PROGRAMMING 4000.0 Codeforces Global Round 10 — Editorial
4195 Rarity and New Dress data structures dp graphs implementation Statement D Codeforces Round 662 (Div. 2) {1393} PROGRAMMING 1750.0 Codeforces Round #662 Editorial
2148 Boboniu Walks on Graph brute force graphs hashing implementation meet-in-the-middle Statement B Codeforces Round 664 (Div. 1) {1394} PROGRAMMING 1000.0 Codeforces Round #664 Editorial 2300
236 Star Trek *special combinatorics dfs and similar dp games graphs matrices trees Statement C Central-European Olympiad in Informatics, CEOI 2020, Day 1 (IOI, Unofficial Mirror Contest, Unrated) {1402} PROGRAMMING Editorial
313 The Potion of Great Power *special binary search data structures graphs interactive sortings two pointers Statement A Central-European Olympiad in Informatics, CEOI 2020, Day 2 (IOI, Unofficial Mirror Contest, Unrated) {1403} PROGRAMMING CEOI 2020 Online Mirror — Day 2 Tutorial
395 Spring cleaning *special data structures dfs and similar graphs trees Statement B Central-European Olympiad in Informatics, CEOI 2020, Day 2 (IOI, Unofficial Mirror Contest, Unrated) {1403} PROGRAMMING CEOI 2020 Online Mirror — Day 2 Tutorial
1598 Bricks flows graph matchings graphs Statement E Codeforces Round 668 (Div. 1) {1404} PROGRAMMING 3000.0 Codeforces Round #668 Editorial
11821 Link Cut Centroids constructive algorithms dfs and similar graphs trees Statement C Codeforces Round 670 (Div. 2) {1406} PROGRAMMING 1500.0 Codeforces Round #670 (Div. 2) Editorial
1911 Egor in the Republic of Dagestan constructive algorithms dfs and similar dp graphs greedy shortest paths Statement E Codeforces Round 669 (Div. 2) {1407} PROGRAMMING 2500.0 Codeforces Round #669 Editorial
1342 Clusterization Counting combinatorics dp dsu fft graphs Statement G Grakn Forces 2020 {1408} PROGRAMMING 3000.0 Grakn Forces -- Editorial
2196 Avoid Rainbow Cycles dsu graphs greedy sortings Statement E Grakn Forces 2020 {1408} PROGRAMMING 2500.0 Grakn Forces -- Editorial
8613 Peaceful Rooks dfs and similar dsu graphs Statement C Technocup 2021 - Elimination Round 3 {1411} PROGRAMMING 1750.0 Technocup 2021 Elimination Round 3 and Round #692 (Div. 1 + Div. 2) Editorial
2733 Graph and Queries data structures dfs and similar dsu graphs trees Statement D Codeforces Round 673 (Div. 1) {1416} PROGRAMMING 2000.0 Codeforces Round #673 Editorial 2600
565 Rain of Fire binary search dfs and similar dsu graphs implementation sortings Statement F Codeforces Round 671 (Div. 2) {1419} PROGRAMMING 3000.0 Codeforces Round #671 Editorial
3207 Returning Home data structures graphs implementation shortest paths sortings Statement D Codeforces Round 675 (Div. 2) {1422} PROGRAMMING 1500.0 Codeforces Round #675 (Div. 2) Editorial
2123 Valuable Paper binary search flows graph matchings graphs Statement B Bubble Cup 13 - Finals [Online Mirror, unrated, Div. 1] {1423} PROGRAMMING FinalsEditorial2020.pdf
629 Virus data structures dsu graphs Statement H Bubble Cup 13 - Finals [Online Mirror, unrated, Div. 1] {1423} PROGRAMMING FinalsEditorial2020.pdf
214 Dušan's Railway graphs trees Statement C Bubble Cup 13 - Finals [Online Mirror, unrated, Div. 1] {1423} PROGRAMMING FinalsEditorial2020.pdf
617 Ancient Language graphs sortings Statement M Bubble Cup 13 - Finals [Online Mirror, unrated, Div. 2] {1424} PROGRAMMING
499 One Billion Shades of Grey flows graphs Statement G Codeforces Global Round 11 {1427} PROGRAMMING 2250.0 Editorial of Global Round 11 3300
15219 Belted Rooms graphs implementation Statement B Codeforces Raif Round 1 (Div. 1 + Div. 2) {1428} PROGRAMMING 1000.0 Codeforces Raif Round 1 Editorial
5161 Reducing Delivery Cost dfs and similar graphs shortest paths Statement G Codeforces Round 677 (Div. 3) {1433} PROGRAMMING Codeforces Round #677 (Div. 3) Editorial
14444 Minimal Height Tree graphs greedy shortest paths trees Statement D Educational Codeforces Round 97 (Rated for Div. 2) {1437} PROGRAMMING 84149
1655 Graph Subset Problem brute force data structures graphs Statement B Codeforces Round 684 (Div. 1) {1439} PROGRAMMING 1250.0 Codeforces Round #684[Div1 and Div2] Editorial
5407 Binary Table (Hard Version) constructive algorithms graphs greedy implementation Statement A2 Codeforces Round 684 (Div. 1) {1439} PROGRAMMING 500.0 Codeforces Round #684[Div1 and Div2] Editorial
2015 Graph Transpositions graphs greedy shortest paths Statement C Codeforces Round 681 (Div. 1, based on VK Cup 2019-2020 - Final) {1442} PROGRAMMING 1500.0 84298
1870 Team-Building 2-sat dfs and similar dsu graphs Statement C Codeforces Round 680 (Div. 1, based on Moscow Team Olympiad) {1444} PROGRAMMING 1500.0 Codeforces Round #680 Editorial
1456 Capitalism constructive algorithms dfs and similar graphs shortest paths Statement E Codeforces Global Round 12 {1450} PROGRAMMING 2500.0 Codeforces Global Round 12 Editorial
5818 Rating Compression data structures implementation two pointers Statement D Codeforces Global Round 12 {1450} PROGRAMMING 1750.0 Codeforces Global Round 12 Editorial
6677 Number of Simple Paths combinatorics data structures dfs and similar dsu graphs trees Statement E Codeforces Round 686 (Div. 3) {1454} PROGRAMMING Codeforces Round #686 (Div. 3) Editorial
1586 Flip and Reverse graphs greedy Statement D Codeforces Round 691 (Div. 1) {1458} PROGRAMMING 2000.0 Codeforces Round #691 Editorial (finished)
2216 Water Level brute force graphs greedy implementation math Statement E Codeforces Round 689 (Div. 2, based on Zed Code Competition) {1461} PROGRAMMING 2250.0 Codeforces Round #689 (Div. 2). Editorial
1736 Plan of Lectures dfs and similar dsu graphs Statement E Educational Codeforces Round 100 (Rated for Div. 2) {1463} PROGRAMMING Educational Codeforces Round 100 Editorial
3063 Euclid's nightmare dfs and similar dsu graphs math Statement F Good Bye 2020 {1466} PROGRAMMING 1750.0 Good Bye 2020 Editorial
490 Finding satisfactory solutions dp graphs greedy math Statement H Good Bye 2020 {1466} PROGRAMMING 3500.0 Good Bye 2020 Editorial
14831 13th Labour of Heracles greedy trees Statement D Good Bye 2020 {1466} PROGRAMMING 1000.0 Good Bye 2020 Editorial
5984 Road Reform dsu graphs greedy Statement J 2020-2021 ICPC, NERC, Southern and Volga Russian Regional Contest (Online Mirror, ICPC Rules) {1468} PROGRAMMING 2020-2021 ICPC, NERC, Southern and Volga Russian Regional Contest (Online Mirror, ICPC Rules) — Tutorials
6791 Strange Definition bitmasks brute force data structures graphs math number theory Statement B Codeforces Round 694 (Div. 1) {1470} PROGRAMMING 750.0 86464
4197 Strange Housing constructive algorithms dfs and similar dsu graph matchings graphs Statement D Codeforces Round 694 (Div. 1) {1470} PROGRAMMING 1500.0 86464
5691 Moving to the Capital dfs and similar dp graphs shortest paths Statement G Codeforces Round 693 (Div. 3) {1472} PROGRAMMING Codeforces Round #693 (Div. 3) Editorial
35554 Long Jumps dp graphs Statement C Codeforces Round 693 (Div. 3) {1472} PROGRAMMING Codeforces Round #693 (Div. 3) Editorial
4786 Minimum Path dp graphs implementation shortest paths Statement E Educational Codeforces Round 102 (Rated for Div. 2) {1473} PROGRAMMING Educational Codeforces Round 102 Editorial
27536 Ball in Berland combinatorics dfs and similar graphs hashing math Statement C Codeforces Round 697 (Div. 3) {1475} PROGRAMMING Codeforces Round #697 (Div. 3) Editorial
2763 Pattern Matching bitmasks data structures dfs and similar graphs sortings strings Statement E Educational Codeforces Round 103 (Rated for Div. 2) {1476} PROGRAMMING 87356
12326 Longest Simple Cycle constructive algorithms dp graphs greedy Statement C Educational Codeforces Round 103 (Rated for Div. 2) {1476} PROGRAMMING 87356
792 Nezzar and Hidden Permutations constructive algorithms dfs and similar graphs Statement D Codeforces Round 698 (Div. 1) {1477} PROGRAMMING 2250.0 87294 2800
4886 AB Graph constructive algorithms graphs greedy implementation strings Statement D Codeforces Round 699 (Div. 2) {1481} PROGRAMMING 2000.0 Codeforces Round #699 (Div. 2) Editorial
1765 Useful Edges graphs shortest paths Statement F Технокубок 2021 - Финал {1482} PROGRAMMING 2750.0 Technocup 2021: Final Round and Codeforces Round #709 — tutorial
497 Useful Edges dp graphs shortest paths Statement D Codeforces Round 709 (Div. 1, based on Technocup 2021 Final Round) {1483} PROGRAMMING 1750.0 Technocup 2021: Final Round and Codeforces Round #709 — tutorial
3382 Paired Payment binary search constructive algorithms dp graphs shortest paths Statement E Codeforces Round 703 (Div. 2) {1486} PROGRAMMING 2250.0 Codeforces Round #703 (Div. 2) Editorial
15443 Minimum Ties brute force constructive algorithms dfs and similar graphs greedy implementation math Statement C Educational Codeforces Round 104 (Rated for Div. 2) {1487} PROGRAMMING 87873
8411 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
2067 A-Z Graph constructive algorithms data structures graphs Statement E Educational Codeforces Round 105 (Rated for Div. 2) {1494} PROGRAMMING Educational Codeforces Round 105 Editorial
497 Delete The Edges graphs Statement F Educational Codeforces Round 105 (Rated for Div. 2) {1494} PROGRAMMING Educational Codeforces Round 105 Editorial
1541 BFS Trees combinatorics dfs and similar graphs math shortest paths trees Statement D Codeforces Round 706 (Div. 1) {1495} PROGRAMMING 2000.0 Codeforces Round #706 Editorial
423 Squares constructive algorithms data structures graphs trees Statement F Codeforces Round 706 (Div. 1) {1495} PROGRAMMING 3250.0 Codeforces Round #706 Editorial
2909 Garden of the Sun constructive algorithms graphs Statement C Codeforces Round 706 (Div. 1) {1495} PROGRAMMING 1500.0 Codeforces Round #706 Editorial
1743 Genius bitmasks dp graphs Statement D Codeforces Round 708 (Div. 2) {1497} PROGRAMMING 1750.0 Codeforces Round #708 Editorial 2500
2144 Two Houses brute force combinatorics graphs interactive probabilities sortings Statement E CodeCraft-21 and Codeforces Round 711 (Div. 2) {1498} PROGRAMMING 2500.0 CodeCraft-21 and Codeforces Round #711 (Div. 2) Editorial
239 Graph Coloring data structures graphs interactive Statement G Educational Codeforces Round 106 (Rated for Div. 2) {1499} PROGRAMMING Educational Codeforces Round 106 Editorial
232 Balance the Cards constructive algorithms data structures divide and conquer geometry graphs implementation Statement F Codeforces Round 712 (Div. 1) {1503} PROGRAMMING 4000.0 T 3500
155 Optimal Encoding brute force data structures Statement F Codeforces Round 715 (Div. 1) {1508} PROGRAMMING 4000.0 Codeforces Round #715 Editorial
1736 Complete the MST data structures dfs and similar dsu graphs greedy math Statement C Codeforces Round 715 (Div. 1) {1508} PROGRAMMING 1500.0 Codeforces Round #715 Editorial
5995 King's Task brute force graphs implementation Statement K 2020-2021 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1510} PROGRAMMING nerc-2020-offline-tutorial.pdf
240 Cactus Not Enough dfs and similar graphs Statement C 2020-2021 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1510} PROGRAMMING nerc-2020-offline-tutorial.pdf
12487 Min Cost String brute force constructive algorithms dfs and similar graphs greedy Statement D Educational Codeforces Round 107 (Rated for Div. 2) {1511} PROGRAMMING 89634
6527 GCD and MST constructive algorithms data structures dsu graphs implementation number theory sortings Statement D Divide by Zero 2021 and Codeforces Round 714 (Div. 2) {1513} PROGRAMMING 2000.0 Divide by Zero 2021 and Codeforces Round #714 (Div. 2) Editorial
706 Baby Ehab's Hyper Apartment binary search graphs interactive sortings Statement E Codeforces Round 716 (Div. 2) {1514} PROGRAMMING 2500.0 Codeforces round #716 editorial
2085 Phoenix and Earthquake constructive algorithms dfs and similar dsu graphs greedy trees Statement F Codeforces Global Round 14 {1515} PROGRAMMING 3250.0 Editorial
1365 Phoenix and Odometers dfs and similar graphs math number theory Statement G Codeforces Global Round 14 {1515} PROGRAMMING 3500.0 Editorial
5226 Cut binary search data structures graphs number theory Statement D Codeforces Round 717 (Div. 2) {1516} PROGRAMMING 2000.0 Codeforces round #717 editorial