Codeforces problemset search & solutions
Exclude tags.

Review the problem statement from Codeforces (link will open a new tab). When you've matched your problem, go to the solutions.

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

1 2 >

Solved
Name
Tags
Solutions
Index
Contest
Type
Points
Tutorial
Rating Level
1784 Old Berland Language data structures greedy trees Statement C Codeforces Beta Round 37 {37} PROGRAMMING Codeforces Beta Round #37 (Tutorial) 1900
12356 Enemy is weak data structures trees Statement E Codeforces Beta Round 57 (Div. 2) {61} PROGRAMMING Round 57-A 2100
1870 Big Maximum Sum data structures dp greedy implementation math trees Statement D Codeforces Beta Round 67 (Div. 2) {75} PROGRAMMING 2100
368 Tree or not Tree data structures divide and conquer implementation trees Statement E Codeforces Beta Round 88 {117} PROGRAMMING 2800
1825 e-Government data structures dfs and similar dp strings trees Statement E VK Cup 2012 Round 2 {163} PROGRAMMING VK Cup 2012 Round 2 — Разбор 2800
1736 Beard Graph data structures ds trees Statement D Codeforces Round 112 (Div. 2) {165} PROGRAMMING 2200
1277 Archaeology data structures dfs and similar trees Statement E Croc Champ 2012 - Round 2 {176} PROGRAMMING 3000
7662 Fools and Roads data structures dfs and similar trees Statement C Codeforces Round 121 (Div. 1) {191} PROGRAMMING 2100
334 Alien DNA data structures ds trees Statement E Codeforces Round 134 (Div. 1) {217} PROGRAMMING 2700
488 Noble Knight's Path data structures trees Statement E Codeforces Round 140 (Div. 1) {226} PROGRAMMING 2900
1996 Cactus data structures dfs and similar dp graphs trees Statement E Codeforces Round 143 (Div. 2) {231} PROGRAMMING 2400
1176 Little Elephant and Tree data structures dfs and similar trees Statement E Codeforces Round 157 (Div. 1) {258} PROGRAMMING Codeforces Round #157 — Editorial 2400
1680 Little Girl and Problem on Trees data structures graphs trees Statement E Codeforces Round 169 (Div. 2) {276} PROGRAMMING Codeforces Round #169 — Unofficial Editorial 2300
1579 Close Vertices data structures divide and conquer trees Statement E Croc Champ 2013 - Round 2 {293} PROGRAMMING Croc Champ 2013 — Round 2 — Editorial 2700
182 Escaping on Beaveractor data structures implementation trees Statement D3 ABBYY Cup 3.0 - Finals (online version) {331} PROGRAMMING 2900
27658 Xenia and Bit Operations data structures trees Statement D Codeforces Round 197 (Div. 2) {339} PROGRAMMING 1700
9157 Xenia and Tree data structures divide and conquer trees Statement E Codeforces Round 199 (Div. 2) {342} PROGRAMMING Tutorial 2200
6059 Water Tree data structures dfs and similar graphs trees Statement D Codeforces Round 200 (Div. 1) {343} PROGRAMMING Codeforces Round #200 Tutorial 2100
5872 Vessels data structures ds implementation trees Statement D Codeforces Round 218 (Div. 2) {371} PROGRAMMING Codeforces Round #218 (Div. 2): Tutorial 1900
7312 Tree and Queries data structures dfs and similar trees Statement D Codeforces Round 221 (Div. 1) {375} PROGRAMMING Codeforces Round #221 Tutorial 2400
2450 New Year Tree data structures divide and conquer trees Statement F Good Bye 2013 {379} PROGRAMMING Tutorial Good Bye 2013 2400
6761 Propagating tree data structures dfs and similar trees Statement C Codeforces Round 225 (Div. 1) {383} PROGRAMMING 2400
1659 On Changing Tree data structures graphs trees Statement C Codeforces Round 232 (Div. 1) {396} PROGRAMMING 1500.0 Codeforces Round #232 Editorial (restored)
225 Two Rooted Trees data structures implementation trees Statement E Codeforces Round 236 (Div. 1) {403} PROGRAMMING 2900
492 Big Problems for Organizers data structures graphs trees Statement D RCC 2014 Warmup (Div. 1) {418} PROGRAMMING RCC 2014 WarmUp Analysis 2700
1048 Adam and Tree data structures trees Statement D Codeforces Round 253 (Div. 1) {442} PROGRAMMING Codeforces #253 editorial 2500
181 ELCA data structures trees Statement E Codeforces Round 275 (Div. 1) {482} PROGRAMMING 3200
2519 Tourists data structures dfs and similar graphs trees Statement E Codeforces Round 278 (Div. 1) {487} PROGRAMMING Tutorial 3100
1770 Treeland Tour data structures dfs and similar dp trees Statement F Codeforces Round 279 (Div. 2) {490} PROGRAMMING 2500
646 Birthday data structures dfs and similar dp trees Statement D Codeforces Round 282 (Div. 1) {494} PROGRAMMING 2700
412 Tavas on the Path data structures divide and conquer trees Statement E Codeforces Round 299 (Div. 1) {536} PROGRAMMING 3100
2188 Mike and Friends data structures string suffix structures strings trees Statement E Codeforces Round 305 (Div. 1) {547} PROGRAMMING Codeforces Round #305 Editorial 2800
1130 Ann and Half-Palindrome data structures dp graphs string suffix structures strings trees Statement E Codeforces Round 311 (Div. 2) {557} PROGRAMMING 2700
4155 Duff in the Army data structures trees Statement C Codeforces Round 326 (Div. 1) {587} PROGRAMMING 2200
1287 Happy Tree Party data structures dfs and similar graphs math trees Statement D Codeforces Round 329 (Div. 2) {593} PROGRAMMING 2300
15081 Lomsat gelral data structures dfs and similar ds trees Statement E Educational Codeforces Round 2 {600} PROGRAMMING Editorial 2300
1180 Acyclic Organic Compounds data structures dfs and similar ds hashing strings trees Statement D Codeforces Round 333 (Div. 1) {601} PROGRAMMING Codeforces Round #333 — editorial 2400
1391 Pastoral Oddities data structures divide and conquer ds math trees Statement E Codeforces Round 334 (Div. 1) {603} PROGRAMMING 2900
586 Power Tree data structures trees Statement D Codeforces Round 336 (Div. 1) {607} PROGRAMMING 2600
8615 Minimum spanning tree for each edge data structures dfs and similar ds graphs trees Statement E Educational Codeforces Round 3 {609} PROGRAMMING Editorial 2100
435 Bear and Chemistry data structures dfs and similar graphs trees Statement F VK Cup 2016 - Round 1 {639} PROGRAMMING 3300
617 Clockwork Bomb data structures dfs and similar ds greedy trees Statement E Codeforces Round 345 (Div. 1) {650} PROGRAMMING 3100
3950 Дерево data structures trees Statement D Codeforces Round 353 (Div. 2) {675} PROGRAMMING Tutorial 1800
4436 Kay and Snowflake data structures dfs and similar dp trees Statement B Codeforces Round 359 (Div. 1) {685} PROGRAMMING 2000
575 ...Wait for it... data structures ds trees Statement E Codeforces Round 362 (Div. 1) {696} PROGRAMMING 2900
301 Iron Man data structures geometry trees Statement E Codeforces Round 366 (Div. 1) {704} PROGRAMMING 3500
3593 Centroids data structures dfs and similar dp graphs greedy trees Statement C AIM Tech Round 3 (Div. 1) {708} PROGRAMMING Editorial 2500
1163 Drivers Dissatisfaction data structures ds graphs trees Statement F Codeforces Round 378 (Div. 2) {733} PROGRAMMING 2500
2970 Arpa’s letter-marked tree and Mehrdad’s Dokhtar-kosh paths data structures dfs and similar trees Statement D Codeforces Round 383 (Div. 1) {741} PROGRAMMING Codeforces Round #383 editorial 2700
558 Can Bash Save the Day? data structures divide and conquer graphs trees Statement G Codecraft-17 and Codeforces Round 391 (Div. 1 + Div. 2, combined) {757} PROGRAMMING 2500
601 Timofey and a flat tree data structures graphs hashing shortest paths trees Statement D Codeforces Round 395 (Div. 1) {763} PROGRAMMING 2800
663 ALT data structures flows graphs trees Statement E Codeforces Round 406 (Div. 1) {786} PROGRAMMING 3200
147 Rap God data structures dfs and similar hashing strings trees Statement D Codeforces Round 406 (Div. 1) {786} PROGRAMMING 3300
7244 Okabe and Boxes data structures greedy trees Statement C Codeforces Round 420 (Div. 2) {821} PROGRAMMING Tutorial 1600
1248 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
428 Red-Black Cobweb data structures divide and conquer implementation trees Statement D Codeforces Round 426 (Div. 1) {833} PROGRAMMING 2800
886 Diverging Directions data structures dfs and similar trees Statement B IndiaHacks 2nd Elimination 2017 (unofficial, unrated mirror, ICPC rules) {838} PROGRAMMING 53736 2100
470 Arkady and a Nobody-men data structures dfs and similar trees Statement E Codeforces Round 434 (Div. 1, based on Technocup 2018 Elimination Round 1) {860} PROGRAMMING 2600
2152 Subtree Minimum Query data structures trees Statement F Educational Codeforces Round 33 (Rated for Div. 2) {893} PROGRAMMING 2300
2637 Imbalance Value of a Tree data structures ds graphs trees Statement F Educational Codeforces Round 36 (Rated for Div. 2) {915} PROGRAMMING 57123 2500
528 Jamie and To-do List data structures interactive trees Statement D Codeforces Round 457 (Div. 2) {916} PROGRAMMING 2600
1788 Jamie and Tree data structures trees Statement E Codeforces Round 457 (Div. 2) {916} PROGRAMMING 2600
148 Upside Down data structures string suffix structures strings trees Statement E Codeforces Round 459 (Div. 1) {917} PROGRAMMING 3000
4434 Perfect Security data structures greedy strings trees Statement C VK Cup 2018 - Round 1 {923} PROGRAMMING 1900
419 May Holidays data structures trees Statement E VK Cup 2018 - Round 3 {925} PROGRAMMING Разбор VK 2018 Round 3 + Codeforces Round #477 2900
211 Iqea data structures dfs and similar divide and conquer ds shortest paths trees Statement E Codeforces Round 467 (Div. 1) {936} PROGRAMMING Codeforces Round #467, Editorial 3300
694 Maximum Control (medium) data structures dfs and similar graphs greedy trees Statement B2 Helvetic Coding Contest 2018 online mirror (teams allowed, unrated) {958} PROGRAMMING 2400
305 Santa's Gift data structures trees Statement H Divide by Zero 2018 and Codeforces Round 474 (Div. 1 + Div. 2, combined) {960} PROGRAMMING Divide by Zero 2018 and Codeforces Round #474 (Div. 1 + Div. 2, combined) Editorial 3000
186 Visible Black Areas data structures ds geometry trees Statement G Educational Codeforces Round 42 (Rated for Div. 2) {962} PROGRAMMING Educational Codeforces Round 42 Editorial 2900
1594 Short Code data structures dp greedy strings trees Statement E Codeforces Round 476 (Div. 2) [Thanks, Telegram!] {965} PROGRAMMING Analysis of Codeforces Round #476 (Div. 2) [Thanks, Telegram!] 2500
1985 The Number Games data structures greedy trees Statement E Codeforces Round 480 (Div. 2) {980} PROGRAMMING Tutorial 2300
624 Two-Paths data structures dp trees Statement G Educational Codeforces Round 46 (Rated for Div. 2) {1000} PROGRAMMING 60288 2800
6256 Dominant Indices data structures ds trees Statement F Educational Codeforces Round 47 (Rated for Div. 2) {1009} PROGRAMMING 60630 2300
362 Raining season data structures divide and conquer trees Statement E Codeforces Round 503 (by SIS, Div. 1) {1019} PROGRAMMING 61161 3200
134 Pisces data structures flows trees Statement G Codeforces Round 504 (rated, Div. 1 + Div. 2, based on VK Cup 2018 Final) {1023} PROGRAMMING Codeforces Round 504 Editorial 3300
1941 You Are Given a Tree data structures dp trees Statement D Codeforces Round 507 (Div. 1, based on Olympiad of Metropolises) {1039} PROGRAMMING 61668 2700
1348 Leaf Sets data structures dfs and similar ds graphs greedy sortings trees Statement F Codeforces Round 510 (Div. 2) {1042} PROGRAMMING Tutorial 2400
548 Last chance data structures flows graph matchings trees Statement A Bubble Cup 11 - Finals [Online Mirror, Div. 1] {1045} PROGRAMMING E 2800
180 Moonwalk challenge data structures strings trees Statement J Bubble Cup 11 - Finals [Online Mirror, Div. 1] {1045} PROGRAMMING E 3000
3855 Vasya and a Tree data structures trees Statement E Educational Codeforces Round 54 (Rated for Div. 2) {1076} PROGRAMMING E 1900
5704 The Fair Nut and the Best Path data structures dp trees Statement A Codeforces Round 526 (Div. 1) {1083} PROGRAMMING 63753 1800
965 Max Mex data structures trees Statement C Codeforces Round 526 (Div. 1) {1083} PROGRAMMING 63753 2800
537 Ehab and a weird weight formula data structures trees Statement F Codeforces Round 525 (Div. 2) {1088} PROGRAMMING Codeforces round #525 editorial 3000
4925 GCD Counting data structures dfs and similar dp number theory trees Statement D Educational Codeforces Round 58 (Rated for Div. 2) {1101} PROGRAMMING 64483 2000
315 Sasha and Algorithm of Silence's Sounds data structures trees Statement F Codeforces Round 539 (Div. 1) {1109} PROGRAMMING Codeforces Round #539 Editorial 3200
1825 Nearest Leaf data structures trees Statement F Codeforces Global Round 1 {1110} PROGRAMMING The Editorial of the First Codeforces Global Round 2600
991 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
760 Niyaz and Small Degrees data structures dp trees Statement F Codeforces Global Round 2 {1119} PROGRAMMING Codeforces Global Round 2 Editorial 2900
1102 Greedy Subsequences data structures dp trees Statement G Educational Codeforces Round 61 (Rated for Div. 2) {1132} PROGRAMMING T 2600
483 Matches Are Not a Child's Play data structures trees Statement F Codeforces Round 545 (Div. 1) {1137} PROGRAMMING Codeforces Round #545 – Editorial 3300
533 Double Tree data structures divide and conquer shortest paths trees Statement G Educational Codeforces Round 62 (Rated for Div. 2) {1140} PROGRAMMING Educational Codeforces Round 62 Editorial 2900
3256 Lynyrd Skynyrd data structures dfs and similar dp math trees Statement B Codeforces Round 549 (Div. 1) {1142} PROGRAMMING Codeforces Round #549 Editorial 2300
1351 Tree Generator™ data structures implementation trees Statement C Codeforces Round 556 (Div. 1) {1149} PROGRAMMING 66783 2900
3866 Minimal Segment Cover data structures dfs and similar divide and conquer dp greedy implementation trees Statement E Educational Codeforces Round 66 (Rated for Div. 2) {1175} PROGRAMMING Editorial 2200
954 Fedor Runs for President data structures dp trees Statement D Codeforces Round 569 (Div. 1) {1179} PROGRAMMING Editorial of Round #569 2600
600 Daleks' Invasion (hard) data structures ds graphs trees Statement E3 Helvetic Coding Contest 2019 online mirror (teams allowed, unrated) {1184} PROGRAMMING helvetic-coding-contest-2019-editorial.pdf 2500
1096 Indie Album data structures dfs and similar hashing string suffix structures strings trees Statement G Educational Codeforces Round 71 (Rated for Div. 2) {1207} PROGRAMMING Educational Codeforces Round 71 Editorial 2600
173 Red Blue Tree data structures implementation trees Statement H Manthan, Codefest 19 (open for everyone, rated, Div. 1 + Div. 2) {1208} PROGRAMMING 69357 3500
1241 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
645 Forced Online Queries Problem data structures divide and conquer ds graphs trees Statement F Educational Codeforces Round 72 (Rated for Div. 2) {1217} PROGRAMMING Educational Codeforces Round 72 Editorial 2800