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

Solved
Name
Tags
Solutions
Index
Contest
Type
Points
Tutorial
Rating Level
8917 A Wide, Wide Graph dfs and similar dp dsu greedy trees Statement D Codeforces Round 862 (Div. 2) {1805} PROGRAMMING 1750.0 Editorial of Codeforces Round #862 (Div. 2)
3427 Tree Master brute force data structures dfs and similar hashing trees Statement E Codeforces Round 858 (Div. 2) {1806} PROGRAMMING 2250.0 Codeforces Round #858 (Div. 2) Editorial
7294 Bouncy Ball brute force brute force dfs and similar implementation Statement F Codeforces Round 859 (Div. 4) {1807} PROGRAMMING 114143
3896 Monsters brute force data structures dfs and similar dsu graphs implementation trees Statement E CodeTON Round 4 (Div. 1 + Div. 2, Rated, Prizes!) {1810} PROGRAMMING 2000.0 Editorial of CodeTON Round 4 (Div. 1 + Div. 2, Rated, Prizes!)
2156 Is It Flower? dfs and similar dsu graphs implementation Statement F Codeforces Round 863 (Div. 3) {1811} PROGRAMMING 114788
2349 Between constructive algorithms dfs and similar graphs greedy shortest paths Statement C Codeforces Round 865 (Div. 1) {1815} PROGRAMMING 1750.0 Editorial of Codeforces Round #865 2200
5074 Fish Graph brute force constructive algorithms dfs and similar graphs trees Statement B Codeforces Round 869 (Div. 1) {1817} PROGRAMMING 1000.0 Codeforces Round #869 (Div.1, Div.2) Editorial
7599 Gardening Friends brute force dfs and similar dp graphs trees Statement F Codeforces Round 867 (Div. 3) {1822} PROGRAMMING Codeforces Round #867 (Div. 3) Editorial
3340 LuoTianyi and the Floating Islands (Hard Version) combinatorics dfs and similar math probabilities trees Statement B2 Codeforces Round 872 (Div. 1) {1824} PROGRAMMING 750.0 CodeForces Round 872(Div. 1&2) Editorial 2300
1679 LuoTianyi and XOR-Tree data structures dfs and similar dp dsu greedy trees Statement C Codeforces Round 872 (Div. 1) {1824} PROGRAMMING 1750.0 CodeForces Round 872(Div. 1&2) Editorial 2500
965 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
556 Bus Routes binary search constructive algorithms dfs and similar greedy trees Statement E Codeforces Round 873 (Div. 1) {1827} PROGRAMMING 2500.0 Codeforces Round #873 (Div. 1 & 2) Editorial 3400
33229 Gold Rush brute force dfs and similar dp implementation Statement D Codeforces Round 871 (Div. 4) {1829} PROGRAMMING Codeforces Round 871 (Div. 4) Editorial 1000
26456 The Lakes dfs and similar dsu graphs implementation Statement E Codeforces Round 871 (Div. 4) {1829} PROGRAMMING Codeforces Round 871 (Div. 4) Editorial 1100
21667 Forever Winter dfs and similar graphs math Statement F Codeforces Round 871 (Div. 4) {1829} PROGRAMMING Codeforces Round 871 (Div. 4) Editorial 1300
20182 Copil Copac Draws Trees dfs and similar dp graphs trees Statement A Codeforces Round 875 (Div. 1) {1830} PROGRAMMING 500.0 Codeforces Round #875 (Div.1 + Div. 2) Editorial
6364 Ksyusha and Chinchilla dfs and similar dp dsu greedy implementation trees Statement G Codeforces Round 874 (Div. 3) {1833} PROGRAMMING 116636
656 Doctor's Brown Hypothesis dfs and similar graphs math number theory Statement D Codeforces Round 880 (Div. 1) {1835} PROGRAMMING 1750.0 Codeforces Round 880 Editorial
2104 Railguns dfs and similar dp graphs implementation Statement F Codeforces Round 878 (Div. 3) {1840} PROGRAMMING Codeforces Round #878 (Div.3) Editorial
1801 Tenzing and Tree brute force dfs and similar greedy trees Statement F CodeTON Round 5 (Div. 1 + Div. 2, Rated, Prizes!) {1842} PROGRAMMING 2500.0 CodeTON Round 5 Editorial
21586 Apple Tree combinatorics dfs and similar dp trees Statement D Codeforces Round 881 (Div. 3) {1843} PROGRAMMING Codeforces Round #881 (Div. 3) Editorial
2105 Omsk Metro (hard version) data structures dfs and similar divide and conquer dp implementation math trees Statement F2 Codeforces Round 881 (Div. 3) {1843} PROGRAMMING Codeforces Round #881 (Div. 3) Editorial
6329 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
1174 Tree Weights bitmasks constructive algorithms data structures dfs and similar math matrices number theory trees Statement G Codeforces Round 884 (Div. 1 + Div. 2) {1844} PROGRAMMING 3500.0 Codeforces Round #884 (Div. 1 + Div. 2) Editorial
2151 Great Grids constructive algorithms dfs and similar dsu graphs math Statement E Codeforces Round 884 (Div. 1 + Div. 2) {1844} PROGRAMMING 2000.0 Codeforces Round #884 (Div. 1 + Div. 2) Editorial
1026 The Boss's Identity binary search bitmasks data structures dfs and similar greedy math sortings Statement F Codeforces Round 882 (Div. 2) {1847} PROGRAMMING 3000.0 Tutorial
9938 The Third Letter dfs and similar graphs greedy implementation Statement H Codeforces Round 886 (Div. 4) {1850} PROGRAMMING Codeforces Round #886 (Div. 4) Editorial
13247 Nastya and Potions dfs and similar dp graphs greedy shortest paths sortings Statement E Codeforces Round 888 (Div. 3) {1851} PROGRAMMING 118667
6411 PermuTree (easy version) dfs and similar dp trees Statement E1 Codeforces Round 890 (Div. 2) supported by Constructor Institute {1856} PROGRAMMING 1500.0 Codeforces Round #890 (Div. 2) Editorial
1537 Rollbacks (Easy Version) brute force data structures dfs and similar trees Statement E1 Codeforces Round 893 (Div. 2) {1858} PROGRAMMING 1750.0 Codeforces Round #893 (Div. 2) Editorial 2500
1800 Fast Travel Text Editor dfs and similar graphs shortest paths Statement E Educational Codeforces Round 153 (Rated for Div. 2) {1860} PROGRAMMING Educational Codeforces Round 153 Editorial
23970 Two Binary Strings constructive algorithms dfs and similar greedy Statement B Educational Codeforces Round 154 (Rated for Div. 2) {1861} PROGRAMMING Educational Codeforces Round 154 Editorial
12284 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
3181 Speedrun brute force data structures dfs and similar dp graphs sortings Statement E Pinely Round 2 (Div. 1 + Div. 2) {1863} PROGRAMMING 1750.0
3420 Completely Searching for Inversions dfs and similar dp graphs Statement C COMPFEST 15 - Preliminary Online Mirror (Unrated, ICPC Rules, Teams Preferred) {1866} PROGRAMMING COMPFEST 15 Preliminary — Editorial
508 Most Different Tree brute force constructive algorithms dfs and similar greedy hashing Statement F Codeforces Round 897 (Div. 2) {1867} PROGRAMMING 4000.0
6863 Cyclic Operations constructive algorithms dfs and similar graphs greedy implementation Statement D Codeforces Round 897 (Div. 2) {1867} PROGRAMMING 2000.0
7516 Selling a Menagerie dfs and similar dsu graphs implementation math Statement F Codeforces Round 895 (Div. 3) {1872} PROGRAMMING Codeforces Round 895 (Div. 3) Editorial
9465 Mad City dfs and similar dsu graphs shortest paths Statement H Codeforces Round 898 (Div. 4) {1873} PROGRAMMING 120634
2712 Autosynthesis 2-sat constructive algorithms dfs and similar dp flows graphs trees Statement C Codeforces Round 902 (Div. 1, based on COMPFEST 15 - Final Round) {1876} PROGRAMMING 1250.0 Codeforces Round #902 (Div. 1, Div. 2, based on COMPFEST 15 — Final Round) Editorial
1047 Lexichromatography combinatorics dfs and similar dsu graphs two pointers Statement D Codeforces Round 902 (Div. 1, based on COMPFEST 15 - Final Round) {1876} PROGRAMMING 1750.0 Codeforces Round #902 (Div. 1, Div. 2, based on COMPFEST 15 — Final Round) Editorial
1458 wxhtzdy ORO Tree binary search bitmasks data structures dfs and similar math trees Statement G Codeforces Round 900 (Div. 3) {1878} PROGRAMMING Codeforces round #900 (Div.3) Editorial
9504 Minimum Maximum Distance dfs and similar dp graphs shortest paths trees Statement F Codeforces Round 903 (Div. 3) {1881} PROGRAMMING 121327
7063 Tree XOR bitmasks dfs and similar dp greedy trees Statement D Codeforces Round 899 (Div. 2) {1882} PROGRAMMING 2000.0 Codeforces Round 899 (Div. 2) Editorial
900 Game of Stacks dfs and similar graphs implementation trees Statement D Codeforces Round 906 (Div. 1) {1889} PROGRAMMING 2000.0 Codeforces Round 906 Editorial
150 Doremy's Swapping Trees dfs and similar graphs trees Statement E Codeforces Round 906 (Div. 1) {1889} PROGRAMMING 3500.0 Codeforces Round 906 Editorial
4759 A Growing Tree data structures dfs and similar trees Statement F Codeforces Round 907 (Div. 2) {1891} PROGRAMMING 2250.0
276 Cacti Symphony combinatorics dfs and similar dp graphs Statement E Codeforces Round 908 (Div. 1) {1893} PROGRAMMING 2750.0 Codeforces Round 908 (Div. 1, Div, 2) Editorial
1854 Infinite Card Game brute force dfs and similar games graphs greedy sortings Statement E Educational Codeforces Round 157 (Rated for Div. 2) {1895} PROGRAMMING Educational Codeforces Round 157 Editorial
937 Vova Escapes the Matrix dfs and similar shortest paths Statement F Codeforces Round 910 (Div. 2) {1898} PROGRAMMING 2500.0 Editorial for Codeforces Round #910 (Div. 2)
3999 Unusual Entertainment data structures dfs and similar dsu shortest paths sortings trees Statement G Codeforces Round 909 (Div. 3) {1899} PROGRAMMING Разбор Codeforces Round 909 (Div. 3)
2626 Transitive Graph constructive algorithms dfs and similar dp graphs implementation Statement E Codeforces Round 911 (Div. 2) {1900} PROGRAMMING 2250.0 Codeforces Round 911 (Div. 2) Editorial
14968 Anji's Binary Tree dfs and similar dp shortest paths trees Statement C Codeforces Round 911 (Div. 2) {1900} PROGRAMMING 1250.0 Codeforces Round 911 (Div. 2) Editorial
1972 Compressed Tree dfs and similar dp graphs greedy trees Statement E Educational Codeforces Round 158 (Rated for Div. 2) {1901} PROGRAMMING Educational Codeforces Round 158 Editorial
5567 Collapsing Strings binary search data structures dfs and similar hashing strings trees Statement E Educational Codeforces Round 159 (Rated for Div. 2) {1902} PROGRAMMING Educational Codeforces Round 159 Editorial
1463 Trees and XOR Queries Again bitmasks data structures dfs and similar implementation math trees Statement F Educational Codeforces Round 159 (Rated for Div. 2) {1902} PROGRAMMING Educational Codeforces Round 159 Editorial
1272 Tree Queries binary search data structures dfs and similar implementation trees Statement E Codeforces Round 914 (Div. 2) {1904} PROGRAMMING 2750.0 Codeforces Round 914 (Div. 2) Editorial
495 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
2323 Lights constructive algorithms dfs and similar graphs greedy implementation Statement G Codeforces Round 913 (Div. 3) {1907} PROGRAMMING Codeforces Round 913 (Div. 3) Editorial
2385 Light Bulbs (Easy Version) brute force combinatorics dfs and similar dp dsu graphs math Statement G1 Codeforces Round 916 (Div. 3) {1914} PROGRAMMING Codeforces Round 916 (Div. 3) Editorial
1805 Light Bulbs (Hard Version) combinatorics data structures dfs and similar dp dsu graphs hashing Statement G2 Codeforces Round 916 (Div. 3) {1914} PROGRAMMING Codeforces Round 916 (Div. 3) Editorial
4979 Programming Competition dfs and similar greedy trees Statement F Codeforces Round 916 (Div. 3) {1914} PROGRAMMING Codeforces Round 916 (Div. 3) Editorial
2632 Happy Life in University brute force data structures dfs and similar dp implementation trees Statement E Good Bye 2023 {1916} PROGRAMMING 2000.0
707 Group Division constructive algorithms dfs and similar graphs Statement F Good Bye 2023 {1916} PROGRAMMING 2750.0
1095 Caterpillar on a Tree binary search dfs and similar graphs greedy implementation trees Statement F Codeforces Round 922 (Div. 2) {1918} PROGRAMMING 3000.0 Codeforces Round #922 (Div. 2) Editorial
1190 Smooth Sailing (Easy Version) binary search data structures dfs and similar dsu graphs Statement F1 Codeforces Round 919 (Div. 2) {1920} PROGRAMMING 2500.0 Editorial for Codeforces Round #919 (Div. 2)
6755 Berserk Monsters data structures dfs and similar greedy implementation Statement D Educational Codeforces Round 161 (Rated for Div. 2) {1922} PROGRAMMING Educational Codeforces Round 161 Editorial
5114 Count Paths data structures dfs and similar divide and conquer dp dsu trees Statement E Educational Codeforces Round 162 (Rated for Div. 2) {1923} PROGRAMMING Educational Codeforces Round 162 Editorial
2087 Vlad and Avoiding X bitmasks brute force constructive algorithms dfs and similar dp implementation Statement F Codeforces Round 928 (Div. 4) {1926} PROGRAMMING 126132
4506 Vlad and Trouble at MIT dfs and similar dp flows graphs greedy implementation trees Statement G Codeforces Round 928 (Div. 4) {1926} PROGRAMMING 126132
5360 Microcycle data structures dfs and similar dsu graphs greedy trees Statement F Codeforces Round 923 (Div. 3) {1927} PROGRAMMING 125597
5740 Sasha and a Walk in the City combinatorics dfs and similar dp math trees Statement D Codeforces Round 926 (Div. 2) {1929} PROGRAMMING 2000.0 Codeforces Round #926 (Div. 2) Editorial.
2258 Sasha and the Wedding Binary Search Tree combinatorics dfs and similar math sortings trees Statement F Codeforces Round 926 (Div. 2) {1929} PROGRAMMING 3000.0 Codeforces Round #926 (Div. 2) Editorial.
935 Maximize the Difference bitmasks brute force dfs and similar Statement F think-cell Round 1 {1930} PROGRAMMING 2750.0 think-cell Round 1 Editorial
11921 Chat Screenshots combinatorics dfs and similar graphs implementation Statement F Codeforces Round 925 (Div. 3) {1931} PROGRAMMING 125878
2940 Turtle Mission: Robot and the Earthquake dfs and similar dp graphs shortest paths Statement F Codeforces Round 929 (Div. 3) {1933} PROGRAMMING Codeforces Round 929 (Div. 3) Editorial
304 Evidence Board *special constructive algorithms dfs and similar graphs trees Statement B XVIII Open Olympiad in Informatics - Final Stage, Day 1 (Unrated, Online Mirror, IOI rules) {1939} PROGRAMMING
412 More Gifts *special dfs and similar two pointers Statement C XVIII Open Olympiad in Informatics - Final Stage, Day 1 (Unrated, Online Mirror, IOI rules) {1939} PROGRAMMING
105 Parallel Universes *special constructive algorithms dfs and similar dsu graphs Statement A XVIII Open Olympiad in Informatics - Final Stage, Day 2 (Unrated, Online Mirror, IOI rules) {1940} PROGRAMMING
43 Burenka and Pether *special data structures dfs and similar divide and conquer dsu graphs sortings trees Statement C XVIII Open Olympiad in Informatics - Final Stage, Day 2 (Unrated, Online Mirror, IOI rules) {1940} PROGRAMMING
4615 Rudolf and Subway dfs and similar graphs shortest paths Statement G Codeforces Round 933 (Div. 3) {1941} PROGRAMMING 127018
2590 Tree Compass constructive algorithms dfs and similar greedy trees Statement C Codeforces Round 934 (Div. 1) {1943} PROGRAMMING 1250.0 Codeforces Round #934 (Div1, Div2) Editorial
21034 Arrow Path dfs and similar graphs shortest paths Statement C Educational Codeforces Round 163 (Rated for Div. 2) {1948} PROGRAMMING Educational Codeforces Round 163 Editorial
2745 Disks dfs and similar geometry graphs Statement I European Championship 2024 - Online Mirror (Unrated, ICPC Rules, Teams Preferred) {1949} PROGRAMMING European Championship 2024 (EUC) Editorial
2516 Annual Ants' Gathering dfs and similar greedy trees Statement C European Championship 2024 - Online Mirror (Unrated, ICPC Rules, Teams Preferred) {1949} PROGRAMMING European Championship 2024 (EUC) Editorial
5864 GCD on a grid brute force dfs and similar dp math number theory Statement G Codeforces Round 938 (Div. 3) {1955} PROGRAMMING 128243
605 Frequency Mismatch (Hard Version) binary search data structures dfs and similar hashing probabilities trees Statement F2 Codeforces Round 940 (Div. 2) and CodeCraft-23 {1957} PROGRAMMING 1250.0 Codeforces Round #940 and CodeCraft-23 (Div. 2) Editorial 2700
971 Long Way to be Non-decreasing binary search dfs and similar graphs implementation shortest paths two pointers Statement D Codeforces Round 942 (Div. 1) {1967} PROGRAMMING 1750.0 Tutorial 2800
17364 Permutation Game brute force dfs and similar games graphs greedy math Statement D Codeforces Round 943 (Div. 3) {1968} PROGRAMMING 129096 1300
4314 Game on Tree (Medium) dfs and similar dp games trees Statement C2 Helvetic Coding Contest 2024 online mirror (teams allowed, unrated) {1970} PROGRAMMING Helvetic Coding Contest 2024 Editorial 1700
2412 Game on Tree (Hard) dfs and similar dp games trees Statement C3 Helvetic Coding Contest 2024 online mirror (teams allowed, unrated) {1970} PROGRAMMING Helvetic Coding Contest 2024 Editorial 1900
1901 Min-Fund Prison (Easy) dfs and similar trees Statement G1 Helvetic Coding Contest 2024 online mirror (teams allowed, unrated) {1970} PROGRAMMING Helvetic Coding Contest 2024 Editorial 1900
867 Min-Fund Prison (Medium) brute force dfs and similar dp graphs trees Statement G2 Helvetic Coding Contest 2024 online mirror (teams allowed, unrated) {1970} PROGRAMMING Helvetic Coding Contest 2024 Editorial 2200
538 Min-Fund Prison (Hard) bitmasks dfs and similar dp graphs trees Statement G3 Helvetic Coding Contest 2024 online mirror (teams allowed, unrated) {1970} PROGRAMMING Helvetic Coding Contest 2024 Editorial 2400
12422 Circle Perimeter binary search brute force dfs and similar geometry implementation math Statement F Codeforces Round 944 (Div. 4) {1971} PROGRAMMING Codeforces Round 944 (Div. 4) Editorial 1600
2709 ±1 2-sat dfs and similar graphs Statement H Codeforces Round 944 (Div. 4) {1971} PROGRAMMING Codeforces Round 944 (Div. 4) Editorial 2100
7474 Paint the Tree brute force dfs and similar dp greedy shortest paths trees Statement D Codeforces Round 947 (Div. 1 + Div. 2) {1975} PROGRAMMING 1500.0 editorial_zh.pdf 1700
2861 Chain Queries binary search data structures dfs and similar implementation trees Statement E Codeforces Round 947 (Div. 1 + Div. 2) {1975} PROGRAMMING 2000.0 editorial_zh.pdf 2100
1035 Set bitmasks brute force combinatorics dfs and similar divide and conquer dp math Statement F Codeforces Round 947 (Div. 1 + Div. 2) {1975} PROGRAMMING 2500.0 editorial_zh.pdf 2600
1298 Splittable Permutations combinatorics data structures dfs and similar greedy math trees Statement E Educational Codeforces Round 166 (Rated for Div. 2) {1976} PROGRAMMING Educational Codeforces Round 166 Editorial
827 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
1689 Yasya and the Mysterious Tree bitmasks data structures dfs and similar graphs strings trees Statement G Codeforces Round 950 (Div. 3) {1980} PROGRAMMING 130135
2115 Turtle and Multiplication constructive algorithms dfs and similar graphs number theory Statement D Codeforces Round 949 (Div. 2) {1981} PROGRAMMING 2000.0 Simplified Chinese Tutorial
7206 Maximize the Largest Component (Easy Version) brute force data structures dfs and similar dsu graphs implementation Statement H1 Codeforces Round 952 (Div. 4) {1985} PROGRAMMING Codeforces Round 952 (Div. 4) Editorial
1900 Maximize the Largest Component (Hard Version) data structures dfs and similar dsu implementation Statement H2 Codeforces Round 952 (Div. 4) {1985} PROGRAMMING Codeforces Round 952 (Div. 4) Editorial
6390 Non-academic Problem combinatorics dfs and similar dsu graphs Statement F Codeforces Round 954 (Div. 3) {1986} PROGRAMMING 130762
4059 Wonderful Tree! brute force dfs and similar dp flows greedy trees Statement E EPIC Institute of Technology Round Summer 2024 (Div. 1 + Div. 2) {1987} PROGRAMMING 1750.0 EPIC Institute of Technology Round Summer 2024 (Div. 1 + Div. 2) Editorial
602 Simultaneous Coloring dfs and similar divide and conquer graphs Statement F Educational Codeforces Round 167 (Rated for Div. 2) {1989} PROGRAMMING Educational Codeforces Round 167 Editorial
1098 Catch the Mole(Hard Version) binary search data structures dfs and similar interactive trees Statement E2 Codeforces Round 960 (Div. 2) {1990} PROGRAMMING 750.0 Video Tutorial
1523 Stardew Valley constructive algorithms dfs and similar graphs Statement F Codeforces Round 959 sponsored by NEAR (Div. 1 + Div. 2) {1994} PROGRAMMING 2500.0 Video Tutorial
2877 Cases bitmasks brute force combinatorics dfs and similar dp graphs greedy strings Statement D Codeforces Round 961 (Div. 2) {1995} PROGRAMMING 2250.0 Video Tutorial
15828 Maximize the Root binary search dfs and similar dp greedy trees Statement D Educational Codeforces Round 168 (Rated for Div. 2) {1997} PROGRAMMING Video Tutorial
1002 Court Blue (Easy Version) brute force dfs and similar dp math number theory Statement F1 EPIC Institute of Technology Round August 2024 (Div. 1 + Div. 2) {2002} PROGRAMMING 2000.0 EPIC Institute of Technology Round August 2024 (Div. 1 + Div. 2) Editorial
5069 DFS Checker (Easy Version) constructive algorithms data structures dfs and similar hashing implementation Statement D1 EPIC Institute of Technology Round August 2024 (Div. 1 + Div. 2) {2002} PROGRAMMING 1250.0 EPIC Institute of Technology Round August 2024 (Div. 1 + Div. 2) Editorial
2857 DFS Checker (Hard Version) constructive algorithms data structures dfs and similar hashing implementation trees Statement D2 EPIC Institute of Technology Round August 2024 (Div. 1 + Div. 2) {2002} PROGRAMMING 1250.0 EPIC Institute of Technology Round August 2024 (Div. 1 + Div. 2) Editorial
2911 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 EPIC Institute of Technology Round August 2024 (Div. 1 + Div. 2) Editorial
4627 Turtle and a MEX Problem (Hard Version) dfs and similar dp graphs greedy implementation Statement D2 Codeforces Round 968 (Div. 2) {2003} PROGRAMMING 1250.0 sol-zh.pdf
4333 Iris and the Tree brute force data structures dfs and similar dsu math trees Statement B Codeforces Round 969 (Div. 1) {2006} PROGRAMMING 1250.0 Tutorial
5069 Sheriff's Defense dfs and similar dp trees Statement F Codeforces Round 974 (Div. 3) {2014} PROGRAMMING Discussion stream (With Hints)
9526 Tree Pruning brute force data structures dfs and similar greedy sortings trees Statement C Codeforces Round 975 (Div. 1) {2018} PROGRAMMING 750.0 Editorial of Codeforces Round 975 (Div. 1, Div. 2)
7392 Connect the Dots brute force dfs and similar dp dsu graphs math trees Statement D Codeforces Round 976 (Div. 2) and Divide By Zero 9.0 {2020} PROGRAMMING 1500.0 Tutorial for Codeforces Round 976 (Div. 2) and Divide By Zero 9.0
754 Billetes MX (Easy Version) 2-sat binary search combinatorics dfs and similar dsu graphs Statement E1 Codeforces Round 978 (Div. 2) {2022} PROGRAMMING 2250.0 Codeforces Round 978 (Div 2) Editorial
703 Billetes MX (Hard Version) binary search combinatorics dfs and similar dsu graphs Statement E2 Codeforces Round 978 (Div. 2) {2022} PROGRAMMING 1000.0 Codeforces Round 978 (Div 2) Editorial
1369 C+K+S brute force constructive algorithms dfs and similar graphs greedy hashing math strings Statement C Codeforces Round 980 (Div. 1) {2023} PROGRAMMING 1500.0 135341
1047 Choose Your Queries dfs and similar dp graphs greedy trees Statement F Educational Codeforces Round 170 (Rated for Div. 2) {2025} PROGRAMMING Educational Codeforces Round 170 Editorial
2005 Best Subsequence bitmasks dfs and similar flows graph matchings graphs Statement E Educational Codeforces Round 171 (Rated for Div. 2) {2026} PROGRAMMING Educational Codeforces Round 171 Editorial
397 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 Educational Codeforces Round 171 Editorial
13608 Add Zeros data structures dfs and similar graphs sortings Statement C Codeforces Round 982 (Div. 2) {2027} PROGRAMMING 1250.0 Codeforces Round #982 (Div. 2) Editorial
3724 Alice's Adventures in Cards constructive algorithms data structures dfs and similar dp graphs greedy implementation shortest paths Statement D Codeforces Round 986 (Div. 2) {2028} PROGRAMMING 1750.0 Codeforces Round 986 (Div. 2) Editorial
1892 Alice's Adventures in the Rabbit Hole constructive algorithms dfs and similar dp greedy math probabilities trees Statement E Codeforces Round 986 (Div. 2) {2028} PROGRAMMING 2000.0 Codeforces Round 986 (Div. 2) Editorial
3906 Cool Graph constructive algorithms data structures dfs and similar dsu graphs trees Statement D Refact.ai Match 1 (Codeforces Round 985) {2029} PROGRAMMING 2250.0 Refact.ai Match 1 (Codeforces Round 985) Editorial
27546 A Gift From Orangutan brute force dfs and similar greedy sortings Statement A Codeforces Round 979 (Div. 2) {2030} PROGRAMMING 250.0 Codeforces Round 979 Editorial
9642 Penchick and Desert Rabbit data structures dfs and similar dp dsu greedy two pointers Statement D Codeforces Round 987 (Div. 2) {2031} PROGRAMMING 2000.0 Codeforces Round 987 (Div. 2) Editorial
2677 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 Codeforces Round 987 (Div. 2) Editorial
14084 Sakurako, Kosuke, and the Permutation brute force data structures dfs and similar dsu fft greedy math Statement E Codeforces Round 981 (Div. 3) {2033} PROGRAMMING 135520
1990 Sakurako and Chefir data structures dfs and similar dp trees Statement G Codeforces Round 981 (Div. 3) {2033} PROGRAMMING 135520
9098 Trapped in the Witch's Labyrinth constructive algorithms dfs and similar graphs implementation Statement C Rayan Programming Contest 2024 - Selection (Codeforces Round 989, Div. 1 + Div. 2) {2034} PROGRAMMING 1500.0 Rayan 2024 Selection Round Editorial
1092 Tree Operations binary search dfs and similar dp trees Statement F Codeforces Global Round 27 {2035} PROGRAMMING 2250.0 Codeforces Global Round 27 Editorial
5833 Non Prime Tree brute force constructive algorithms dfs and similar greedy number theory trees two pointers Statement D Codeforces Round 992 (Div. 2) {2040} PROGRAMMING 2000.0 Codeforces Round #992 (Div.2) Editorial
2656 Control of Randomness combinatorics dfs and similar graphs greedy math probabilities trees Statement E Codeforces Round 992 (Div. 2) {2040} PROGRAMMING 2250.0 Codeforces Round #992 (Div.2) Editorial
505 Segmentation Folds brute force dfs and similar number theory Statement F 2024 ICPC Asia Taichung Regional Contest (Unrated, Online Mirror, ICPC Rules, Preferably Teams) {2041} PROGRAMMING Problem Analysis and Hints (PDF)
4681 Drunken Maze dfs and similar graphs shortest paths Statement D 2024 ICPC Asia Taichung Regional Contest (Unrated, Online Mirror, ICPC Rules, Preferably Teams) {2041} PROGRAMMING Problem Analysis and Hints (PDF)
520 Vertex Pairs binary search brute force dfs and similar dp greedy trees Statement E Educational Codeforces Round 172 (Rated for Div. 2) {2042} PROGRAMMING 136886
1816 Matrix Transformation bitmasks brute force dfs and similar graphs implementation Statement E Educational Codeforces Round 173 (Rated for Div. 2) {2043} PROGRAMMING Educational Codeforces Round 173 Editorial
3796 Medium Demon Problem (hard version) dfs and similar dp dsu graphs implementation trees Statement G2 Codeforces Round 993 (Div. 4) {2044} PROGRAMMING Codeforces Round 993 (Div. 4) Editorial
7267 Medium Demon Problem (easy version) dfs and similar graph matchings graphs Statement G1 Codeforces Round 993 (Div. 4) {2044} PROGRAMMING Codeforces Round 993 (Div. 4) Editorial
2210 Mirror Maze brute force dfs and similar graphs implementation Statement M 2024-2025 ICPC Asia Jakarta Regional Contest (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {2045} PROGRAMMING raRzKDJLPHcUnqTcwvGznwEdKiDWjEkd.pdf 1800
5356 Tree Destruction dfs and similar dp greedy trees Statement G Codeforces Round 991 (Div. 3) {2050} PROGRAMMING Разбор Codeforces Round 991 (Div. 3)
4503 Resourceful Caterpillar Sequence dfs and similar dp games graphs implementation trees Statement E Good Bye 2024: 2025 is NEAR {2053} PROGRAMMING 2000.0 Good Bye 2024: 2025 is NEAR Editorial
17777 Find the Permutation dfs and similar graphs implementation sortings Statement B Codeforces Round 997 (Div. 2) {2056} PROGRAMMING 1250.0 Codeforces Round #997 (Div. 2) Editorial
12171 Graph Composition dfs and similar dsu graphs greedy Statement E Codeforces Round 998 (Div. 3) {2060} PROGRAMMING Codeforces Round 998 (Div. 3) Editorial
444 The Game (Hard Version) data structures dfs and similar games graphs trees Statement E2 Ethflow Round 1 (Codeforces Round 1001, Div. 1 + Div. 2) {2062} PROGRAMMING 2500.0 Ethflow Round 1 (Codeforces Round 1001, Div. 1 + Div. 2) Editorial
3531 Balanced Tree dfs and similar dp greedy trees Statement D Ethflow Round 1 (Codeforces Round 1001, Div. 1 + Div. 2) {2062} PROGRAMMING 2000.0 Ethflow Round 1 (Codeforces Round 1001, Div. 1 + Div. 2) Editorial
4313 The Game (Easy Version) dfs and similar games graphs trees Statement E1 Ethflow Round 1 (Codeforces Round 1001, Div. 1 + Div. 2) {2062} PROGRAMMING 1500.0 Ethflow Round 1 (Codeforces Round 1001, Div. 1 + Div. 2) Editorial
1520 Counting Is Not Fun (Easy Version) combinatorics data structures dfs and similar dsu implementation math Statement F1 Codeforces Round 1000 (Div. 2) {2063} PROGRAMMING 1750.0 Codeforces Round 1000 (Div. 2) — Editorial
924 Counting Is Not Fun (Hard Version) combinatorics data structures dfs and similar dsu trees Statement F2 Codeforces Round 1000 (Div. 2) {2063} PROGRAMMING 1500.0 Codeforces Round 1000 (Div. 2) — Editorial
2343 Triangle Tree data structures dfs and similar dp dsu greedy trees Statement E Codeforces Round 1000 (Div. 2) {2063} PROGRAMMING 2750.0 Codeforces Round 1000 (Div. 2) — Editorial
7049 Skibidus and Slay data structures dfs and similar graphs greedy trees Statement F Codeforces Round 1003 (Div. 4) {2065} PROGRAMMING Video Tutorial
362 Porto Vs. Benfica data structures dfs and similar dsu graphs shortest paths Statement E European Championship 2025 - Online Mirror (Unrated, ICPC Rules, Teams Preferred) {2068} PROGRAMMING 140239
10995 Tree Jumps combinatorics dfs and similar dp trees Statement D Educational Codeforces Round 175 (Rated for Div. 2) {2070} PROGRAMMING Video Tutorial
9624 Trapmigiano Reggiano constructive algorithms dfs and similar sortings trees Statement C Codeforces Round 1007 (Div. 2) {2071} PROGRAMMING 1500.0 Codeforces Round 1007 (Div. 2) Editorial
133 RGB Walking bitmasks chinese remainder theorem dfs and similar graphs number theory Statement G Codeforces Round 1008 (Div. 1) {2077} PROGRAMMING 3000.0 Codeforces Round 1008 (Div. 1, Div. 2) Editorial
1656 Zebra-like Numbers bitmasks brute force dfs and similar dp math Statement E Educational Codeforces Round 177 (Rated for Div. 2) {2086} PROGRAMMING Educational Codeforces Round 177 Editorial
16043 Disappearing Permutation dfs and similar dsu graphs greedy implementation Statement C Educational Codeforces Round 177 (Rated for Div. 2) {2086} PROGRAMMING Educational Codeforces Round 177 Editorial
3770 Shorten the Array binary search brute force data structures dfs and similar greedy strings trees two pointers Statement G Codeforces Round 1016 (Div. 3) {2093} PROGRAMMING Codeforces Round 1016 (Div. 3) Editorial
3960 Local Construction constructive algorithms dfs and similar graphs implementation two pointers Statement D Codeforces Round 1019 (Div. 2) {2103} PROGRAMMING 2000.0 142149
711 Numbers and Strings brute force dfs and similar dp implementation math Statement F Educational Codeforces Round 178 (Rated for Div. 2) {2104} PROGRAMMING Educational Codeforces Round 178 Editorial
604 Baudelaire (hard version) binary search dfs and similar divide and conquer implementation interactive trees Statement G2 Codeforces Round 1020 (Div. 3) {2106} PROGRAMMING Codeforces Round 1020 (Div. 3) Editorial
3520 Apple Tree Traversing brute force dfs and similar greedy implementation trees Statement D Codeforces Round 1023 (Div. 2) {2107} PROGRAMMING 2000.0 Codeforces Round 1023 (Div 2) Editorial
875 Spruce Dispute constructive algorithms dfs and similar graphs implementation shortest paths trees Statement E Codeforces Round 1022 (Div. 2) {2108} PROGRAMMING 2750.0 Codeforces Round 1022 Editorial
270 Penguin Steps binary search dfs and similar flows graphs shortest paths Statement F Codeforces Round 1025 (Div. 2) {2109} PROGRAMMING 3000.0 Codeforces Round 1025 (Div. 2) Editorial
5560 D/D/D dfs and similar graphs greedy shortest paths Statement D Codeforces Round 1025 (Div. 2) {2109} PROGRAMMING 1750.0 Codeforces Round 1025 (Div. 2) Editorial
8529 Fewer Batteries binary search dfs and similar dp graphs greedy Statement D Codeforces Round 1026 (Div. 2) {2110} PROGRAMMING 2000.0 Codeforces Round 1026 (Div. 2) Editorial
2658 Melody dfs and similar graphs Statement E Codeforces Round 1026 (Div. 2) {2110} PROGRAMMING 2250.0 Codeforces Round 1026 (Div. 2) Editorial
9365 Reachability and Tree constructive algorithms dfs and similar dp trees Statement D Educational Codeforces Round 180 (Rated for Div. 2) {2112} PROGRAMMING Educational Codeforces Round 180 — Editorial
948 Two Arrays constructive algorithms dfs and similar graphs math Statement F Codeforces Round 1031 (Div. 2) {2113} PROGRAMMING 3000.0 Codeforces Round #1031 Editorial
5476 Small Operations binary search bitmasks brute force dfs and similar dp math number theory sortings Statement F Codeforces Round 1027 (Div. 3) {2114} PROGRAMMING 143268
13931 Kirei Attacks the Estate dfs and similar dp trees Statement E Codeforces Round 1027 (Div. 3) {2114} PROGRAMMING 143268
3945 Gellyfish and Camellia Japonica constructive algorithms dfs and similar dp graphs greedy Statement B Codeforces Round 1028 (Div. 1) {2115} PROGRAMMING 1250.0 Codeforces Round 1028 (Div.1, Div.2) Editorial
5907 Wildflower combinatorics dfs and similar trees Statement F Codeforces Round 1029 (Div. 3) {2117} PROGRAMMING Codeforces Round 1029 (Div. 3) Editorial
2481 Red Light, Green Light (Hard version) binary search dfs and similar dp dsu graphs implementation number theory Statement D2 Codeforces Round 1030 (Div. 2) {2118} PROGRAMMING 1000.0 Codeforces Round 1030 (Div. 2) Editorial
8397 Red Light, Green Light (Easy version) brute force dfs and similar dp graphs implementation Statement D1 Codeforces Round 1030 (Div. 2) {2118} PROGRAMMING 1250.0 Codeforces Round 1030 (Div. 2) Editorial
169 Volcanic Eruptions dfs and similar dp Statement F Codeforces Round 1035 (Div. 2) {2119} PROGRAMMING 3000.0 Codeforces Round 1035 (Div. 2) Editorial
4272 1-1-1, Free Tree! data structures dfs and similar graphs trees Statement F Codeforces Round 1037 (Div. 3) {2126} PROGRAMMING 144845
565 23 Rises Again brute force data structures dfs and similar dp flows graphs implementation probabilities trees Statement H Atto Round 1 (Codeforces Round 1041, Div. 1 + Div. 2) {2127} PROGRAMMING 4000.0 Atto Round 1 (Codeforces Round 1041, Div. 1 + Div. 2) Editorial
6159 Root was Built by Love, Broken by Destiny combinatorics dfs and similar graphs trees Statement D Atto Round 1 (Codeforces Round 1041, Div. 1 + Div. 2) {2127} PROGRAMMING 2000.0 Atto Round 1 (Codeforces Round 1041, Div. 1 + Div. 2) Editorial
2721 Ancient Tree constructive algorithms data structures dfs and similar dsu greedy trees Statement E Atto Round 1 (Codeforces Round 1041, Div. 1 + Div. 2) {2127} PROGRAMMING 2500.0 Atto Round 1 (Codeforces Round 1041, Div. 1 + Div. 2) Editorial
2734 Rada and the Chamomile Valley dfs and similar graphs shortest paths Statement F Codeforces Round 1043 (Div. 3) {2132} PROGRAMMING Codeforces Round 1043 (Div. 3) Editorial
1663 I Yearned For The Mines constructive algorithms dfs and similar trees Statement E Codeforces Round 1044 (Div. 2) {2133} PROGRAMMING 2750.0 Codeforces Round 1044 (Div. 2) Editorial
3624 Sliding Tree constructive algorithms dfs and similar trees Statement D Codeforces Round 1045 (Div. 2) {2134} PROGRAMMING 2000.0 145832
3853 By the Assignment bitmasks dfs and similar dsu graphs Statement C Codeforces Round 1046 (Div. 1) {2135} PROGRAMMING 1750.0 Codeforces Round 1046 (Div. 1, Div. 2) Editorial
1916 Cry Me a River dfs and similar dp games graphs Statement G Codeforces Round 1047 (Div. 3) {2137} PROGRAMMING Codeforces Round 1047 (Div. 3) Editorial
3340 Maple and Tree Beauty (Hard Version) bitmasks brute force dfs and similar divide and conquer dp fft trees Statement C2 Codeforces Round 1048 (Div. 1) {2138} PROGRAMMING 750.0 Codeforces Round 1048 (Div. 1, Div. 2) Editorial
5391 Maple and Tree Beauty (Easy Version) dfs and similar dp graphs trees Statement C1 Codeforces Round 1048 (Div. 1) {2138} PROGRAMMING 1250.0 Codeforces Round 1048 (Div. 1, Div. 2) Editorial
83 Merging Vertices in a Graph *special dfs and similar dsu graphs Statement H Kotlin Heroes: Episode 13 {2141} PROGRAMMING Kotlin Heroes 13 Editorial
14005 Max Tree dfs and similar graphs greedy Statement C Codeforces Round 1051 (Div. 2) {2143} PROGRAMMING 1500.0 Codeforces Round 1051 (Div. 2) Editorial
6634 Inversion Value of a Permutation constructive algorithms dfs and similar dp math Statement D Educational Codeforces Round 183 (Rated for Div. 2) {2145} PROGRAMMING Educational Codeforces Round 183 Editorial
974 Long Journey dfs and similar dp graphs matrices number theory shortest paths Statement F Educational Codeforces Round 183 (Rated for Div. 2) {2145} PROGRAMMING Educational Codeforces Round 183 Editorial
4726 Catshock constructive algorithms dfs and similar graphs trees Statement D Codeforces Round 1060 (Div. 2) {2154} PROGRAMMING 1750.0 Codeforces Round 1060 (Div. 2) Editorial
625 Juan's Colorful Tree data structures data structures dfs and similar dfs and similar dsu graphs graphs trees Statement F Codeforces Round 1056 (Div. 2) {2155} PROGRAMMING 3000.0 Codeforces Round 1056 (Div. 2) Editorial
402 Isaac's Queries brute force constructive algorithms dfs and similar divide and conquer greedy interactive math probabilities Statement G Codeforces Round 1066 (Div. 1 + Div. 2) {2157} PROGRAMMING 3000.0 Codeforces Round 1066 (Div. 1 + Div. 2) Editorial
643 Chain Prefix Rank (Easy Version) combinatorics dfs and similar dp math Statement F1 Codeforces Global Round 30 (Div. 1 + Div. 2) {2164} PROGRAMMING 2500.0 Codeforces Global Round 30 Editorial
1566 Journey dfs and similar dsu graphs greedy Statement E Codeforces Global Round 30 (Div. 1 + Div. 2) {2164} PROGRAMMING 2250.0 Codeforces Global Round 30 Editorial
1247 Remove at the lowest cost data structures dfs and similar greedy implementation trees Statement E Codeforces Round 1070 (Div. 2) {2176} PROGRAMMING 2500.0 Codeforces Round 1070 (Div.2) Editorial
1808 Conquer or of Forest combinatorics dfs and similar dsu trees Statement F Good Bye 2025 {2178} PROGRAMMING 2750.0
2480 Tree Coloring (Hard Version) constructive algorithms data structures dfs and similar greedy implementation trees Statement D2 Hello 2026 {2183} PROGRAMMING 2000.0
8734 Tree Coloring (Easy Version) constructive algorithms dfs and similar greedy trees Statement D1 Hello 2026 {2183} PROGRAMMING 1000.0
3807 Cherry Tree dfs and similar dp graphs trees Statement F Codeforces Round 1072 (Div. 3) {2184} PROGRAMMING Codeforces Round 1072 (Div. 3) Editorial
1332 Jerry and Tom data structures dfs and similar games graphs greedy trees Statement C Codeforces Round 1077 (Div. 1) {2187} PROGRAMMING 1750.0 Codeforces Round 1077 (Div. 1, Div. 2) Editorial
2002 Swap to Rearrange constructive algorithms dfs and similar graph matchings graphs greedy strings Statement E Codeforces Round 1081 (Div. 2) {2192} PROGRAMMING 2250.0 Codeforces Round 1081 (Div. 2) Editorial
3454 Cost of Tree data structures dfs and similar dp trees Statement D Codeforces Round 1081 (Div. 2) {2192} PROGRAMMING 1750.0 Codeforces Round 1081 (Div. 2) Editorial
1024 Remove the Grail Tree dfs and similar dp greedy trees Statement H Codeforces Round 1076 (Div. 3) {2193} PROGRAMMING Разбор Codeforces Round 1076 (Div. 3)
2204 Paths in a Tree dfs and similar interactive sortings trees Statement G Codeforces Round 1076 (Div. 3) {2193} PROGRAMMING Разбор Codeforces Round 1076 (Div. 3)
166 Again Trees... (hard version) bitmasks data structures dfs and similar dp fft trees Statement F2 Codeforces Round 1078 (Div. 2) {2194} PROGRAMMING 1750.0 Codeforces Round #1078 Editorial
871 Again Trees... (Easy Version) bitmasks dfs and similar dp fft trees Statement F1 Codeforces Round 1078 (Div. 2) {2194} PROGRAMMING 1750.0 Codeforces Round #1078 Editorial
8330 Idiot First Search dfs and similar dp trees Statement E Codeforces Round 1080 (Div. 3) {2195} PROGRAMMING Codeforces Round 1080 (Div. 3) Editorial
3535 Interactive Graph (Simple Version) combinatorics dfs and similar dp graphs interactive Statement C1 Codeforces Round 1079 (Div. 1) {2196} PROGRAMMING 750.0 Tutorial
2471 Interactive Graph (Hard Version) combinatorics dfs and similar dp graphs interactive Statement C2 Codeforces Round 1079 (Div. 1) {2196} PROGRAMMING 750.0 Tutorial
8488 Alternating Path dfs and similar graphs Statement D Educational Codeforces Round 188 (Rated for Div. 2) {2204} PROGRAMMING Educational Codeforces Round 188 Editorial
576 Upside Down Dijkstra dfs and similar Statement C 2026 ICPC Asia Pacific Championship - Online Mirror (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {2206} PROGRAMMING Tutorial (PDF)
2041 Boxed Like a Fish dfs and similar dp games trees Statement D Codeforces Round 1085 (Div. 1 + Div. 2) {2207} PROGRAMMING 2250.0 Codeforces Round 1085 (Div. 1 + Div. 2) Editorial
4041 Tree Orientation (Easy Version) constructive algorithms dfs and similar dsu graphs greedy trees Statement D1 Codeforces Round 1086 (Div. 2) {2208} PROGRAMMING 1250.0 Tutorial
1745 Tree Orientation (Hard Version) data structures dfs and similar dsu graphs greedy matrices sortings trees Statement D2 Codeforces Round 1086 (Div. 2) {2208} PROGRAMMING 1250.0 Tutorial
3110 The 67th Iteration of "Counting is Fun" dfs and similar implementation math Statement G Codeforces Round 1090 (Div. 4) {2218} PROGRAMMING