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 3 4 >

Solved
Name
Tags
Solutions
Index
Contest
Type
Points
Tutorial
Rating Level
51 Root of quantum Fourier transform Statement E2 Microsoft Q# Coding Contest - Summer 2020 {1357} PROGRAMMING Microsoft Q# Coding Contest – Summer 2020: editorial
393 Breadboard Capacity (easy version) Statement H1 Codeforces Global Round 8 {1368} PROGRAMMING 3000.0 Codeforces Global Round 8: editorial
248 Breadboard Capacity (hard version) Statement H2 Codeforces Global Round 8 {1368} PROGRAMMING 1500.0 Codeforces Global Round 8: editorial
155 Boboniu and Banknote Collection Statement E Codeforces Round 664 (Div. 1) {1394} PROGRAMMING 2500.0 Codeforces Round #664 Editorial 3500
85 Wakanda Forever Statement A Bubble Cup 13 - Finals [Online Mirror, unrated, Div. 1] {1423} PROGRAMMING FinalsEditorial2020.pdf
44 Does anyone else hate the wind? Statement D Bubble Cup 13 - Finals [Online Mirror, unrated, Div. 1] {1423} PROGRAMMING FinalsEditorial2020.pdf
162 BubbleSquare Tokens Statement N Bubble Cup 13 - Finals [Online Mirror, unrated, Div. 1] {1423} PROGRAMMING FinalsEditorial2020.pdf
204 A Convex Game Statement E Codeforces Round 679 (Div. 1, based on Technocup 2021 Elimination Round 1) {1434} PROGRAMMING 2500.0 Codeforces Round 679 (Div. 1, Div. 2) and Technocup Round 1 editorial
511 Game On Tree Statement G Educational Codeforces Round 98 (Rated for Div. 2) {1452} PROGRAMMING 84847
20133 Two Brackets data structures greedy Statement C Educational Codeforces Round 98 (Rated for Div. 2) {1452} PROGRAMMING 84847
340 Range Diameter Sum Statement F Codeforces Round 691 (Div. 1) {1458} PROGRAMMING 3500.0 Codeforces Round #691 Editorial (finished)
17209 Add to Neighbour and Remove greedy math number theory Statement D Codeforces Round 690 (Div. 3) {1462} PROGRAMMING Codeforces Round #690 (Div. 3) Editorial
6540 Three Bags brute force constructive algorithms greedy Statement C Codeforces Round 695 (Div. 2) {1467} PROGRAMMING 1500.0 Codeforces Round #695 (Div. 2) Editorial 1900
20745 Prison Break Statement A Технокубок 2021 - Финал {1482} PROGRAMMING 500.0 Technocup 2021: Final Round and Codeforces Round #709 — tutorial
11270 Prison Break Statement A Codeforces Round 709 (Div. 2, based on Technocup 2021 Final Round) {1484} PROGRAMMING 500.0 Technocup 2021: Final Round and Codeforces Round #709 — tutorial
826 Xenolith? Hippodrome? Statement D April Fools Day Contest 2021 {1505} PROGRAMMING tutorial
315 Encoded message Statement G April Fools Day Contest 2021 {1505} PROGRAMMING tutorial
525 L BREAK into program Statement H April Fools Day Contest 2021 {1505} PROGRAMMING tutorial
573 Mysterious language again, seriously? Statement I April Fools Day Contest 2021 {1505} PROGRAMMING tutorial
161 ASCII Automata Art Statement A 2020-2021 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1510} PROGRAMMING
260 Equilibrium Point /\textbackslash/\textbackslash Statement E 2020-2021 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1510} PROGRAMMING
60 Fiber Shape Statement F 2020-2021 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1510} PROGRAMMING nerc-2020-offline-tutorial.pdf
1328 Guide Statement G 2020-2021 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1510} PROGRAMMING
357 Gates to Another World Statement G Deltix Round, Summer 2021 (open for everyone, rated, Div. 1 + Div. 2) {1556} PROGRAMMING 3000.0 94384 3300
347 Eye-Pleasing City Park Tour Statement E COMPFEST 13 - Finals Online Mirror (Unrated, ICPC Rules, Teams Preferred) {1575} PROGRAMMING COMPFEST 13 — Editorial
274 Managing Telephone Poles Statement M COMPFEST 13 - Finals Online Mirror (Unrated, ICPC Rules, Teams Preferred) {1575} PROGRAMMING COMPFEST 13 — Editorial
11 Cactus Lady and her Cing Statement C ICPC WF Moscow Invitational Contest - Online Mirror (Unrated, ICPC Rules, Teams Preferred) {1578} PROGRAMMING Tutorial (PDF)
46 Dragon Curve Statement D ICPC WF Moscow Invitational Contest - Online Mirror (Unrated, ICPC Rules, Teams Preferred) {1578} PROGRAMMING Tutorial (PDF)
38623 Elections Statement A Codeforces Round 748 (Div. 3) {1593} PROGRAMMING Editorial for Codeforces Round #748 (Div.3)
1793 Changing Brackets data structures greedy Statement G Codeforces Round 748 (Div. 3) {1593} PROGRAMMING Editorial for Codeforces Round #748 (Div.3)
147 Restaurant Game Statement B Bubble Cup 14 - Finals Online Mirror (Unrated, ICPC Rules, Teams Preferred, Div. 1) {1599} PROGRAMMING BubbleCup2021.pdf
31 Bubble Popping Statement D Bubble Cup 14 - Finals Online Mirror (Unrated, ICPC Rules, Teams Preferred, Div. 1) {1599} PROGRAMMING BubbleCup2021.pdf
358 Mars Statement F Bubble Cup 14 - Finals Online Mirror (Unrated, ICPC Rules, Teams Preferred, Div. 1) {1599} PROGRAMMING BubbleCup2021.pdf
96 Pushing Robots Statement H Deltix Round, Autumn 2021 (open for everyone, rated, Div. 1 + Div. 2) {1609} PROGRAMMING 3750.0 Deltix Round, Autumn 2021. Editorial 3500
18783 Polycarp Recovers the Permutation constructive algorithms Statement C Codeforces Round 756 (Div. 3) {1611} PROGRAMMING Tutorial 1000
977 Subsequences Galore bitmasks combinatorics dp math Statement G Educational Codeforces Round 119 (Rated for Div. 2) {1620} PROGRAMMING 98061
8740 Replace the Numbers data structures ds greedy trees Statement E Educational Codeforces Round 119 (Rated for Div. 2) {1620} PROGRAMMING 98061
4549 Organizing SWERC Statement A SWERC 2021-2022 - Online Mirror (Unrated, ICPC Rules, Teams Preferred) {1662} PROGRAMMING 102042
1438 Is it rated - 3 Statement D April Fools Day Contest 2022 {1663} PROGRAMMING April Fools Day Contest 2022 Editorial
355 In Every Generation... Statement F April Fools Day Contest 2022 {1663} PROGRAMMING April Fools Day Contest 2022 Editorial
216 Six Characters Statement G April Fools Day Contest 2022 {1663} PROGRAMMING April Fools Day Contest 2022 Editorial
124 Admissible Map Statement A 2021-2022 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1666} PROGRAMMING Tutorial (PDF)
59 Budget Distribution Statement B 2021-2022 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1666} PROGRAMMING Tutorial (PDF)
275 Kingdom Partition Statement K 2021-2022 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1666} PROGRAMMING Tutorial (PDF)
16998 A-B-C Sort constructive algorithms implementation sortings Statement D Codeforces Round 786 (Div. 3) {1674} PROGRAMMING 102482
3262 Almost Triple Deletions data structures dp greedy Statement D Codeforces Round 804 (Div. 2) {1699} PROGRAMMING 1750.0 Codeforces Round #804 (Div. 2) Editorial
23693 Technical Support Statement A Codeforces Round 829 (Div. 2) {1754} PROGRAMMING 500.0 Tutorial 800
1397 Hospital Queue binary search graphs greedy Statement H 2022-2023 ICPC, NERC, Southern and Volga Russian Regional Contest (Online Mirror, ICPC Rules, Preferably Teams) {1765} PROGRAMMING 109642 2200
2774 Count Binary Strings Statement C Educational Codeforces Round 140 (Rated for Div. 2) {1767} PROGRAMMING 110225
113 Jumbled Trees Statement J 2022-2023 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1773} PROGRAMMING 2900
32 Cactus Meets Torus Statement C 2022-2023 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1773} PROGRAMMING 3500
130 Window Signals (easy version) Statement H1 VK Cup 2022 - Отборочный раунд (Engine) {1781} PROGRAMMING 3750.0 Tutorial
104 Window Signals (hard version) Statement H2 VK Cup 2022 - Отборочный раунд (Engine) {1781} PROGRAMMING 1500.0 Tutorial
283 Minimums or Medians Statement F VK Cup 2022 - Финальный раунд (Engine) {1784} PROGRAMMING 4000.0 Codeforces Round #850 Editorial
22509 Keep it Beautiful implementation strings Statement B Educational Codeforces Round 150 (Rated for Div. 2) {1841} PROGRAMMING 117262
228 Four Suits Statement F Educational Codeforces Round 154 (Rated for Div. 2) {1861} PROGRAMMING Educational Codeforces Round 154 Editorial
313 Jackets and Packets dp Statement J COMPFEST 15 - Preliminary Online Mirror (Unrated, ICPC Rules, Teams Preferred) {1866} PROGRAMMING COMPFEST 15 Preliminary — Editorial
245 MEXanization Statement G CodeTON Round 6 (Div. 1 + Div. 2, Rated, Prizes!) {1870} PROGRAMMING 3250.0 CodeTON Round 6 (Div. 1 + Div. 2, Rated, Prizes!) Editorial
19814 Make it Alternating combinatorics dp greedy Statement C Educational Codeforces Round 155 (Rated for Div. 2) {1879} PROGRAMMING 120773 1300
184 Contingency Plan 2 Statement I 2023-2024 ICPC, Asia Jakarta Regional Contest (Online Mirror, Unrated, ICPC Rules, Teams Preferred) {1906} PROGRAMMING problem_analysis.pdf
646 Joy of Pokémon Observation Statement J 2023-2024 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1912} PROGRAMMING 2300
60 Antiparticle Antiphysics Statement A 2024 ICPC Asia Pacific Championship - Online Mirror (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1938} PROGRAMMING
211 Attraction Score Statement B 2024 ICPC Asia Pacific Championship - Online Mirror (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1938} PROGRAMMING
1618 Bit Counting Sequence Statement C 2024 ICPC Asia Pacific Championship - Online Mirror (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1938} PROGRAMMING
98 Bánh Bò Statement D 2024 ICPC Asia Pacific Championship - Online Mirror (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1938} PROGRAMMING
1107 Duplicates Statement E 2024 ICPC Asia Pacific Championship - Online Mirror (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1938} PROGRAMMING
834 Forming Groups Statement F 2024 ICPC Asia Pacific Championship - Online Mirror (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1938} PROGRAMMING
1151 Personality Test Statement G 2024 ICPC Asia Pacific Championship - Online Mirror (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1938} PROGRAMMING
2332 Pho Restaurant Statement H 2024 ICPC Asia Pacific Championship - Online Mirror (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1938} PROGRAMMING
81 Symmetric Boundary Statement I 2024 ICPC Asia Pacific Championship - Online Mirror (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1938} PROGRAMMING
1399 There and Back Again Statement J 2024 ICPC Asia Pacific Championship - Online Mirror (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1938} PROGRAMMING
683 Tree Quiz Statement K 2024 ICPC Asia Pacific Championship - Online Mirror (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1938} PROGRAMMING
312 XOR Operations Statement L 2024 ICPC Asia Pacific Championship - Online Mirror (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1938} PROGRAMMING
66 Zig-zag Statement M 2024 ICPC Asia Pacific Championship - Online Mirror (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1938} PROGRAMMING
123 Damage per Second Statement E European Championship 2024 - Online Mirror (Unrated, ICPC Rules, Teams Preferred) {1949} PROGRAMMING European Championship 2024 (EUC) Editorial
142 Division Avoidance Statement H European Championship 2024 - Online Mirror (Unrated, ICPC Rules, Teams Preferred) {1949} PROGRAMMING European Championship 2024 (EUC) Editorial
604 Dark Matter Statement I April Fools Day Contest 2024 {1952} PROGRAMMING April Fools Day Contest 2024 Editorial
43400 Problem Generator Statement A Codeforces Round 950 (Div. 3) {1980} PROGRAMMING 130135
57 Shohag Loves Pebae Statement G CodeTON Round 9 (Div. 1 + Div. 2, Rated, Prizes!) {2039} PROGRAMMING 4250.0
42 Grid Game Statement G 2024 ICPC Asia Taichung Regional Contest (Unrated, Online Mirror, ICPC Rules, Preferably Teams) {2041} PROGRAMMING
86 Trophic Balance Species Statement K 2024 ICPC Asia Taichung Regional Contest (Unrated, Online Mirror, ICPC Rules, Preferably Teams) {2041} PROGRAMMING
45 Building Castle Statement L 2024 ICPC Asia Taichung Regional Contest (Unrated, Online Mirror, ICPC Rules, Preferably Teams) {2041} PROGRAMMING
27 Railway Construction Statement N 2024 ICPC Asia Taichung Regional Contest (Unrated, Online Mirror, ICPC Rules, Preferably Teams) {2041} PROGRAMMING
67 GCDDCG Statement K 2024-2025 ICPC Asia Jakarta Regional Contest (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {2045} PROGRAMMING 2900
28 Aquatic Dragon Statement D 2024-2025 ICPC Asia Jakarta Regional Contest (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {2045} PROGRAMMING 3500
2939 Adrenaline Rush Statement A 2024-2025 ICPC, NERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {2052} PROGRAMMING
352 BitBitJump Statement B 2024-2025 ICPC, NERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {2052} PROGRAMMING
1149 Expression Correction Statement E 2024-2025 ICPC, NERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {2052} PROGRAMMING
155 Geometric Balance Statement G 2024-2025 ICPC, NERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {2052} PROGRAMMING
79 Knowns and Unknowns Statement K 2024-2025 ICPC, NERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {2052} PROGRAMMING
102 Legacy Screensaver Statement L 2024-2025 ICPC, NERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {2052} PROGRAMMING
242 Friends and Pizza Statement F Educational Codeforces Round 175 (Rated for Div. 2) {2070} PROGRAMMING
818 Control Towers Statement A 2025 ICPC Asia Pacific Championship - Online Mirror (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {2073} PROGRAMMING
19 Three-Dimensional Embedding Statement B 2025 ICPC Asia Pacific Championship - Online Mirror (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {2073} PROGRAMMING
210 Cactus Connectivity Statement C 2025 ICPC Asia Pacific Championship - Online Mirror (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {2073} PROGRAMMING
343 Tower of Hanoi Statement D 2025 ICPC Asia Pacific Championship - Online Mirror (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {2073} PROGRAMMING
39 Hold the Star Statement F 2025 ICPC Asia Pacific Championship - Online Mirror (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {2073} PROGRAMMING
590 Corrupted File Statement G 2025 ICPC Asia Pacific Championship - Online Mirror (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {2073} PROGRAMMING
81 Squares on Grid Lines Statement I 2025 ICPC Asia Pacific Championship - Online Mirror (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {2073} PROGRAMMING
709 Gathering Sharks Statement J 2025 ICPC Asia Pacific Championship - Online Mirror (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {2073} PROGRAMMING