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
20713 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
13094 Grid-00100 constructive algorithms greedy math Statement D Codeforces Round 654 (Div. 2) {1371} PROGRAMMING 1500.0 Codeforces Round #654 (Div. 2) Editorial
19254 Magical Calendar constructive algorithms math Statement B Codeforces Round 654 (Div. 2) {1371} PROGRAMMING 1000.0 Codeforces Round #654 (Div. 2) Editorial
18094 Omkar and Baseball constructive algorithms math Statement C Codeforces Round 655 (Div. 2) {1372} PROGRAMMING 1500.0 Codeforces Round #655 Editorial 1500
24537 Suborrays constructive algorithms math Statement A Codeforces Round 663 (Div. 2) {1391} PROGRAMMING 500.0 Codeforces Round #663 (Div. 2) Editorial
21230 Ternary Sequence constructive algorithms greedy math Statement B Codeforces Round 665 (Div. 2) {1401} PROGRAMMING 1000.0 Codeforces Round #665 (Div. 2) Editorial
20597 Ahahahahahahahaha constructive algorithms math Statement A Codeforces Round 669 (Div. 2) {1407} PROGRAMMING 500.0 Codeforces Round #669 Editorial
10061 Arrays Sum constructive algorithms greedy math Statement B Grakn Forces 2020 {1408} PROGRAMMING 1000.0 Grakn Forces -- Editorial
14879 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
2776 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)
6228 Make Them Equal constructive algorithms greedy math Statement B Codeforces Round 673 (Div. 1) {1416} PROGRAMMING 1000.0 Codeforces Round #673 Editorial 2000
805 Bubble Cup hypothesis constructive algorithms dp math Statement J Bubble Cup 13 - Finals [Online Mirror, unrated, Div. 1] {1423} PROGRAMMING FinalsEditorial2020.pdf
25176 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
20815 Prime Square constructive algorithms math Statement B Codeforces Round 678 (Div. 2) {1436} PROGRAMMING 1000.0 Codeforces Round #678 (Div. 2). Editorial
16294 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
13891 Add Candies constructive algorithms math Statement A Codeforces Round 683 (Div. 2, by Meet IT) {1447} PROGRAMMING 500.0 Meet IT Codeforces Round Editorial
3761 Errich-Tac-Toe (Hard Version) constructive algorithms math Statement C2 Codeforces Global Round 12 {1450} PROGRAMMING 750.0 Codeforces Global Round 12 Editorial
19754 Ping-pong constructive algorithms games math Statement C Educational Codeforces Round 99 (Rated for Div. 2) {1455} PROGRAMMING 85186
22186 Jumps constructive algorithms math Statement B Educational Codeforces Round 99 (Rated for Div. 2) {1455} PROGRAMMING 85186
1840 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)
850 Switch and Flip constructive algorithms math Statement G Codeforces Global Round 13 {1491} PROGRAMMING 2250.0 Codeforces Global Round 13 Editorial
20857 M-arrays constructive algorithms greedy math Statement B Codeforces Round 708 (Div. 2) {1497} PROGRAMMING 750.0 Codeforces Round #708 Editorial 1200
26416 k-LCM (easy version) constructive algorithms math Statement C1 Codeforces Round 708 (Div. 2) {1497} PROGRAMMING 750.0 Codeforces Round #708 Editorial 1200
17715 k-LCM (hard version) constructive algorithms math Statement C2 Codeforces Round 708 (Div. 2) {1497} PROGRAMMING 500.0 Codeforces Round #708 Editorial 1600
21367 Domino on Windowsill constructive algorithms math Statement A Educational Codeforces Round 106 (Rated for Div. 2) {1499} PROGRAMMING Educational Codeforces Round 106 Editorial
19252 Flip the Bits constructive algorithms greedy implementation math Statement B Codeforces Round 712 (Div. 2) {1504} PROGRAMMING 1000.0 Codeforces Round #712 Editorial 1200
533 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
20361 Phoenix and Gold constructive algorithms math Statement A Codeforces Global Round 14 {1515} PROGRAMMING 500.0 Editorial
38240 Nastia and Nearly Good Numbers constructive algorithms math Statement A Codeforces Round 720 (Div. 2) {1521} PROGRAMMING 500.0 90477
21681 Nastia and a Good Array constructive algorithms math Statement B Codeforces Round 720 (Div. 2) {1521} PROGRAMMING 1000.0 90477
2539 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
31359 Bad Boy constructive algorithms greedy math Statement B Codeforces Round 726 (Div. 2) {1537} PROGRAMMING 750.0 Codeforces Round #726 (Div.2) Editorial
2036 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
555 AquaMoon and Wrong Coordinate constructive algorithms interactive math Statement D Codeforces Round 732 (Div. 1) {1545} PROGRAMMING 2250.0 Codeforces Round #732 Editorial 3000
2805 Domino (hard version) constructive algorithms implementation math Statement D2 Codeforces Round 734 (Div. 3) {1551} PROGRAMMING Editorial for Codeforces Round #734 (Div.3)
7200 Domino (easy version) constructive algorithms math Statement D1 Codeforces Round 734 (Div. 3) {1551} PROGRAMMING Editorial for Codeforces Round #734 (Div.3)
6412 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)
13493 Rings constructive algorithms math Statement C Codeforces Round 741 (Div. 2) {1562} PROGRAMMING 1250.0 Editorial of Codeforces Round 741 (Div. 2)
4573 Expression Evaluation Error constructive algorithms greedy implementation math Statement D Codeforces Round 742 (Div. 2) {1567} PROGRAMMING 1750.0 Codeforces Round #742 Editorial
22045 Permutation Minimization by Deque constructive algorithms greedy math Statement E1 Codeforces Round 744 (Div. 3) {1579} PROGRAMMING Codeforces Round #744 (Div. 3) Editorial
11614 Diameter of Graph constructive algorithms graphs greedy math Statement B Codeforces Round 745 (Div. 2) {1581} PROGRAMMING 1000.0 Codeforces Round #745 Editorial 1200
10743 Vupsen, Pupsen and 0 constructive algorithms math Statement D Codeforces Round 750 (Div. 2) {1582} PROGRAMMING 1750.0 Codeforces Round #750 (Div.2) Editorial
1396 Ideal Farm constructive algorithms math Statement F Codeforces Round 747 (Div. 2) {1594} PROGRAMMING 2750.0 95525 2400
19251 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)
16299 Anti Light's Cell Guessing constructive algorithms implementation math Statement A Codeforces Global Round 17 {1610} PROGRAMMING 500.0 Codeforces Global Round 17 Editorial
31784 Make Even constructive algorithms math Statement A Codeforces Round 756 (Div. 3) {1611} PROGRAMMING Tutorial 800
7319 Singers' Tour constructive algorithms math Statement E Codeforces Round 760 (Div. 3) {1618} PROGRAMMING Codeforces Round #760 (Div. 3) Editorial
2138 Let's Play the Hat? constructive algorithms math Statement F Codeforces Round 762 (Div. 3) {1619} PROGRAMMING Tutorial
4137 The Winter Hike constructive algorithms greedy math Statement D Hello 2022 {1621} PROGRAMMING 1750.0
25191 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
3244 Grid Xor constructive algorithms greedy implementation interactive math Statement C Codeforces Round 767 (Div. 1) {1628} PROGRAMMING 1250.0 99276
18373 OKEA constructive algorithms math Statement C Codeforces Round 770 (Div. 2) {1634} PROGRAMMING 1500.0 Codeforces Round #770 (Div. 2) editorial
541 Birthday constructive algorithms math Statement G Codeforces Global Round 19 {1637} PROGRAMMING 4000.0 Tutorial
396 Cycle Palindrome constructive algorithms math Statement G CodeTON Round 1 (Div. 1 + Div. 2, Rated, Prizes!) {1656} PROGRAMMING 3250.0 Tutorial
20437 Marin and Photoshoot constructive algorithms math Statement A Codeforces Round 779 (Div. 2) {1658} PROGRAMMING 500.0 Codeforces Round #779 (Div. 2) Editorial
9495 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
20024 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
23998 GCD vs LCM constructive algorithms math Statement A Codeforces Round 781 (Div. 2) {1665} PROGRAMMING 500.0 Codeforces Round #781 (Div. 2) Editorial
1707 Half Queen Cover constructive algorithms math Statement C Codeforces Round 783 (Div. 1) {1667} PROGRAMMING 1500.0 Codeforces Round #783 Editorial 2400
16260 Log Chopping constructive algorithms games implementation math Statement A Codeforces Global Round 20 {1672} PROGRAMMING 250.0 Global Round 20 Editorial 800
26581 Number Transformation constructive algorithms math Statement A Codeforces Round 786 (Div. 3) {1674} PROGRAMMING 102482
15176 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
247 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
24102 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
21148 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
10571 The Enchanted Forest constructive algorithms greedy math Statement A Codeforces Round 796 (Div. 1) {1687} PROGRAMMING 500.0 Editorial of Codeforces Round 796
30859 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)
663 Equal Reversal constructive algorithms graphs math Statement F Codeforces Round 803 (Div. 2) {1698} PROGRAMMING 2500.0 Codeforces Round #803 (Div. 2) Editorial
24181 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
19002 Palindromic Numbers constructive algorithms implementation math Statement B Codeforces Round 802 (Div. 2) {1700} PROGRAMMING 1000.0 103978 1100
5110 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
21530 Difference of GCDs constructive algorithms math Statement B Codeforces Round 808 (Div. 2) {1708} PROGRAMMING 1000.0 104930
17707 Build Permutation constructive algorithms dp math Statement C Codeforces Round 812 (Div. 2) {1713} PROGRAMMING 1750.0 Codeforces Round #812 (Div. 2) Editorial 1200
532 Crop Squares constructive algorithms geometry interactive math Statement F Codeforces Round 816 (Div. 2) {1715} PROGRAMMING 3000.0 Codeforces Round #816 (Div. 2) editorial
23687 Crossmarket constructive algorithms greedy math Statement A Codeforces Round 816 (Div. 2) {1715} PROGRAMMING 500.0 Codeforces Round #816 (Div. 2) editorial
23033 Beautiful Array constructive algorithms greedy math Statement B Codeforces Round 816 (Div. 2) {1715} PROGRAMMING 1000.0 Codeforces Round #816 (Div. 2) editorial
21530 Permutation Chain constructive algorithms math Statement B Educational Codeforces Round 133 (Rated for Div. 2) {1716} PROGRAMMING 105653
121 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
18645 Mathematical Circus constructive algorithms math Statement B Codeforces Round 814 (Div. 2) {1719} PROGRAMMING 1000.0 Codeforces Round #814 (Div. 1, Div. 2) Editorial
825 Misha and Paintings constructive algorithms math Statement E Codeforces Round 815 (Div. 2) {1720} PROGRAMMING 2750.0 Codeforces Round #815 (Div. 2) Editorial
2694 Hot Black Hot White constructive algorithms math Statement H COMPFEST 14 - Preliminary Online Mirror (Unrated, ICPC Rules, Teams Preferred) {1725} PROGRAMMING Tutorial
20001 Rule of League constructive algorithms math Statement B Codeforces Round 821 (Div. 2) {1733} PROGRAMMING 1000.0 Codeforces Round #821 (Div. 2) Editorial
20440 Working Week constructive algorithms greedy math Statement A Codeforces Round 824 (Div. 2) {1735} PROGRAMMING 500.0 Codeforces Round #824 — editorial
22791 Array Recovery constructive algorithms greedy math Statement B Educational Codeforces Round 136 (Rated for Div. 2) {1739} PROGRAMMING Educational Codeforces Round 136 Editorial
8301 Knowledge Cards constructive algorithms data structures greedy math Statement D Codeforces Round 831 (Div. 1 + Div. 2) {1740} PROGRAMMING 1750.0 Tutorial 1500
25698 Funny Permutation constructive algorithms math Statement B Codeforces Round 826 (Div. 3) {1741} PROGRAMMING 107908
13074 Permutation Operations constructive algorithms greedy implementation math Statement C Codeforces Global Round 23 {1746} PROGRAMMING 1000.0 Codeforces Global Round 23 Editorial
17233 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
19082 Kevin and Permutation constructive algorithms constructive algorithms math Statement B Codeforces Round 829 (Div. 2) {1754} PROGRAMMING 1000.0 Tutorial 800
9631 Doremy's City Construction constructive algorithms greedy math Statement C Codeforces Global Round 24 {1764} PROGRAMMING 1500.0 Codeforces Global Round 24 Editorial
22706 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
23986 MKnez's ConstructiveForces Task constructive algorithms math Statement B Hello 2023 {1779} PROGRAMMING 750.0
700 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
19407 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
20524 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
17699 Matching Numbers constructive algorithms greedy math Statement C Codeforces Round 851 (Div. 2) {1788} PROGRAMMING 1500.0 Codeforces Round #851 (Div. 2) Editorial
16084 Fedya and Array constructive algorithms math Statement B Codeforces Round 852 (Div. 2) {1793} PROGRAMMING 1000.0 Codeforces Round #852 Editorial
24441 Not Dividing constructive algorithms greedy math Statement B Codeforces Round 856 (Div. 2) {1794} PROGRAMMING 1000.0 Codeforces Round 856 (Div. 2) Editorial
10532 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
1248 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