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

Solved
Name
Tags
Solutions
Index
Contest
Type
Points
Tutorial
Rating Level
262 Infinite Chess implementation shortest paths Statement I 2022-2023 ICPC, NERC, Southern and Volga Russian Regional Contest (Online Mirror, ICPC Rules, Preferably Teams) {1765} PROGRAMMING 109642 2800
8406 Friendly Spiders dfs and similar graphs math number theory shortest paths Statement D Codeforces Round 843 (Div. 2) {1775} PROGRAMMING 2000.0 Codeforces Round #843 (Div. 2) Editorial
386 The Game of the Century constructive algorithms graphs shortest paths Statement G Hello 2023 {1779} PROGRAMMING 2750.0
3983 Timofey and Black-White Tree brute force dfs and similar divide and conquer graphs greedy math shortest paths trees Statement F Codeforces Round 847 (Div. 3) {1790} PROGRAMMING 111948
1311 Tokens on Graph constructive algorithms dfs and similar graphs shortest paths Statement G Codeforces Round 847 (Div. 3) {1790} PROGRAMMING 111948
1591 Divisors and Table dp number theory shortest paths Statement E Educational Codeforces Round 142 (Rated for Div. 2) {1792} PROGRAMMING 111835
2853 The way home dp graphs greedy shortest paths sortings Statement D Codeforces Round 857 (Div. 1) {1801} PROGRAMMING 1750.0 Codeforces Round #857 Editorial
1171 Approximate Diameter binary search divide and conquer graphs shortest paths Statement F Nebius Welcome Round (Div. 1 + Div. 2) {1804} PROGRAMMING 2750.0 Nebius Welcome Round Editorial
3593 Sum Graph constructive algorithms graphs implementation interactive math shortest paths trees Statement B Codeforces Round 865 (Div. 1) {1815} PROGRAMMING 1250.0 Editorial of Codeforces Round #865 2000
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
315 OH NO1 (-2-3-4) constructive algorithms graphs math shortest paths Statement F Codeforces Round 865 (Div. 1) {1815} PROGRAMMING 3500.0 Editorial of Codeforces Round #865 3500
923 Mex Tree brute force dp trees Statement D Codeforces Round 875 (Div. 1) {1830} PROGRAMMING 2250.0 Codeforces Round #875 (Div.1 + Div. 2) Editorial
18248 Round Dance dsu graphs shortest paths Statement E Codeforces Round 874 (Div. 3) {1833} PROGRAMMING 116636
4715 Tenzing and His Animal Friends brute force constructive algorithms graphs greedy shortest paths Statement D CodeTON Round 5 (Div. 1 + Div. 2, Rated, Prizes!) {1842} PROGRAMMING 1500.0 CodeTON Round 5 Editorial
23596 Come Together geometry implementation math Statement B Educational Codeforces Round 151 (Rated for Div. 2) {1845} PROGRAMMING 117791
5617 Rudolf and CodeVid-23 bitmasks dp graphs greedy shortest paths Statement G Codeforces Round 883 (Div. 3) {1846} PROGRAMMING
13247 Nastya and Potions dfs and similar dp graphs greedy shortest paths sortings Statement E Codeforces Round 888 (Div. 3) {1851} PROGRAMMING 118667
519 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.
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
25493 2D Traveling geometry math shortest paths Statement B Codeforces Round 896 (Div. 2) {1869} PROGRAMMING 750.0 Codeforces Round 896 (Div. 1, Div. 2) Editorial
2929 Another MEX Problem bitmasks dp graphs shortest paths Statement E CodeTON Round 6 (Div. 1 + Div. 2, Rated, Prizes!) {1870} PROGRAMMING 2750.0 CodeTON Round 6 (Div. 1 + Div. 2, Rated, Prizes!) Editorial
9465 Mad City dfs and similar dsu graphs shortest paths Statement H Codeforces Round 898 (Div. 4) {1873} PROGRAMMING 120634
1387 Jellyfish and Math bitmasks dp graphs shortest paths Statement B Codeforces Round 901 (Div. 1) {1874} PROGRAMMING 1250.0 Codeforces Round 901 (Div. 1, Div. 2) Editorial
9504 Minimum Maximum Distance dfs and similar dp graphs shortest paths trees Statement F Codeforces Round 903 (Div. 3) {1881} PROGRAMMING 121327
3888 Time Travel binary search graphs implementation shortest paths Statement B Codeforces Round 905 (Div. 1) {1887} PROGRAMMING 750.0 Codeforces Round #905 (Div. 1, Div. 2, Div. 3) 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)
9487 Alex's whims constructive algorithms graphs shortest paths trees Statement F Codeforces Round 909 (Div. 3) {1899} PROGRAMMING Разбор Codeforces Round 909 (Div. 3)
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)
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
9594 Bicycles dp graphs greedy implementation shortest paths sortings Statement G Codeforces Round 918 (Div. 4) {1915} PROGRAMMING 123952
1341 Moving Platforms graphs math number theory shortest paths Statement G Codeforces Round 927 (Div. 3) {1932} PROGRAMMING 126196
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
1719 Pokémon Arena data structures graphs shortest paths Statement C Codeforces Round 930 (Div. 1) {1936} PROGRAMMING 1500.0 Codeforces Round 930 (Div. 1, Div. 2) Editorial
4615 Rudolf and Subway dfs and similar graphs shortest paths Statement G Codeforces Round 933 (Div. 3) {1941} PROGRAMMING 127018
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
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
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
4082 Determine Winning Islands in Race data structures dp graphs shortest paths Statement D Codeforces Round 965 (Div. 2) {1998} PROGRAMMING 1500.0 Video Tutorial
3117 Call During the Journey binary search brute force graphs greedy shortest paths Statement G Codeforces Round 966 (Div. 3) {2000} PROGRAMMING 132689
13205 Colored Portals binary search data structures graphs greedy shortest paths Statement D Educational Codeforces Round 169 (Rated for Div. 2) {2004} PROGRAMMING Educational Codeforces Round 169 Editorial
8643 Rendez-vous de Marian et Robin graphs shortest paths Statement E Codeforces Round 974 (Div. 3) {2014} PROGRAMMING Discussion stream (With Hints)
1918 Digital Village (Easy Version) brute force data structures dp dsu graphs greedy implementation math shortest paths trees Statement E1 Codeforces Round 977 (Div. 2, based on COMPFEST 16 - Final Round) {2021} PROGRAMMING 1750.0 Codeforces Round #977 (Div. 2, based on COMPFEST 16 — Final Round) Editorial
7042 Skipping brute force data structures dp graphs greedy shortest paths Statement B Codeforces Round 980 (Div. 1) {2023} PROGRAMMING 1000.0 135341
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
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)
929 X Aura graphs shortest paths Statement G 2024-2025 ICPC Asia Jakarta Regional Contest (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {2045} PROGRAMMING raRzKDJLPHcUnqTcwvGznwEdKiDWjEkd.pdf 2200
152 Incompetent Delivery Guy graphs shortest paths Statement I 2024-2025 ICPC, NERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {2052} PROGRAMMING
105 Affectionate Arrays (Hard Version) data structures dp graphs greedy math shortest paths two pointers Statement I2 Good Bye 2024: 2025 is NEAR {2053} PROGRAMMING 2000.0 Good Bye 2024: 2025 is NEAR Editorial
2594 Another Exercise on Graphs (Easy Version) binary search brute force dp graphs shortest paths Statement E1 Hello 2025 {2057} PROGRAMMING 1000.0
1905 Another Exercise on Graphs (hard version) binary search brute force dsu graphs shortest paths sortings trees Statement E2 Hello 2025 {2057} PROGRAMMING 2000.0
6493 Graph and Graph data structures graphs greedy shortest paths Statement D Codeforces Round 1002 (Div. 2) {2059} PROGRAMMING 2000.0 139094
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
61 Pinball graphs shortest paths Statement I European Championship 2025 - Online Mirror (Unrated, ICPC Rules, Teams Preferred) {2068} PROGRAMMING 140239
61 A Very Long Hike shortest paths Statement G European Championship 2025 - Online Mirror (Unrated, ICPC Rules, Teams Preferred) {2068} PROGRAMMING 140239
1492 Gleb and Boating brute force constructive algorithms data structures dp graphs greedy math shortest paths Statement G Codeforces Round 1013 (Div. 3) {2091} PROGRAMMING Codeforces Round 1013 (Div. 3) Editorial
924 Ain and Apple Tree constructive algorithms greedy math trees Statement E Codeforces Round 1023 (Div. 2) {2107} PROGRAMMING 2750.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
626 Variables and Operations graphs greedy shortest paths Statement F Educational Codeforces Round 180 (Rated for Div. 2) {2112} PROGRAMMING Educational Codeforces Round 180 — Editorial
14807 Gellyfish and Flaming Peony brute force constructive algorithms dp greedy math number theory shortest paths Statement A Codeforces Round 1028 (Div. 1) {2115} PROGRAMMING 500.0 Codeforces Round 1028 (Div.1, Div.2) Editorial
5115 Omg Graph brute force dsu graphs greedy shortest paths sortings Statement G Codeforces Round 1029 (Div. 3) {2117} PROGRAMMING Codeforces Round 1029 (Div. 3) Editorial
2456 Traffic Lights brute force dp graphs shortest paths Statement D Order Capital Round 1 (Codeforces Round 1038, Div. 1 + Div. 2) {2122} PROGRAMMING 2000.0 Order Capital Round 1 (Codeforces Round 1038, Div. 1 + Div. 2) Editorial
377 Strict Triangle graphs shortest paths Statement F Codeforces Round 1039 (Div. 2) {2128} PROGRAMMING 4000.0 Codeforces Round #1039 — 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
61 Good Robot Paths *special data structures geometry sortings Statement G Kotlin Heroes: Episode 13 {2141} PROGRAMMING Kotlin Heroes 13 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
306 Create or Duplicate number theory shortest paths Statement H Good Bye 2025 {2178} PROGRAMMING 3750.0
807 Minimum Path Cover dp interactive number theory trees Statement E Nebius Round 2 (Codeforces Round 1088, Div. 1 + Div. 2) {2211} PROGRAMMING 2500.0 Nebius Round 2 and Codeforces Round 1088 Editorial
1017 Shortest Paths *special shortest paths Statement E April Fools Day Contest 2026 {2214} PROGRAMMING