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']

Solved
Name
Tags
Solutions
Index
Contest
Type
Points
Tutorial
Rating Level
2212 Merging Towers data structures ds implementation trees Statement E Educational Codeforces Round 91 (Rated for Div. 2) {1380} PROGRAMMING Educational Codeforces Round 91 Editorial
2611 Removing Leaves data structures dfs and similar divide and conquer greedy implementation trees Statement F Codeforces Round 656 (Div. 3) {1385} PROGRAMMING Codeforces Round #656 (Div. 3) Editorial 2300
6506 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
5931 Weights Division (easy version) data structures dfs and similar greedy trees Statement E1 Codeforces Round 661 (Div. 3) {1399} PROGRAMMING Codeforces Round #661 (Div. 3) Editorial
2156 Graph and Queries data structures dfs and similar ds graphs trees Statement D Codeforces Round 673 (Div. 1) {1416} PROGRAMMING 2000.0 Codeforces Round #673 Editorial 2600
1072 Boring Queries data structures number theory trees Statement F Codeforces Round 675 (Div. 2) {1422} PROGRAMMING 2750.0 Codeforces Round #675 (Div. 2) Editorial
317 Boring Card Game data structures greedy trees Statement F Codeforces Global Round 11 {1427} PROGRAMMING 2250.0 Editorial of Global Round 11 3200
1034 Death DBMS data structures hashing string suffix structures strings trees Statement G Educational Codeforces Round 97 (Rated for Div. 2) {1437} PROGRAMMING 84149
330 My Beautiful Madness data structures trees Statement F Codeforces Round 692 (Div. 1, based on Technocup 2021 Elimination Round 3) {1464} PROGRAMMING 3000.0 Technocup 2021 Elimination Round 3 and Round #692 (Div. 1 + Div. 2) Editorial
1463 Distinctive Roots in a Tree data structures dfs and similar trees Statement E Codeforces Round 695 (Div. 2) {1467} PROGRAMMING 2500.0 Codeforces Round #695 (Div. 2) Editorial 2500
941 Christmas Game data structures dfs and similar dp games math trees Statement F CodeCraft-21 and Codeforces Round 711 (Div. 2) {1498} PROGRAMMING 3000.0 CodeCraft-21 and Codeforces Round #711 (Div. 2) Editorial
2686 Trees of Tranquillity data structures dfs and similar greedy trees Statement C Codeforces Round 722 (Div. 1) {1528} PROGRAMMING 1750.0 Codeforces Round #722 Editorial
7880 Playoff Tournament data structures implementation trees Statement D Educational Codeforces Round 110 (Rated for Div. 2) {1535} PROGRAMMING 91481
696 Jumping Around data structures divide and conquer dp ds graphs shortest paths trees Statement F Educational Codeforces Round 111 (Rated for Div. 2) {1550} PROGRAMMING Educational Codeforces Round 111 Editorial
879 Good Graph data structures ds graphs trees Statement F Educational Codeforces Round 112 (Rated for Div. 2) {1555} PROGRAMMING 93389 2700
929 Illusions of the Desert data structures trees Statement I COMPFEST 13 - Finals Online Mirror (Unrated, ICPC Rules, Teams Preferred) {1575} PROGRAMMING COMPFEST 13 — Editorial
1084 Frequency Queries data structures dfs and similar trees Statement E Technocup 2022 - Elimination Round 3 {1585} PROGRAMMING 2500.0 Codeforces Round #759 (Div. 2, based on Technocup 2022 Elimination Round 3) Editorial
496 Phys Ed Online data structures dp greedy trees Statement E Codeforces Round 751 (Div. 1) {1601} PROGRAMMING 2250.0 95865 2900
515 Squid Game data structures dfs and similar divide and conquer greedy trees Statement H Codeforces Global Round 17 {1610} PROGRAMMING 3500.0 Codeforces Global Round 17 Editorial
8540 Replace the Numbers data structures ds greedy trees Statement E Educational Codeforces Round 119 (Rated for Div. 2) {1620} PROGRAMMING 98061
1138 Middle Duplication data structures dfs and similar greedy strings trees Statement E Codeforces Round 763 (Div. 2) {1623} PROGRAMMING 2750.0 Codeforces Round #763 (Div. 2) Editorial
1061 Cats on the Upgrade (easy version) data structures dfs and similar divide and conquer dp graphs trees Statement E1 Codeforces Round 765 (Div. 2) {1625} PROGRAMMING 2000.0 Editorial of Codeforces Round #765 (Div. 2)
604 Cats on the Upgrade (hard version) data structures dfs and similar graphs trees Statement E2 Codeforces Round 765 (Div. 2) {1625} PROGRAMMING 1250.0 Editorial of Codeforces Round #765 (Div. 2)
936 Groceries in Meteor Town data structures trees Statement E Codeforces Round 767 (Div. 1) {1628} PROGRAMMING 2250.0 99276
325 Perfect Matching data structures interactive trees Statement F Educational Codeforces Round 122 (Rated for Div. 2) {1633} PROGRAMMING 99539
421 Air Reform data structures dfs and similar divide and conquer ds graphs implementation trees Statement E Codeforces Round 775 (Div. 1, based on Moscow Open Olympiad in Informatics) {1648} PROGRAMMING 2500.0 Codeforces Round #775 Editorial
411 Snowy Mountain data structures graphs greedy shortest paths trees Statement G Codeforces Round 778 (Div. 1 + Div. 2, based on Technocup 2022 Final Round) {1654} PROGRAMMING 3500.0 Editorial of Codeforces Round #778 (Div. 1 + Div. 2, based on Technocup 2022 Final Round) 2900
976 Narrow Components data structures dfs and similar ds trees Statement E Educational Codeforces Round 126 (Rated for Div. 2) {1661} PROGRAMMING Educational Codeforces Round 126 Editorial
1835 Unique Occurrences data structures dfs and similar divide and conquer dp ds trees Statement F Educational Codeforces Round 129 (Rated for Div. 2) {1681} PROGRAMMING 103163 2300
5593 Passable Paths (easy version) data structures dfs and similar sortings trees Statement G1 Codeforces Round 805 (Div. 3) {1702} PROGRAMMING 104763
1583 DFS Trees data structures dfs and similar ds graphs greedy trees Statement C Codeforces Round 808 (Div. 1) {1707} PROGRAMMING 1250.0 104930
2861 XOR Tree data structures dfs and similar ds greedy trees Statement E Educational Codeforces Round 132 (Rated for Div. 2) {1709} PROGRAMMING 105164
340 Triameter data structures dfs and similar trees Statement F Codeforces Round 813 (Div. 2) {1712} PROGRAMMING 3500.0 Codeforces Round #813 (Div. 2) Editorial
240 MEX Tree Manipulation data structures trees Statement H Codeforces Round 831 (Div. 1 + Div. 2) {1740} PROGRAMMING 3000.0 Tutorial 3300
2058 Yet Another Array Counting Problem data structures divide and conquer dp trees Statement E Codeforces Round 833 (Div. 2) {1748} PROGRAMMING 2250.0 Codeforces Round #833 (Div. 2) Editorial 2300
528 Distance to the Path data structures dfs and similar trees Statement F Educational Codeforces Round 138 (Rated for Div. 2) {1749} PROGRAMMING 108269
333 Two Subtrees data structures trees Statement F Educational Codeforces Round 140 (Rated for Div. 2) {1767} PROGRAMMING 110225
486 Weighed Tree Radius data structures divide and conquer trees Statement G Educational Codeforces Round 141 (Rated for Div. 2) {1783} PROGRAMMING Educational Codeforces Round 141 Editorial
1135 Labeling the Tree with Distances data structures dp hashing implementation trees Statement E Codeforces Round 856 (Div. 2) {1794} PROGRAMMING 2750.0 Codeforces Round 856 (Div. 2) Editorial
786 Colored Subgraphs data structures dp greedy trees Statement E Educational Codeforces Round 144 (Rated for Div. 2) {1796} PROGRAMMING Educational Codeforces Round 144 Editorial
370 Li Hua and Path data structures dfs and similar divide and conquer ds trees Statement F Codeforces Round 864 (Div. 2) {1797} PROGRAMMING 3000.0 Codeforces Round 864 (Div. 2) Editorial
504 Gasoline prices data structures divide and conquer ds trees Statement E Codeforces Round 857 (Div. 1) {1801} PROGRAMMING 2500.0 Codeforces Round #857 Editorial
1678 There Should Be a Lot of Maximums data structures dfs and similar ds graphs trees Statement E Codeforces Round 862 (Div. 2) {1805} PROGRAMMING 2250.0 Editorial of Codeforces Round #862 (Div. 2)
1457 LuoTianyi and XOR-Tree data structures dfs and similar dp ds greedy trees Statement C Codeforces Round 872 (Div. 1) {1824} PROGRAMMING 1750.0 CodeForces Round 872(Div. 1&2) Editorial 2500
137 LuoTianyi and Cartridge data structures trees Statement E Codeforces Round 872 (Div. 1) {1824} PROGRAMMING 3000.0 CodeForces Round 872(Div. 1&2) Editorial 3500
781 Two Centroids data structures dfs and similar greedy trees Statement D Codeforces Round 873 (Div. 1) {1827} PROGRAMMING 1750.0 Codeforces Round #873 (Div. 1 & 2) Editorial 2800
1692 Omsk Metro (hard version) data structures dfs and similar divide and conquer dp implementation math trees Statement F2 Codeforces Round 881 (Div. 3) {1843} PROGRAMMING Codeforces Round #881 (Div. 3) Editorial
5503 Omsk Metro (simple version) data structures dfs and similar dp greedy math trees Statement F1 Codeforces Round 881 (Div. 3) {1843} PROGRAMMING Codeforces Round #881 (Div. 3) Editorial
415 Teleportation in Byteland data structures divide and conquer graphs shortest paths trees Statement F Codeforces Round 892 (Div. 2) {1859} PROGRAMMING 3000.0 Video solutions from Geothermal.
10476 Queries for the Array data structures dfs and similar implementation strings trees Statement C Educational Codeforces Round 154 (Rated for Div. 2) {1861} PROGRAMMING Educational Codeforces Round 154 Editorial
88 Standard Graph Problem data structures graphs greedy trees Statement H CodeTON Round 6 (Div. 1 + Div. 2, Rated, Prizes!) {1870} PROGRAMMING 4000.0 CodeTON Round 6 (Div. 1 + Div. 2, Rated, Prizes!) Editorial
3959 A Growing Tree data structures dfs and similar trees Statement F Codeforces Round 907 (Div. 2) {1891} PROGRAMMING 2250.0
3365 Unusual Entertainment data structures dfs and similar ds shortest paths sortings trees Statement G Codeforces Round 909 (Div. 3) {1899} PROGRAMMING Разбор Codeforces Round 909 (Div. 3)
394 Beautiful Tree data structures dfs and similar graphs trees Statement F Codeforces Round 914 (Div. 2) {1904} PROGRAMMING 3500.0 Codeforces Round 914 (Div. 2) Editorial
3333 Array Collapse data structures divide and conquer dp trees Statement D Educational Codeforces Round 160 (Rated for Div. 2) {1913} PROGRAMMING 123493
4011 01 Tree data structures divide and conquer greedy implementation sortings trees Statement D Hello 2024 {1919} PROGRAMMING 1500.0 2100
2249 Wine Factory (Easy Version) data structures flows schedules trees Statement F1 Hello 2024 {1919} PROGRAMMING 1500.0 2300
4088 Count Paths data structures dfs and similar divide and conquer dp ds trees Statement E Educational Codeforces Round 162 (Rated for Div. 2) {1923} PROGRAMMING Educational Codeforces Round 162 Editorial
4572 Microcycle data structures dfs and similar ds graphs greedy trees Statement F Codeforces Round 923 (Div. 3) {1927} PROGRAMMING 125597
364 Prefix Max Set Counting data structures trees Statement G think-cell Round 1 {1930} PROGRAMMING 3500.0 think-cell Round 1 Editorial
111 Farmer John's Favorite Intern data structures dp flows trees Statement H CodeTON Round 8 (Div. 1 + Div. 2, Rated, Prizes!) {1942} PROGRAMMING 4500.0 CodeTON Round 8 Editorial
628 Remove Bridges data structures dfs and similar dp greedy sortings trees Statement F Educational Codeforces Round 166 (Rated for Div. 2) {1976} PROGRAMMING Educational Codeforces Round 166 Editorial
286 Turtle and Paths on a Tree data structures dp trees Statement F Codeforces Round 949 (Div. 2) {1981} PROGRAMMING 3500.0 Simplified Chinese Tutorial
2530 Cosmic Rays data structures dfs and similar greedy implementation trees Statement E EPIC Institute of Technology Round August 2024 (Div. 1 + Div. 2) {2002} PROGRAMMING 2000.0
235 Iris's Full Binary Tree data structures trees Statement E Codeforces Round 969 (Div. 1) {2006} PROGRAMMING 2500.0
364 Yunli's Subarray Queries (extreme version) data structures trees Statement G3 Codeforces Round 971 (Div. 4) {2009} PROGRAMMING
893 Digital Village (Hard Version) data structures dp ds graphs math trees Statement E2 Codeforces Round 977 (Div. 2, based on COMPFEST 16 - Final Round) {2021} PROGRAMMING 750.0
239 Bermart Ice Cream data structures dfs and similar divide and conquer dp implementation trees Statement F Educational Codeforces Round 171 (Rated for Div. 2) {2026} PROGRAMMING
2113 Penchick and Chloe's Trees data structures dfs and similar dp greedy sortings trees Statement E Codeforces Round 987 (Div. 2) {2031} PROGRAMMING 2500.0
1434 Sakurako and Chefir data structures dfs and similar dp trees Statement G Codeforces Round 981 (Div. 3) {2033} PROGRAMMING
457 Auto Complete data structures implementation sortings strings trees Statement I 2024 ICPC Asia Taichung Regional Contest (Unrated, Online Mirror, ICPC Rules, Preferably Teams) {2041} PROGRAMMING