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 >

Solved
Name
Tags
Solutions
Index
Contest
Type
Points
Tutorial
Rating Level
1158 Interestring graph and Apples dfs and similar dsu graphs Statement E Codeforces Beta Round 9 (Div. 2 Only) {9} PROGRAMMING Codeforces Beta Round #9 tutorial 2300
5265 Two Paths dfs and similar dp graphs shortest paths trees two pointers Statement D Codeforces Beta Round 14 (Div. 2) {14} PROGRAMMING Codeforces Beta Round #14 tutorial 2100
2065 Scheme dfs and similar graphs trees Statement E Codeforces Beta Round 22 (Div. 2 Only) {22} PROGRAMMING Codeforces Beta Round #22 Tutorial 2400
3079 Ring Road 2 2-sat dfs and similar dsu graphs Statement D Codeforces Beta Round 27 (Codeforces format, Div. 2) {27} PROGRAMMING Solution of ABC @ Round#27 2300
5501 pSort dfs and similar dsu graphs Statement B Codeforces Beta Round 28 (Codeforces format) {28} PROGRAMMING Codeforces Beta Round #28 (Разбор задач A и B) 1600
6428 Mail Stamps data structures dfs and similar graphs implementation Statement C Codeforces Beta Round 29 (Div. 2, Codeforces format) {29} PROGRAMMING My solution @ Round #29, [without Problem E] 1700
2931 Ant on the Tree constructive algorithms dfs and similar trees Statement D Codeforces Beta Round 29 (Div. 2, Codeforces format) {29} PROGRAMMING My solution @ Round #29, [without Problem E] 1900
6461 Road Map dfs and similar graphs Statement D Codeforces Beta Round 34 (Div. 2) {34} PROGRAMMING Codeforces Beta Round #34 (Div. 2) Разбор 1700
243 Baldman and the military dfs and similar graphs trees Statement E Codeforces Beta Round 41 {42} PROGRAMMING Solution of task е, Codeforces beta round #41 2700
811 Caterpillar dfs and similar dp graphs trees Statement F Codeforces Beta Round 48 {51} PROGRAMMING 2600
7613 Eternal Victory dfs and similar graphs greedy shortest paths trees Statement D Codeforces Beta Round 57 (Div. 2) {61} PROGRAMMING Round 57-A 1900
448 Wormhouse dfs and similar graphs Statement D Codeforces Beta Round 58 {62} PROGRAMMING Codeforces Beta Round #58 tutorial 2300
105 Harry Potter and Moving Staircases dfs and similar implementation Statement E Codeforces Beta Round 60 {65} PROGRAMMING Codeforces Beta Round #60: tutorial 2900
754 FreeDiv dfs and similar graphs greedy Statement D Codeforces Beta Round 66 {73} PROGRAMMING Codeforces Beta Round #66 editorial: Problems A, B, C 2200
1411 Chessboard Billiard dfs and similar dsu graphs number theory Statement C Codeforces Beta Round 68 {74} PROGRAMMING Solutions for Codeforces Beta Round #68 2100
398 Pairs dfs and similar dp dsu graphs implementation trees Statement E Yandex.Algorithm Open 2011: Qualification 1 {81} PROGRAMMING 2600
1051 Beautiful Road dfs and similar dp dsu graphs implementation sortings trees Statement D Codeforces Beta Round 73 (Div. 1 Only) {87} PROGRAMMING CodeForces Beta Round #73 div. 1 analysis (particulary with div. 2) 2300
428 Leaders dfs and similar dsu graphs trees Statement E Yandex.Algorithm 2011: Finals {97} PROGRAMMING Финал Яндекс.Алгоритм: разбор A-B 2800
10545 Cthulhu dfs and similar dsu graphs Statement B Codeforces Beta Round 80 (Div. 1 Only) {103} PROGRAMMING Tutorial 1600
5889 Dorm Water Supply dfs and similar graphs Statement A Codeforces Beta Round 83 (Div. 1 Only) {107} PROGRAMMING Tutorial 1500
43060 Party dfs and similar graphs trees Statement A Codeforces Beta Round 87 (Div. 1 Only) {115} PROGRAMMING Tutorial 1300
2960 Cycle dfs and similar graphs Statement C Codeforces Beta Round 88 {117} PROGRAMMING Неофициальный разбор Codeforces Beta Round #88 2000
8345 Bertown roads dfs and similar graphs Statement E Codeforces Beta Round 89 (Div. 2) {118} PROGRAMMING Разбор задач. Codeforces beta round #89. 2100
13835 Students and Shoelaces brute force dfs and similar graphs implementation Statement B Codeforces Beta Round 94 (Div. 2 Only) {129} PROGRAMMING Problem D of Beta Round 94 1200
5252 Subway dfs and similar graphs Statement D Codeforces Beta Round 95 (Div. 2) {131} PROGRAMMING Some ideas for Round #95 (Div 2) 1600
4934 Missile Silos data structures dfs and similar graphs shortest paths Statement D Codeforces Round 103 (Div. 2) {144} PROGRAMMING Codeforces Round #103 (Div. 2) Разбор Задач. 1900
5292 Quantity of Strings combinatorics dfs and similar graphs math Statement B Codeforces Round 107 (Div. 1) {150} PROGRAMMING Tutorial 1800
3337 Edges in MST dfs and similar dsu graphs sortings Statement D Codeforces Round 111 (Div. 2) {160} PROGRAMMING Codeforces Round #111 (Div. 2) Разбор Задач 2500
1190 Variable, or There and Back Again dfs and similar graphs Statement A VK Cup 2012 Round 3 {164} PROGRAMMING VK Cup 2012 Round 3 — Разбор 2000
666 Wizards and Bets dfs and similar graphs math matrices Statement E Codeforces Round 114 (Div. 1) {167} PROGRAMMING Codeforces Round #114 — Tutorial 2900
3000 Party brute force dfs and similar dsu graphs Statement C2 ABBYY Cup 2.0 - Easy {177} PROGRAMMING 1500
2987 Party dfs and similar dsu graphs Statement C1 ABBYY Cup 2.0 - Easy {177} PROGRAMMING 1500
2373 Infinite Maze dfs and similar graphs Statement B Codeforces Round 124 (Div. 1) {196} PROGRAMMING Разбор задач 1900
24210 Ice Skating brute force dfs and similar dsu graphs Statement A Codeforces Round 134 (Div. 1) {217} PROGRAMMING Editorial for Codeforces Round #134 1400
12413 Choosing Capital for Treeland dfs and similar dp graphs trees Statement D Codeforces Round 135 (Div. 2) {219} PROGRAMMING User editorial for Codeforces Round #135 (Div. 2) 1900
1047 Snake bitmasks dfs and similar graphs implementation Statement D Codeforces Round 139 (Div. 2) {225} PROGRAMMING Tutorial 2300
2809 The Road to Berland is Paved With Good Intentions 2-sat dfs and similar dsu graphs Statement E Codeforces Round 141 (Div. 2) {228} PROGRAMMING Codeforces Round #141 (Div. 2) Tutorial 2000
2310 Cactus data structures dfs and similar dp graphs trees Statement E Codeforces Round 143 (Div. 2) {231} PROGRAMMING Tutorial Codeforces Round #143 2400
617 T-decomposition dfs and similar graphs greedy trees Statement D Codeforces Round 147 (Div. 2) {237} PROGRAMMING Codeforces Round #147 (Div. 2) Разбор Задач 2200
428 Road Repairs dfs and similar graphs greedy Statement E Codeforces Round 145 (Div. 1, ACM-ICPC Rules) {240} PROGRAMMING 2800
10849 King's Path dfs and similar graphs hashing shortest paths Statement C Codeforces Round 149 (Div. 2) {242} PROGRAMMING Codeforces Round #149 (Div. 2) Tutorial 1800
2026 Dispute dfs and similar graphs greedy Statement D Codeforces Round 149 (Div. 2) {242} PROGRAMMING Codeforces Round #149 (Div. 2) Tutorial 2100
10269 Colorful Graph brute force dfs and similar graphs Statement D Codeforces Round 151 (Div. 2) {246} PROGRAMMING Codeforces Round #151 (Div. 2) Tutorial 1700
2901 Text Editor data structures dfs and similar graphs greedy shortest paths Statement C Codeforces Round 154 (Div. 2) {253} PROGRAMMING Codeforces Round #154 (Div. 2) — tutorial 1600
645 Rats brute force dfs and similar graphs implementation shortest paths Statement D Codeforces Round 155 (Div. 2) {254} PROGRAMMING Codeforces Round #155 (Div. 2) — tutorial 2600
4468 Cycle in Graph dfs and similar graphs Statement D Codeforces Round 161 (Div. 2) {263} PROGRAMMING Codeforces Round #161 Tutorial 1800
752 Dominoes dfs and similar graphs Statement B Codeforces Testing Round 5 {267} PROGRAMMING 1900
1151 Lovely Matrix dfs and similar graphs greedy sortings Statement D Codeforces Round 168 (Div. 1) {274} PROGRAMMING Codeforces Round #168 Editorial 2100
3926 Cow Program dfs and similar dp graphs Statement B Codeforces Round 174 (Div. 1) {283} PROGRAMMING Editorial for Codeforces #174 1900
153 Greedy Petya *special dfs and similar graphs greedy Statement F April Fools Day Contest 2013 {290} PROGRAMMING April Fools Day Contest 2013: editorial 2800
7127 Coach brute force dfs and similar graphs Statement B Codeforces Round 181 (Div. 2) {300} PROGRAMMING English Tutorial 1500
546 Balance constructive algorithms dfs and similar graphs trees Statement C Codeforces Round 188 (Div. 1) {317} PROGRAMMING Analysis 2700
7768 Ping-Pong (Easy Version) dfs and similar graphs Statement B Codeforces Round 189 (Div. 2) {320} PROGRAMMING Codeforces Round #189 — Editorial 1500
446 Monsters and Diamonds dfs and similar graphs shortest paths Statement C MemSQL start[c]up Round 1 {325} PROGRAMMING 2500
940 The Red Button combinatorics dfs and similar dsu graphs greedy Statement E MemSQL start[c]up Round 1 {325} PROGRAMMING Editorial 2700
2490 Block Tower constructive algorithms dfs and similar graphs Statement D Codeforces Round 191 (Div. 2) {327} PROGRAMMING Codeforces Round #191 — Tutorial 2000
8750 Xenia and Weights constructive algorithms dfs and similar dp graphs greedy shortest paths Statement C Codeforces Round 197 (Div. 2) {339} PROGRAMMING Codeforces Round #197 — Tutorial 1700
6811 Water Tree data structures dfs and similar graphs trees Statement D Codeforces Round 200 (Div. 1) {343} PROGRAMMING Codeforces Round #200 Tutorial 2100
910 Pumping Stations brute force dfs and similar divide and conquer flows graphs greedy trees Statement E Codeforces Round 200 (Div. 1) {343} PROGRAMMING Codeforces Round #200 Tutorial 2800
83 Chain Letter *special dfs and similar graphs Statement D Friday the 13th, Programmers Day {345} PROGRAMMING 2300
857 Wrong Floyd brute force constructive algorithms dfs and similar graphs Statement E Codeforces Round 203 (Div. 2) {350} PROGRAMMING Editorial Codeforces Round #203 (Div. 2) 2200
1018 Fools and Foolproof Roads data structures dfs and similar dsu graphs greedy Statement D Codeforces Round 212 (Div. 2) {362} PROGRAMMING Codeforces Round #212 (Div. 2). Tutorial. Part 1. 2500
12002 Valera and Elections dfs and similar graphs trees Statement C Codeforces Round 216 (Div. 2) {369} PROGRAMMING Editorial Codeforces Round #216 (Div. 2) 1700
1283 Valera and Fools dfs and similar dp graphs shortest paths Statement D Codeforces Round 216 (Div. 2) {369} PROGRAMMING Editorial Codeforces Round #216 (Div. 2) 2300
3005 Inna and Dima dfs and similar dp graphs implementation Statement C Codeforces Round 220 (Div. 2) {374} PROGRAMMING Codeforces Round #220 (Div. 2) разбор 2000
726 Ksenia and Pawns dfs and similar graphs implementation trees Statement D Codeforces Round 224 (Div. 2) {382} PROGRAMMING Codeforces Round #224 (Div. 2) Editorial 2300
5780 Restore Graph dfs and similar graphs sortings Statement C Codeforces Round 237 (Div. 2) {404} PROGRAMMING Codeforces Round #237 (Div. 2) Editorial 1800
1598 Graph Cutting dfs and similar graphs Statement E Codeforces Round 238 (Div. 2) {405} PROGRAMMING Codeforces Round #238 Tutorial 2400
16788 Checkposts dfs and similar graphs two pointers Statement C Codeforces Round 244 (Div. 2) {427} PROGRAMMING Codeforces Round #244 (Div. 2) Editorial 1700
1739 Little Pony and Summer Sun Celebration constructive algorithms dfs and similar graphs Statement C Codeforces Round 259 (Div. 1) {453} PROGRAMMING Codeforces Round #259 Editorial 2800
7273 Gargari and Permutations dfs and similar dp graphs implementation Statement D Codeforces Round 264 (Div. 2) {463} PROGRAMMING CF 264 Div 2 Tutorial 2000
2611 Information Graph dfs and similar dsu graphs trees Statement E Codeforces Round 266 (Div. 2) {466} PROGRAMMING Editorial Codeforces Round #266 (Div. 2) 2400
2023 Fedor and Essay dfs and similar dp graphs hashing strings Statement D Codeforces Round 267 (Div. 2) {467} PROGRAMMING 2100
9228 Strongly Connected City brute force dfs and similar graphs implementation Statement B Bayan 2015 Contest Warm Up {475} PROGRAMMING Bayan 2015 Contest Warm Up Editorial 1400
2822 Tourists data structures dfs and similar graphs trees Statement E Codeforces Round 278 (Div. 1) {487} PROGRAMMING Tutorial 3100
7036 Unbearable Controversy of Being brute force combinatorics dfs and similar graphs Statement D Codeforces Round 277.5 (Div. 2) {489} PROGRAMMING Codeforces Round #277.5 (Div. 2) Editorial [A-D for now] 1700
62443 New Year Transportation dfs and similar graphs implementation Statement A Good Bye 2014 {500} PROGRAMMING Tutorial 2 1100
9584 New Year Permutation dfs and similar dsu graphs greedy math sortings Statement B Good Bye 2014 {500} PROGRAMMING Tutorial 2 1600
3274 New Year Santa Network combinatorics dfs and similar graphs trees Statement D Good Bye 2014 {500} PROGRAMMING Tutorial 2 1900
14869 Mr. Kitayuta's Colorful Graph dfs and similar dp dsu graphs Statement B Codeforces Round 286 (Div. 2) {505} PROGRAMMING Tutorial 1500
2525 Mr. Kitayuta's Colorful Graph brute force dfs and similar dsu graphs Statement D Codeforces Round 286 (Div. 1) {506} PROGRAMMING Editorial 2300
3237 Breaking Good dfs and similar dp graphs shortest paths Statement E Codeforces Round 287 (Div. 2) {507} PROGRAMMING 2200
4200 Tanya and Password dfs and similar graphs Statement D Codeforces Round 288 (Div. 2) {508} PROGRAMMING 16048 2900
21962 Fox And Names dfs and similar graphs sortings Statement C Codeforces Round 290 (Div. 2) {510} PROGRAMMING Codeforces Round #290 Editorial 1800
61809 Two Buttons dfs and similar graphs greedy implementation math shortest paths Statement B Codeforces Round 295 (Div. 2) {520} PROGRAMMING Codeforces Round #295 Editorial (now with bonuses!) 1400
1192 Cycling City dfs and similar graphs Statement E Codeforces Round 295 (Div. 1) {521} PROGRAMMING Codeforces Round #295 Editorial (now with bonuses!) 2800
18755 Reposts *special dfs and similar dp graphs trees Statement A VK Cup 2015 - Qualification Round 1 {522} PROGRAMMING Разбор задач VK Cup 2015 — Квалификация 1 1700
2186 Data Center Drama dfs and similar graphs Statement E Codeforces Round 296 (Div. 2) {527} PROGRAMMING Codeforces Round #296 Editorial 2600
2683 Work Group dfs and similar dp graphs strings trees Statement B VK Cup 2015 - Round 2 (unofficial online mirror, Div. 1 only) {533} PROGRAMMING 2000
3108 Mike and Fish constructive algorithms dfs and similar graphs Statement D Codeforces Round 305 (Div. 1) {547} PROGRAMMING Codeforces Round #305 Editorial 2500
1580 Looksery Party constructive algorithms dfs and similar graphs greedy Statement B Looksery Cup 2015 {549} PROGRAMMING Looksery Cup 2015 Editorial 2300
1961 Love Triangles dfs and similar dsu graphs Statement C Codeforces Round 309 (Div. 1) {553} PROGRAMMING Codeforces Round #309 Editorial 2300
2946 Case of Computer Network dfs and similar graphs trees Statement E Codeforces Round 310 (Div. 1) {555} PROGRAMMING Codeforces Round #310 Editorial 2800
2373 Vitaly and Cycle combinatorics dfs and similar graphs math Statement D Codeforces Round 311 (Div. 2) {557} PROGRAMMING Codeforces Round #311 (Div.2) Editorial 2300
2219 President and Roads dfs and similar graphs hashing shortest paths Statement E Codeforces Round #Pi (Div. 2) {567} PROGRAMMING Editorial Codeforces Round #Pi 2600
8973 Tree Requests binary search bitmasks constructive algorithms dfs and similar graphs trees Statement D Codeforces Round 316 (Div. 2) {570} PROGRAMMING Codeforces Round #316 Editorial 2400
718 CNF 2 constructive algorithms dfs and similar graphs greedy Statement C Codeforces Round 317 [AimFund Thanks-Round] (Div. 1) {571} PROGRAMMING Codeforces Round #317 [AimFund Thanks-Round] Editorial 2600
8315 Bear and Three Musketeers brute force dfs and similar graphs hashing Statement B Codeforces Round 318 [RussianCodeCup Thanks-Round] (Div. 2) {574} PROGRAMMING Codeforces Round #318 [RussianCodeCup Thanks-Round] Editorial 1500
1237 Bribes dfs and similar graphs trees Statement B Bubble Cup 8 - Finals [Online Mirror] {575} PROGRAMMING Bubble Cup finals 2015 Results and Editorial 2300
55100 Kefa and Park dfs and similar graphs trees Statement C Codeforces Round 321 (Div. 2) {580} PROGRAMMING Codeforces Round #321 Editorial 1500
3807 Phillip and Trains dfs and similar graphs shortest paths Statement B Codeforces Round 325 (Div. 1) {585} PROGRAMMING Разбор Codeforces Round #325 1800
3504 Three States dfs and similar graphs shortest paths Statement C Codeforces Round 327 (Div. 1) {590} PROGRAMMING Codeforces Round #327 problems analysis 2200
2953 Super M dfs and similar dp graphs trees Statement D Codeforces Round 328 (Div. 2) {592} PROGRAMMING Codeforces Round #328 Problem Analysis 2200
1421 Happy Tree Party data structures dfs and similar graphs math trees Statement D Codeforces Round 329 (Div. 2) {593} PROGRAMMING 2300
424 Wilbur and Strings dfs and similar dp graphs strings Statement E Codeforces Round 331 (Div. 2) {596} PROGRAMMING Codeforces Round #331 Editorial 2900
13020 Igor In the Museum dfs and similar graphs shortest paths Statement D Educational Codeforces Round 1 {598} PROGRAMMING Editorial 1700
10186 Minimum spanning tree for each edge data structures dfs and similar dsu graphs trees Statement E Educational Codeforces Round 3 {609} PROGRAMMING Editorial 2100
1998 Square Root of Permutation combinatorics constructive algorithms dfs and similar graphs math Statement E Educational Codeforces Round 4 {612} PROGRAMMING 22299 2200
4005 Kingdom and its Cities dfs and similar divide and conquer dp graphs sortings trees Statement D Codeforces Round 339 (Div. 1) {613} PROGRAMMING Tutorial 2800
979 Preorder Test binary search dfs and similar dp graphs greedy trees Statement D 8VC Venture Cup 2016 - Final Round {627} PROGRAMMING 8VC Venture Cup 2016 — Final Round Editorial 2600
251 Island Puzzle dfs and similar dsu graphs trees Statement F 8VC Venture Cup 2016 - Final Round {627} PROGRAMMING 8VC Venture Cup 2016 — Final Round Editorial 3400
1372 The Chocolate Spree dfs and similar dp graphs trees Statement F Manthan, Codefest 16 {633} PROGRAMMING Manthan, Codefest 16: Editorials 2500
2244 Road Improvement *special dfs and similar graphs greedy trees Statement C VK Cup 2016 - Qualification Round 2 {638} PROGRAMMING 2100
791 Three-dimensional Turtle Super Computer brute force dfs and similar graphs Statement D VK Cup 2016 - Qualification Round 2 {638} PROGRAMMING 2200
450 Bear and Chemistry data structures dfs and similar graphs trees Statement F VK Cup 2016 - Round 1 {639} PROGRAMMING Tutorial 3300
1342 Путь Робота dfs and similar graphs Statement C Технокубок 2016 - Отборочный Раунд 1 {648} PROGRAMMING 1500.0 Разбор задач Технокубок 2016 — Отборочный Раунд 1 1100
2172 Table Compression dfs and similar dp dsu graphs greedy Statement C Codeforces Round 345 (Div. 1) {650} PROGRAMMING Codeforces Round #345: editorial 2300
2840 Pursuit For Artifacts dfs and similar dsu graphs trees Statement E Educational Codeforces Round 10 {652} PROGRAMMING Editorial of Educational Codeforces Round 10 2300
1735 Bear and Forgotten Tree 2 dfs and similar dsu graphs trees Statement E IndiaHacks 2016 - Online Edition (Div. 1 + Div. 2) {653} PROGRAMMING IndiaHacks Finals 2016 — Editorial 2400
7983 New Reform data structures dfs and similar dsu graphs greedy Statement E Codeforces Round 346 (Div. 2) {659} PROGRAMMING Editorial for Codeforces Round #346 (Div. 2) 1600
1951 Polycarp and Hay dfs and similar dsu graphs greedy sortings Statement F Codeforces Round 346 (Div. 2) {659} PROGRAMMING Editorial for Codeforces Round #346 (Div. 2) 2100
1654 Graph Coloring dfs and similar graphs Statement B CROC 2016 - Final Round [Private, For Onsite Finalists Only] {662} PROGRAMMING Editorial for CROC 2016 Finals and Codeforces Round #347 2300
342 Bear and Chase brute force dfs and similar graphs implementation math probabilities Statement D Codeforces Round 356 (Div. 1) {679} PROGRAMMING Codeforces Round #356 — Editorial 2900
1874 Gifts by the List constructive algorithms dfs and similar graphs trees Statement D Codeforces Round 357 (Div. 2) {681} PROGRAMMING 45425 2100
8066 Alyona and the Tree dfs and similar dp graphs trees Statement C Codeforces Round 358 (Div. 2) {682} PROGRAMMING 45491 1700
16448 NP-Hard Problem dfs and similar graphs Statement A Codeforces Round 360 (Div. 1) {687} PROGRAMMING Codeforces Round #360 Editorial [+ Challenges!] 1500
436 TOF dfs and similar graphs Statement E Codeforces Round 360 (Div. 1) {687} PROGRAMMING Codeforces Round #360 Editorial [+ Challenges!] 2800
6577 Mike and Shortcuts dfs and similar graphs greedy shortest paths Statement B Codeforces Round 361 (Div. 2) {689} PROGRAMMING 45912 1600
4989 Brain Network (medium) dfs and similar graphs trees Statement C2 Helvetic Coding Contest 2016 online mirror (teams, unrated) {690} PROGRAMMING Tutotial 1600
6167 Fix a Tree constructive algorithms dfs and similar dsu graphs trees Statement B Codeforces Round 363 (Div. 1) {698} PROGRAMMING 46148 1700
4631 Connecting Universities dfs and similar dp graphs trees Statement B Codeforces Round 364 (Div. 1) {700} PROGRAMMING 46283 2100
1455 Break Up dfs and similar graphs Statement C Codeforces Round 364 (Div. 1) {700} PROGRAMMING 46283 2700
4334 Centroids data structures dfs and similar dp graphs greedy trees Statement C AIM Tech Round 3 (Div. 1) {708} PROGRAMMING Editorial 2500
4954 Directed Roads combinatorics dfs and similar graphs math Statement D Codeforces Round 369 (Div. 2) {711} PROGRAMMING 46830 1900
7492 Lakes in Berland dfs and similar dsu graphs greedy implementation Statement D Codeforces Round 375 (Div. 2) {723} PROGRAMMING 1600
2248 One-Way Reform constructive algorithms dfs and similar flows graphs greedy Statement E Codeforces Round 375 (Div. 2) {723} PROGRAMMING Codeforces Round #375 (Div.2) Editorial 2300
7782 Socks dfs and similar dsu graphs greedy Statement C Codeforces Round 376 (Div. 2) {731} PROGRAMMING 47840 1600
3239 Tourist Reform dfs and similar graphs Statement F Codeforces Round 377 (Div. 2) {732} PROGRAMMING Codeforces Round #377 (Div. 2) Editorial 2400
5098 Alyona and a tree binary search data structures dfs and similar graphs trees Statement B Codeforces Round 381 (Div. 1) {739} PROGRAMMING 48582 2000
3099 Arpa’s overnight party and Mehrdad’s silent entering constructive algorithms dfs and similar graphs Statement C Codeforces Round 383 (Div. 1) {741} PROGRAMMING Codeforces Round #383 editorial 2600
4706 Chloe and pleasant prizes dfs and similar dp graphs trees Statement D Codeforces Round 384 (Div. 2) {743} PROGRAMMING Codeforces Round #384 Editorial 1800
9699 Hongcow Builds A Nation dfs and similar graphs Statement A Codeforces Round 385 (Div. 1) {744} PROGRAMMING Codeforces Round #385 Editorial 1500
711 Santa Clauses and a Soccer Championship constructive algorithms dfs and similar graphs trees Statement F Technocup 2017 - Elimination Round 3 {748} PROGRAMMING Codeforces Round 389 (Div.2) Editorial 2500
238 New Year and Snowy Grid dfs and similar dsu graphs interactive Statement H Good Bye 2016 {750} PROGRAMMING Good Bye 2016 — hints and codes 3400
14941 PolandBall and Forest dfs and similar dsu graphs interactive trees Statement C 8VC Venture Cup 2017 - Elimination Round {755} PROGRAMMING 8VC Venture Cup 2017 — Elimination Round [Editorial] 1300
552 Broken Tree dfs and similar dp graphs greedy trees Statement E Codeforces Round 392 (Div. 2) {758} PROGRAMMING Codeforces Round #392 (Div. 2) Editorial 2900
2367 Dasha and Puzzle constructive algorithms dfs and similar graphs greedy trees Statement E Codeforces Round 394 (Div. 2) {761} PROGRAMMING Codeforces Round #394 (Div. 2) [Editorial] 2000
11854 Timofey and a tree dfs and similar dp dsu graphs implementation trees Statement A Codeforces Round 395 (Div. 1) {763} PROGRAMMING Codeforces Round #395 [Editorial] 1600
3891 Mahmoud and a Dictionary data structures dfs and similar dp dsu graphs Statement D Codeforces Round 396 (Div. 2) {766} PROGRAMMING Codeforces round #396 editorial 2000
4630 Garland dfs and similar graphs greedy trees Statement C Codeforces Round 398 (Div. 2) {767} PROGRAMMING Codeforces Round #398 (Div. 2) Editorial 2000
3001 Cycle In Maze *special dfs and similar graphs greedy shortest paths Statement C VK Cup 2017 - Qualification 1 {769} PROGRAMMING Tutorial 1800
2925 Online Courses In BSU *special dfs and similar graphs implementation Statement C VK Cup 2017 - Qualification 2 {770} PROGRAMMING 1900
17683 Bear and Friendship Condition dfs and similar dsu graphs Statement A VK Cup 2017 - Round 1 {771} PROGRAMMING VK Cup 2017 Round 1 and CF Round 405 — Editorial 1500
6163 The Door Problem 2-sat dfs and similar dsu graphs Statement D 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 2000
10001 Andryusha and Colored Balloons dfs and similar graphs greedy trees Statement C Технокубок 2017 - Финал (только для онсайт-финалистов) {780} PROGRAMMING Technocup 2017 Finals and Codeforces Round #403 Editorial 1500
2964 Underground Lab constructive algorithms dfs and similar graphs Statement E Технокубок 2017 - Финал (только для онсайт-финалистов) {780} PROGRAMMING Technocup 2017 Finals and Codeforces Round #403 Editorial 2200
2882 Weird journey combinatorics constructive algorithms dfs and similar dsu graphs Statement B Codeforces Round 407 (Div. 1) {788} PROGRAMMING Codeforces Round #407(Div.1 + Div.2) Editorial 2200
2566 The Great Mixing dfs and similar graphs shortest paths Statement C Codeforces Round 407 (Div. 1) {788} PROGRAMMING Codeforces Round #407(Div.1 + Div.2) Editorial 2500
4821 Igor and his way to work dfs and similar graphs implementation shortest paths Statement B Tinkoff Challenge - Elimination Round {793} PROGRAMMING 51685 1600
909 Labelling Cities dfs and similar graphs hashing Statement D Tinkoff Challenge - Final Round (Codeforces Round 414, rated, Div. 1 + Div. 2) {794} PROGRAMMING 2400
7146 Police Stations constructive algorithms dfs and similar dp graphs shortest paths trees Statement D Codeforces Round 408 (Div. 2) {796} PROGRAMMING Tutorial 2100
6515 Send the Fool Further! (easy) dfs and similar graphs trees Statement J1 Helvetic Coding Contest 2017 online mirror (teams allowed, unrated) {802} PROGRAMMING helvetic-coding-contest-2017-editorial.pdf 1400
6421 Send the Fool Further! (easy) dfs and similar graphs trees Statement J Helvetic Coding Contest 2017 online mirror (teams allowed, unrated) {802} PROGRAMMING helvetic-coding-contest-2017-editorial.pdf 1500
215 Fake bullions combinatorics dfs and similar dp graphs number theory Statement F Codeforces Round 411 (Div. 1) {804} PROGRAMMING Codeforces Round #411 Editorial 3400
1900 Vladik and Favorite Game constructive algorithms dfs and similar graphs interactive Statement D Codeforces Round 416 (Div. 2) {811} PROGRAMMING 2000
348 Sagheer and Kindergarten dfs and similar graphs implementation trees Statement D Codeforces Round 417 (Div. 2) {812} PROGRAMMING [Editorial] Codeforces Round #417 (Div. 2) 2700
8100 The Tag Game dfs and similar graphs Statement C Educational Codeforces Round 22 {813} PROGRAMMING 52410 1700
1638 Okabe and City dfs and similar graphs shortest paths Statement D Codeforces Round 420 (Div. 2) {821} PROGRAMMING Tutorial 2200
4281 Minimal Labels data structures dfs and similar graphs greedy Statement E Educational Codeforces Round 25 {825} PROGRAMMING Educational Codeforces Round 25 - Editorial 2400
1465 Tree Queries dfs and similar graphs trees Statement G Educational Codeforces Round 25 {825} PROGRAMMING Educational Codeforces Round 25 - Editorial 2600
1368 Best Edge Weight data structures dfs and similar graphs trees Statement D Codeforces Round 423 (Div. 1, rated, based on VK Cup Finals) {827} PROGRAMMING Codeforces Round #423 Analysis 2700
4434 Misha, Grisha and Underground dfs and similar graphs trees Statement D Codeforces Round 425 (Div. 2) {832} PROGRAMMING Codeforces Round #425 (Div.2) Editorial 1900
1233 Roads in the Kingdom dfs and similar dp graphs trees Statement F Codeforces Round 427 (Div. 2) {835} PROGRAMMING Editorial 2400
20001 Journey dfs and similar dp graphs probabilities trees Statement C Codeforces Round 428 (Div. 2) {839} PROGRAMMING Codeforces Round #428 editorial 1500
2803 Leha and another game about graph constructive algorithms data structures dfs and similar dp graphs Statement B Codeforces Round 429 (Div. 1) {840} PROGRAMMING Editorial 2100
3753 Ilya And The Tree dfs and similar graphs math number theory trees Statement C Codeforces Round 430 (Div. 2) {842} PROGRAMMING Tutorial Codeforces Round #430 (Div. 2) 2000
500 Nikita and game binary search dfs and similar divide and conquer graphs trees Statement E Codeforces Round 430 (Div. 2) {842} PROGRAMMING Tutorial Codeforces Round #430 (Div. 2) 3000
407 Upgrading Tree constructive algorithms dfs and similar graphs math trees Statement C AIM Tech Round 4 (Div. 1) {843} PROGRAMMING AIM Tech Round 4 -- Editorial 2900
2135 Shortest Path Problem? dfs and similar graphs math Statement G Educational Codeforces Round 27 {845} PROGRAMMING 53986 2400
731 Dating brute force dfs and similar graphs trees Statement I Bubble Cup X - Finals [Online Mirror] {852} PROGRAMMING Tutorial 2500
281 Harry Vs Voldemort dfs and similar dp graphs trees Statement G Manthan, Codefest 17 {855} PROGRAMMING 54750 3000
2014 Wizard's Tour constructive algorithms dfs and similar graphs Statement F Технокубок 2018 - Отборочный Раунд 1 {858} PROGRAMMING Codeforces Round 434 Div.1+Div.2 (and Technocup 2018 — Elimination Round 1) Editorial 2400
2111 Desk Disorder combinatorics dfs and similar dsu graphs trees Statement E MemSQL Start[c]UP 3.0 - Round 1 {859} PROGRAMMING Tutorial 2100
25448 Mahmoud and Ehab and the bipartiteness dfs and similar graphs trees Statement B Codeforces Round 435 (Div. 2) {862} PROGRAMMING Codeforces round #435 editorial 1400
674 Cities Excursions dfs and similar graphs trees Statement F Codeforces Round 436 (Div. 2) {864} PROGRAMMING Codeforces Round #436 (Div.2) Разбор 2700
278 The Overdosing Ubiquity brute force dfs and similar graphs Statement D Codeforces Round 439 (Div. 2) {869} PROGRAMMING Tutorial 2800
1312 Points, Lines and Ready-made Titles dfs and similar dsu graphs trees Statement E Technocup 2018 - Elimination Round 2 {870} PROGRAMMING Editorial Codeforces Round 440 Div.1+Div.2 (and Technocup 2018 — Elimination Round 2) 2400
2358 National Property 2-sat dfs and similar graphs implementation Statement C Codeforces Round 441 (Div. 1, by Moscow Team Olympiad) {875} PROGRAMMING Codeforces Round #441. Editorial. 2100
5061 Olya and Energy Drinks data structures dfs and similar graphs shortest paths Statement D Codeforces Round 442 (Div. 2) {877} PROGRAMMING 55362 1900
1514 Orientation of Edges dfs and similar graphs Statement G 2017-2018 ACM-ICPC, NEERC, Southern Subregional Contest (Online Mirror, ACM-ICPC Rules, Teams Preferred) {883} PROGRAMMING 2000
28055 Rumor dfs and similar graphs greedy Statement C Educational Codeforces Round 33 (Rated for Div. 2) {893} PROGRAMMING 55989 1300
1296 Bipartite Segments binary search data structures dfs and similar dsu graphs two pointers Statement C Codeforces Round 453 (Div. 1) {901} PROGRAMMING Codeforces Round #453 (Div. 1 & Div. 2) Editorial 2500
630 Weighting a Tree constructive algorithms dfs and similar graphs Statement D Codeforces Round 453 (Div. 1) {901} PROGRAMMING Codeforces Round #453 (Div. 1 & Div. 2) Editorial 2700
2446 Coprocessor dfs and similar dp graphs greedy Statement E Codeforces Round 455 (Div. 2) {909} PROGRAMMING Codeforces Round #455 (Div. 2) Editorial 2100
2261 Tree Destruction constructive algorithms dfs and similar graphs greedy trees Statement F Educational Codeforces Round 35 (Rated for Div. 2) {911} PROGRAMMING T 2500
4030 Almost Acyclic Graph dfs and similar graphs Statement D Educational Codeforces Round 36 (Rated for Div. 2) {915} PROGRAMMING 57123 2200
3984 MADMAX dfs and similar dp games graphs Statement B Codeforces Round 459 (Div. 1) {917} PROGRAMMING Codeforces Round #459 Editorial 1800
12184 Substring dfs and similar dp graphs Statement D Codeforces Round 460 (Div. 2) {919} PROGRAMMING Codeforces Round #460 (Div. 2) Editorial 1700
7681 Connected Components? data structures dfs and similar dsu graphs Statement E Educational Codeforces Round 37 (Rated for Div. 2) {920} PROGRAMMING T 2100
8369 Peculiar apple-tree dfs and similar graphs trees Statement A Codeforces Round 468 (Div. 1, based on Technocup 2018 Final Round) {930} PROGRAMMING Codeforces Round #468 and Technocup 2018 Final Round Analysis 1500
3407 Sleepy Game dfs and similar dp games graphs Statement B Codeforces Round 467 (Div. 1) {936} PROGRAMMING Codeforces Round #467, Editorial 2100
8099 Love Rescue dfs and similar dsu graphs greedy strings Statement D Codeforces Round 464 (Div. 2) {939} PROGRAMMING Analysis of Codeforces Round #464 1600
15285 Protect Sheep brute force dfs and similar graphs implementation Statement A Codeforces Round 470 (rated, Div. 2, based on VK Cup 2018 Round 1) {948} PROGRAMMING VK Cup 2018 Round 1 and CF Round #470 (div. 1 & 2) editorial 1000
2246 Data Center Maintenance dfs and similar graphs Statement C Codeforces Round 469 (Div. 1) {949} PROGRAMMING 58291 2000
7849 Fight Against Traffic dfs and similar graphs shortest paths Statement D Educational Codeforces Round 40 (Rated for Div. 2) {954} PROGRAMMING 58519 1600
744 Maximum Control (medium) data structures dfs and similar graphs greedy trees Statement B2 Helvetic Coding Contest 2018 online mirror (teams allowed, unrated) {958} PROGRAMMING helvetic-coding-contest-2018-editorial.pdf 2400
1578 Simple Cycles Edges dfs and similar graphs trees Statement F Educational Codeforces Round 42 (Rated for Div. 2) {962} PROGRAMMING Educational Codeforces Round 42 Editorial 2400
25430 Cyclic Components dfs and similar dsu graphs Statement E Codeforces Round 479 (Div. 3) {977} PROGRAMMING Codeforces Round #479 (Div. 3) Editorial 1500
15741 Cut 'em all! dfs and similar dp graphs greedy trees Statement C Codeforces Round 484 (Div. 2) {982} PROGRAMMING Editorial 1500
222 The Meeting Place Cannot Be Changed dfs and similar graphs Statement F Codeforces Round 484 (Div. 2) {982} PROGRAMMING Editorial 2800
2708 AND Graph bitmasks dfs and similar dsu graphs Statement C Codeforces Round 485 (Div. 1) {986} PROGRAMMING Codeforces Round #485 Editorial 2300
7804 Reachability from the Capital dfs and similar graphs greedy Statement E Codeforces Round 490 (Div. 3) {999} PROGRAMMING 60138 1900
6460 We Need More Bosses dfs and similar graphs trees Statement E Educational Codeforces Round 46 (Rated for Div. 2) {1000} PROGRAMMING 60288 2100
2098 Berland and the Shortest Paths brute force dfs and similar graphs shortest paths Statement F Codeforces Round 496 (Div. 3) {1005} PROGRAMMING Codeforces Round 496 (Div. 3): Problem Tutorials 2400
11569 Military Problem dfs and similar graphs trees Statement E Codeforces Round 498 (Div. 3) {1006} PROGRAMMING 60672 1600
2560 Mars rover dfs and similar graphs implementation trees Statement D Codeforces Round 499 (Div. 1) {1010} PROGRAMMING 60851 2100
4381 Chemical table constructive algorithms dfs and similar dsu graphs matrices Statement B Codeforces Round 500 (Div. 1) [based on EJOI] {1012} PROGRAMMING 60920 1900
24972 Badge brute force dfs and similar graphs Statement B Codeforces Round 503 (by SIS, Div. 2) {1020} PROGRAMMING Codeforces Round #503 (based on SIS olympiad) — Editorial 1000
1008 Mobile Phone Network dfs and similar dsu graphs trees Statement F Codeforces Round 504 (rated, Div. 1 + Div. 2, based on VK Cup 2018 Final) {1023} PROGRAMMING Codeforces Round 504 Editorial 2600
8342 Mouse Hunt dfs and similar graphs Statement D Educational Codeforces Round 49 (Rated for Div. 2) {1027} PROGRAMMING Educational Codeforces Round 49 Editorial 1700
1945 Session in BSU binary search dfs and similar dsu graph matchings graphs Statement F Educational Codeforces Round 49 (Rated for Div. 2) {1027} PROGRAMMING Educational Codeforces Round 49 Editorial 2400
15823 King Escape dfs and similar graphs implementation Statement A Lyft Level 5 Challenge 2018 - Elimination Round {1033} PROGRAMMING The Lyft Level 5 Challenge 2018 Elimination Round (Div. 1 + Div. 2) Editorial 1000
787 Hidden Bipartite Graph binary search constructive algorithms dfs and similar graphs interactive Statement E Lyft Level 5 Challenge 2018 - Elimination Round {1033} PROGRAMMING The Lyft Level 5 Challenge 2018 Elimination Round (Div. 1 + Div. 2) Editorial 2700
18975 Valid BFS? dfs and similar graphs shortest paths trees Statement D Manthan, Codefest 18 (rated, Div. 1 + Div. 2) {1037} PROGRAMMING Tutorial 1700
1094 Maximum Matching bitmasks brute force dfs and similar dp graphs Statement E Codeforces Round 508 (Div. 2) {1038} PROGRAMMING Tutorial 2400
1487 Network Safety dfs and similar dsu graphs math sortings Statement C Codeforces Round 507 (Div. 1, based on Olympiad of Metropolises) {1039} PROGRAMMING 61668 2300
1466 Leaf Sets data structures dfs and similar dsu graphs greedy sortings trees Statement F Codeforces Round 510 (Div. 2) {1042} PROGRAMMING Tutorial 2400
827 Hyperspace Highways dfs and similar graphs trees Statement C Bubble Cup 11 - Finals [Online Mirror, Div. 1] {1045} PROGRAMMING Tutorial (PDF) 2500
6713 Decorate Apple Tree constructive algorithms dfs and similar dp graphs greedy sortings trees Statement D Mail.Ru Cup 2018 Round 3 {1056} PROGRAMMING Mail.Ru Cup 2018 Round 3 Editorial 1600
4164 Fun with Integers dfs and similar graphs implementation math Statement D Codeforces Round 520 (Div. 2) {1062} PROGRAMMING Tutorial 1800
981 Upgrading Cities dfs and similar graphs Statement F Codeforces Round 520 (Div. 2) {1062} PROGRAMMING Tutorial 3000
2857 Multihedgehog dfs and similar graphs shortest paths Statement B Codeforces Round 518 (Div. 1) [Thanks, Mail.Ru!] {1067} PROGRAMMING Tutorial 2000
127 Harder Satisfiability 2-sat dfs and similar graphs Statement H 2018-2019 ICPC, NEERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1089} PROGRAMMING 3500
11299 Beautiful Graph dfs and similar graphs Statement D Educational Codeforces Round 56 (Rated for Div. 2) {1093} PROGRAMMING 63877 1600
1161 Construct a tree binary search constructive algorithms dfs and similar graphs greedy trees Statement C Codeforces Round 530 (Div. 1) {1098} PROGRAMMING 64331 2300
2609 Andrew and Taxi binary search dfs and similar graphs Statement E Codeforces Round 532 (Div. 2) {1100} PROGRAMMING Unofficial Tutorial 2200
953 Johnny Solving constructive algorithms dfs and similar graphs math Statement C Codeforces Round 534 (Div. 1) {1103} PROGRAMMING Codeforces Round #534 — Editorial 2800
4417 Kilani and the Game dfs and similar graphs implementation shortest paths Statement D Codeforces Round 533 (Div. 2) {1105} PROGRAMMING Tutorial 1900
19527 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
1091 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
1767 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
3617 Gourmet choice dfs and similar dp dsu graphs greedy Statement D Codeforces Round 541 (Div. 2) {1131} PROGRAMMING Codeforces Round #541 Editorial 2000
3797 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
16570 Edgy Trees dfs and similar dsu graphs math trees Statement C Codeforces Round 548 (Div. 2) {1139} PROGRAMMING Codeforces Round #548 Editorial 1500
2542 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
14001 Graph Without Long Directed Paths dfs and similar graphs Statement F Codeforces Round 550 (Div. 3) {1144} PROGRAMMING 66307 1700
856 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
1123 Neko and Flashback constructive algorithms dfs and similar graphs Statement E Codeforces Round 554 (Div. 2) {1152} PROGRAMMING T 2500
2114 Permutation recovery constructive algorithms data structures dfs and similar graphs greedy math sortings Statement C Codeforces Round 559 (Div. 1) {1158} PROGRAMMING 66993 2300
25760 News Distribution dfs and similar dsu graphs Statement C Educational Codeforces Round 65 (Rated for Div. 2) {1167} PROGRAMMING 67058 1400