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
20826 A Cookie for You constructive algorithms greedy implementation math Statement C Codeforces Round 654 (Div. 2) {1371} PROGRAMMING 1250.0 Codeforces Round #654 (Div. 2) Editorial
13166 Grid-00100 constructive algorithms greedy math Statement D Codeforces Round 654 (Div. 2) {1371} PROGRAMMING 1500.0 Codeforces Round #654 (Div. 2) Editorial
19327 Magical Calendar constructive algorithms math Statement B Codeforces Round 654 (Div. 2) {1371} PROGRAMMING 1000.0 Codeforces Round #654 (Div. 2) Editorial
18292 Omkar and Baseball constructive algorithms math Statement C Codeforces Round 655 (Div. 2) {1372} PROGRAMMING 1500.0 Codeforces Round #655 Editorial 1500
24609 Suborrays constructive algorithms math Statement A Codeforces Round 663 (Div. 2) {1391} PROGRAMMING 500.0 Codeforces Round #663 (Div. 2) Editorial
21295 Ternary Sequence constructive algorithms greedy math Statement B Codeforces Round 665 (Div. 2) {1401} PROGRAMMING 1000.0 Codeforces Round #665 (Div. 2) Editorial
20723 Ahahahahahahahaha constructive algorithms math Statement A Codeforces Round 669 (Div. 2) {1407} PROGRAMMING 500.0 Codeforces Round #669 Editorial
10135 Arrays Sum constructive algorithms greedy math Statement B Grakn Forces 2020 {1408} PROGRAMMING 1000.0 Grakn Forces -- Editorial
15001 Finding Sasuke constructive algorithms math Statement A Technocup 2021 - Elimination Round 1 {1413} PROGRAMMING 500.0 Codeforces Round 679 (Div. 1, Div. 2) and Technocup Round 1 editorial
2796 New Game Plus! constructive algorithms greedy math Statement E Technocup 2021 - Elimination Round 2 {1415} PROGRAMMING 2500.0 Editorial of Codeforces Round 687 (Technocup 2021 — Elimitation Round 2)
6287 Make Them Equal constructive algorithms greedy math Statement B Codeforces Round 673 (Div. 1) {1416} PROGRAMMING 1000.0 Codeforces Round #673 Editorial 2000
832 Bubble Cup hypothesis constructive algorithms dp math Statement J Bubble Cup 13 - Finals [Online Mirror, unrated, Div. 1] {1423} PROGRAMMING FinalsEditorial2020.pdf
25587 Numbers on Whiteboard constructive algorithms data structures games implementation math Statement C Educational Codeforces Round 96 (Rated for Div. 2) {1430} PROGRAMMING Educational Codeforces Round 96 — Editorial
21018 Prime Square constructive algorithms math Statement B Codeforces Round 678 (Div. 2) {1436} PROGRAMMING 1000.0 Codeforces Round #678 (Div. 2). Editorial
16363 Kids Seating constructive algorithms math Statement A Codeforces Round 681 (Div. 2, based on VK Cup 2019-2020 - Final) {1443} PROGRAMMING 500.0 VK Cup 2019-2020 -- Engine Editorial
14024 Add Candies constructive algorithms math Statement A Codeforces Round 683 (Div. 2, by Meet IT) {1447} PROGRAMMING 500.0 Meet IT Codeforces Round Editorial
3807 Errich-Tac-Toe (Hard Version) constructive algorithms math Statement C2 Codeforces Global Round 12 {1450} PROGRAMMING 750.0 Codeforces Global Round 12 Editorial
19875 Ping-pong constructive algorithms games math Statement C Educational Codeforces Round 99 (Rated for Div. 2) {1455} PROGRAMMING 85186
22366 Jumps constructive algorithms math Statement B Educational Codeforces Round 99 (Rated for Div. 2) {1455} PROGRAMMING 85186
1855 K and Medians constructive algorithms math Statement H 2020-2021 ICPC, NERC, Southern and Volga Russian Regional Contest (Online Mirror, ICPC Rules) {1468} PROGRAMMING Tutorial (PDF)
871 Switch and Flip constructive algorithms math Statement G Codeforces Global Round 13 {1491} PROGRAMMING 2250.0 Codeforces Global Round 13 Editorial
21660 M-arrays constructive algorithms greedy math Statement B Codeforces Round 708 (Div. 2) {1497} PROGRAMMING 750.0 Codeforces Round #708 Editorial 1200
26888 k-LCM (easy version) constructive algorithms math Statement C1 Codeforces Round 708 (Div. 2) {1497} PROGRAMMING 750.0 Codeforces Round #708 Editorial 1200
18024 k-LCM (hard version) constructive algorithms math Statement C2 Codeforces Round 708 (Div. 2) {1497} PROGRAMMING 500.0 Codeforces Round #708 Editorial 1600
21436 Domino on Windowsill constructive algorithms math Statement A Educational Codeforces Round 106 (Rated for Div. 2) {1499} PROGRAMMING Educational Codeforces Round 106 Editorial
20195 Flip the Bits constructive algorithms greedy implementation math Statement B Codeforces Round 712 (Div. 2) {1504} PROGRAMMING 1000.0 Codeforces Round #712 Editorial 1200
538 Japanese Game constructive algorithms math Statement J 2020-2021 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1510} PROGRAMMING nerc-2020-offline-tutorial.pdf
20514 Phoenix and Gold constructive algorithms math Statement A Codeforces Global Round 14 {1515} PROGRAMMING 500.0 Editorial
38907 Nastia and Nearly Good Numbers constructive algorithms math Statement A Codeforces Round 720 (Div. 2) {1521} PROGRAMMING 500.0 90477
21920 Nastia and a Good Array constructive algorithms math Statement B Codeforces Round 720 (Div. 2) {1521} PROGRAMMING 1000.0 90477
2567 Figure Fixing constructive algorithms dfs and similar ds graphs math Statement F Codeforces Round 726 (Div. 2) {1537} PROGRAMMING 2000.0 Codeforces Round #726 (Div.2) Editorial
32910 Bad Boy constructive algorithms greedy math Statement B Codeforces Round 726 (Div. 2) {1537} PROGRAMMING 750.0 Codeforces Round #726 (Div.2) Editorial
2051 RPD and Rap Sheet (Hard Version) constructive algorithms dp interactive math Statement D2 Codeforces Round 730 (Div. 2) {1543} PROGRAMMING 1250.0 Codeforces Round #730 (Div. 2) Editorial
566 AquaMoon and Wrong Coordinate constructive algorithms interactive math Statement D Codeforces Round 732 (Div. 1) {1545} PROGRAMMING 2250.0 Codeforces Round #732 Editorial 3000
2836 Domino (hard version) constructive algorithms implementation math Statement D2 Codeforces Round 734 (Div. 3) {1551} PROGRAMMING Editorial for Codeforces Round #734 (Div.3)
7275 Domino (easy version) constructive algorithms math Statement D1 Codeforces Round 734 (Div. 3) {1551} PROGRAMMING Editorial for Codeforces Round #734 (Div.3)
6461 Two Hundred Twenty One (easy version) constructive algorithms dp math Statement D1 Codeforces Round 741 (Div. 2) {1562} PROGRAMMING 1250.0 Editorial of Codeforces Round 741 (Div. 2)
13664 Rings constructive algorithms math Statement C Codeforces Round 741 (Div. 2) {1562} PROGRAMMING 1250.0 Editorial of Codeforces Round 741 (Div. 2)
4613 Expression Evaluation Error constructive algorithms greedy implementation math Statement D Codeforces Round 742 (Div. 2) {1567} PROGRAMMING 1750.0 Codeforces Round #742 Editorial
22811 Permutation Minimization by Deque constructive algorithms greedy math Statement E1 Codeforces Round 744 (Div. 3) {1579} PROGRAMMING Codeforces Round #744 (Div. 3) Editorial
11787 Diameter of Graph constructive algorithms graphs greedy math Statement B Codeforces Round 745 (Div. 2) {1581} PROGRAMMING 1000.0 Codeforces Round #745 Editorial 1200
10972 Vupsen, Pupsen and 0 constructive algorithms math Statement D Codeforces Round 750 (Div. 2) {1582} PROGRAMMING 1750.0 Codeforces Round #750 (Div.2) Editorial
1423 Ideal Farm constructive algorithms math Statement F Codeforces Round 747 (Div. 2) {1594} PROGRAMMING 2750.0 95525 2400
19412 Find Array constructive algorithms math Statement A Codeforces Round 758 (Div.1 + Div. 2) {1608} PROGRAMMING 250.0 Editorial of Codeforces Round #758 (Div.1 + Div. 2)
16445 Anti Light's Cell Guessing constructive algorithms implementation math Statement A Codeforces Global Round 17 {1610} PROGRAMMING 500.0 Codeforces Global Round 17 Editorial
32104 Make Even constructive algorithms math Statement A Codeforces Round 756 (Div. 3) {1611} PROGRAMMING Tutorial 800
7415 Singers' Tour constructive algorithms math Statement E Codeforces Round 760 (Div. 3) {1618} PROGRAMMING Codeforces Round #760 (Div. 3) Editorial
2204 Let's Play the Hat? constructive algorithms math Statement F Codeforces Round 762 (Div. 3) {1619} PROGRAMMING Tutorial
4180 The Winter Hike constructive algorithms greedy math Statement D Hello 2022 {1621} PROGRAMMING 1750.0
25544 Division by Two and Permutation constructive algorithms flows graph matchings greedy math Statement C Codeforces Round 764 (Div. 3) {1624} PROGRAMMING Codeforces Round #764 (Div. 3) Editorial
3284 Grid Xor constructive algorithms greedy implementation interactive math Statement C Codeforces Round 767 (Div. 1) {1628} PROGRAMMING 1250.0 99276
18485 OKEA constructive algorithms math Statement C Codeforces Round 770 (Div. 2) {1634} PROGRAMMING 1500.0 Codeforces Round #770 (Div. 2) editorial
546 Birthday constructive algorithms math Statement G Codeforces Global Round 19 {1637} PROGRAMMING 4000.0 Tutorial
404 Cycle Palindrome constructive algorithms math Statement G CodeTON Round 1 (Div. 1 + Div. 2, Rated, Prizes!) {1656} PROGRAMMING 3250.0 Tutorial
20529 Marin and Photoshoot constructive algorithms math Statement A Codeforces Round 779 (Div. 2) {1658} PROGRAMMING 500.0 Codeforces Round #779 (Div. 2) Editorial
9580 Shinju and the Lost Permutation constructive algorithms math Statement C Codeforces Round 779 (Div. 2) {1658} PROGRAMMING 1750.0 Codeforces Round #779 (Div. 2) Editorial
21463 Red Versus Blue constructive algorithms greedy implementation math Statement A Codeforces Round 782 (Div. 2) {1659} PROGRAMMING 500.0 Codeforces Round #782 (Div. 2) Editorial
24482 GCD vs LCM constructive algorithms math Statement A Codeforces Round 781 (Div. 2) {1665} PROGRAMMING 500.0 Codeforces Round #781 (Div. 2) Editorial
1729 Half Queen Cover constructive algorithms math Statement C Codeforces Round 783 (Div. 1) {1667} PROGRAMMING 1500.0 Codeforces Round #783 Editorial 2400
16359 Log Chopping constructive algorithms games implementation math Statement A Codeforces Global Round 20 {1672} PROGRAMMING 250.0 Global Round 20 Editorial 800
26921 Number Transformation constructive algorithms math Statement A Codeforces Round 786 (Div. 3) {1674} PROGRAMMING 102482
15530 LIS or Reverse LIS? constructive algorithms greedy implementation math Statement C Codeforces Round 793 (Div. 2) {1682} PROGRAMMING 1500.0 Codeforces Round #793 (Div. 2) Editorial
260 Hard Cut constructive algorithms divide and conquer math Statement H Codeforces Round 792 (Div. 1 + Div. 2) {1684} PROGRAMMING 3250.0 Codeforces Round #792 (Div. 1 + Div. 2) Editorial 3400
24231 Digit Minimization constructive algorithms games math Statement A Codeforces Round 792 (Div. 1 + Div. 2) {1684} PROGRAMMING 500.0 Codeforces Round #792 (Div. 1 + Div. 2) Editorial 800
21274 Z mod X = C constructive algorithms math Statement B Codeforces Round 792 (Div. 1 + Div. 2) {1684} PROGRAMMING 750.0 Codeforces Round #792 (Div. 1 + Div. 2) Editorial 800
10722 The Enchanted Forest constructive algorithms greedy math Statement A Codeforces Round 796 (Div. 1) {1687} PROGRAMMING 500.0 Editorial of Codeforces Round 796
31128 Beat The Odds constructive algorithms greedy math Statement A CodeCraft-22 and Codeforces Round 795 (Div. 2) {1691} PROGRAMMING 500.0 Editorial for CodeCraft-22 and Codeforces Round #795 (Div. 2)
681 Equal Reversal constructive algorithms graphs math Statement F Codeforces Round 803 (Div. 2) {1698} PROGRAMMING 2500.0 Codeforces Round #803 (Div. 2) Editorial
24271 The Third Three Number Problem constructive algorithms math Statement A Codeforces Round 804 (Div. 2) {1699} PROGRAMMING 500.0 Codeforces Round #804 (Div. 2) Editorial
19279 Palindromic Numbers constructive algorithms implementation math Statement B Codeforces Round 802 (Div. 2) {1700} PROGRAMMING 1000.0 103978 1100
5189 Magical Array constructive algorithms hashing math Statement D CodeTON Round 2 (Div. 1 + Div. 2, Rated, Prizes!) {1704} PROGRAMMING 1750.0 CodeTON Round 2 Editorial
22458 Difference of GCDs constructive algorithms math Statement B Codeforces Round 808 (Div. 2) {1708} PROGRAMMING 1000.0 104930
17935 Build Permutation constructive algorithms dp math Statement C Codeforces Round 812 (Div. 2) {1713} PROGRAMMING 1750.0 Codeforces Round #812 (Div. 2) Editorial 1200
544 Crop Squares constructive algorithms geometry interactive math Statement F Codeforces Round 816 (Div. 2) {1715} PROGRAMMING 3000.0 Codeforces Round #816 (Div. 2) editorial
23810 Crossmarket constructive algorithms greedy math Statement A Codeforces Round 816 (Div. 2) {1715} PROGRAMMING 500.0 Codeforces Round #816 (Div. 2) editorial
24385 Beautiful Array constructive algorithms greedy math Statement B Codeforces Round 816 (Div. 2) {1715} PROGRAMMING 1000.0 Codeforces Round #816 (Div. 2) editorial
21616 Permutation Chain constructive algorithms math Statement B Educational Codeforces Round 133 (Rated for Div. 2) {1716} PROGRAMMING 105653
124 Impressionism constructive algorithms graphs implementation math Statement E Codeforces Round 814 (Div. 1) {1718} PROGRAMMING 2250.0 Codeforces Round #814 (Div. 1, Div. 2) Editorial
18704 Mathematical Circus constructive algorithms math Statement B Codeforces Round 814 (Div. 2) {1719} PROGRAMMING 1000.0 Codeforces Round #814 (Div. 1, Div. 2) Editorial
843 Misha and Paintings constructive algorithms math Statement E Codeforces Round 815 (Div. 2) {1720} PROGRAMMING 2750.0 Codeforces Round #815 (Div. 2) Editorial
2760 Hot Black Hot White constructive algorithms math Statement H COMPFEST 14 - Preliminary Online Mirror (Unrated, ICPC Rules, Teams Preferred) {1725} PROGRAMMING Tutorial
20180 Rule of League constructive algorithms math Statement B Codeforces Round 821 (Div. 2) {1733} PROGRAMMING 1000.0 Codeforces Round #821 (Div. 2) Editorial
20558 Working Week constructive algorithms greedy math Statement A Codeforces Round 824 (Div. 2) {1735} PROGRAMMING 500.0 Codeforces Round #824 — editorial
23243 Array Recovery constructive algorithms greedy math Statement B Educational Codeforces Round 136 (Rated for Div. 2) {1739} PROGRAMMING Educational Codeforces Round 136 Editorial
8480 Knowledge Cards constructive algorithms data structures greedy math Statement D Codeforces Round 831 (Div. 1 + Div. 2) {1740} PROGRAMMING 1750.0 Tutorial 1500
25970 Funny Permutation constructive algorithms math Statement B Codeforces Round 826 (Div. 3) {1741} PROGRAMMING 107908
13297 Permutation Operations constructive algorithms greedy implementation math Statement C Codeforces Global Round 23 {1746} PROGRAMMING 1000.0 Codeforces Global Round 23 Editorial
17358 Indirect Sort constructive algorithms math Statement A CodeTON Round 3 (Div. 1 + Div. 2, Rated, Prizes!) {1750} PROGRAMMING 500.0 CodeTON Round 3 (Div. 1 + Div. 2) Editorial
19250 Kevin and Permutation constructive algorithms constructive algorithms math Statement B Codeforces Round 829 (Div. 2) {1754} PROGRAMMING 1000.0 Tutorial 800
9788 Doremy's City Construction constructive algorithms greedy math Statement C Codeforces Global Round 24 {1764} PROGRAMMING 1500.0 Codeforces Global Round 24 Editorial
22870 Add Plus Minus Sign constructive algorithms math Statement A Polynomial Round 2022 (Div. 1 + Div. 2, Rated, Prizes!) {1774} PROGRAMMING 500.0 Polynomial Round 2022 (Div. 1 + Div. 2) Editorial
24259 MKnez's ConstructiveForces Task constructive algorithms math Statement B Hello 2023 {1779} PROGRAMMING 750.0
721 Inverse Transformation constructive algorithms implementation math Statement F TypeDB Forces 2023 (Div. 1 + Div. 2, Rated, Prizes!) {1787} PROGRAMMING 2500.0 TypeDB Forces 2023 (Div. 1 + Div. 2, Rated, Prizes!) Editorial
19587 Exponential Equation constructive algorithms math Statement A TypeDB Forces 2023 (Div. 1 + Div. 2, Rated, Prizes!) {1787} PROGRAMMING 500.0 TypeDB Forces 2023 (Div. 1 + Div. 2, Rated, Prizes!) Editorial
20921 Sum of Two Numbers constructive algorithms greedy implementation math Statement B Codeforces Round 851 (Div. 2) {1788} PROGRAMMING 1000.0 Codeforces Round #851 (Div. 2) Editorial
18064 Matching Numbers constructive algorithms greedy math Statement C Codeforces Round 851 (Div. 2) {1788} PROGRAMMING 1500.0 Codeforces Round #851 (Div. 2) Editorial
16318 Fedya and Array constructive algorithms math Statement B Codeforces Round 852 (Div. 2) {1793} PROGRAMMING 1000.0 Codeforces Round #852 Editorial
26557 Not Dividing constructive algorithms greedy math Statement B Codeforces Round 856 (Div. 2) {1794} PROGRAMMING 1000.0 Codeforces Round 856 (Div. 2) Editorial
11085 Shocking Arrangement constructive algorithms greedy math Statement D Codeforces Round 860 (Div. 2) {1798} PROGRAMMING 1750.0 Editorial of Codeforces Round 860 (Div. 2) 1600
1287 City Union constructive algorithms dp geometry greedy implementation math Statement E Codeforces Round 854 by cybercats (Div. 1 + Div. 2) {1799} PROGRAMMING 2250.0 Codeforces Round #854 Editorial