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 >

Solved
Name
Tags
Solutions
Index
Contest
Type
Points
Tutorial
Rating Level
18495 Square? brute force implementation math Statement B Testing Round 16 (Unrated) {1351} PROGRAMMING 1000.0 900
6368 Not So Simple Polygon Embedding binary search brute force geometry math Statement C2 Educational Codeforces Round 87 (Rated for Div. 2) {1354} PROGRAMMING 77593 2000
28748 Sequence with Digits brute force implementation math Statement A Codeforces Round 643 (Div. 2) {1355} PROGRAMMING 750.0 Codeforces Round #643 (Div. 2) Editorial 1200
31690 Berland Poker brute force greedy math Statement A Educational Codeforces Round 88 (Rated for Div. 2) {1359} PROGRAMMING Educational Codeforces Round 88 Editorial 1000
583 RC Kaboom Show binary search brute force data structures geometry math Statement F Educational Codeforces Round 88 (Rated for Div. 2) {1359} PROGRAMMING Educational Codeforces Round 88 Editorial 2900
40288 Odd Selection brute force implementation math Statement A Codeforces Round 646 (Div. 2) {1363} PROGRAMMING 500.0 78202 1200
21315 Codeforces Subsequences brute force constructive algorithms greedy math strings Statement B Codeforces Global Round 8 {1368} PROGRAMMING 1000.0 Codeforces Global Round 8: editorial
46099 C+= brute force greedy math Statement A Codeforces Global Round 8 {1368} PROGRAMMING 500.0 Codeforces Global Round 8: editorial
24972 GCD Compression brute force constructive algorithms math number theory Statement B Codeforces Round 651 (Div. 2) {1370} PROGRAMMING 1000.0 Editorial — Codeforces Round #651
64005 Maximum GCD brute force greedy implementation number theory Statement A Codeforces Round 651 (Div. 2) {1370} PROGRAMMING 500.0 Editorial — Codeforces Round #651
5523 Asterism (Easy Version) brute force combinatorics implementation math number theory sortings Statement E1 Codeforces Round 654 (Div. 2) {1371} PROGRAMMING 1500.0 Codeforces Round #654 (Div. 2) Editorial
5714 Omkar and Circle brute force constructive algorithms dp games greedy Statement D Codeforces Round 655 (Div. 2) {1372} PROGRAMMING 2000.0 Codeforces Round #655 Editorial 2100
2946 Sum of Digits brute force constructive algorithms dp greedy math number theory Statement E Educational Codeforces Round 90 (Rated for Div. 2) {1373} PROGRAMMING Educational Codeforces Round 90 Editorial
2502 Integer Game brute force constructive algorithms games interactive math Statement F Codeforces Global Round 9 {1375} PROGRAMMING 2000.0 79731
13175 Dubious Cyrpto binary search brute force math number theory Statement B Codeforces Round 657 (Div. 2) {1379} PROGRAMMING 750.0 Codeforces Round #657 Editorial 1500
4998 Berserk And Fireball brute force greedy math Statement D Educational Codeforces Round 91 (Rated for Div. 2) {1380} PROGRAMMING Educational Codeforces Round 91 Editorial
25935 Captain Flint and Crew Recruitment brute force math number theory Statement A Codeforces Round 660 (Div. 2) {1388} PROGRAMMING 750.0 Codeforces Round #660 Editorial 800
4546 Segment Intersections binary search brute force greedy implementation math Statement D Educational Codeforces Round 92 (Rated for Div. 2) {1389} PROGRAMMING 80809
15449 Power Sequence binary search brute force math number theory ternary search Statement B Codeforces Round 666 (Div. 2) {1397} PROGRAMMING 1000.0 Codeforces Round #666 — Editorial
11678 RPG Protagonist binary search brute force greedy math Statement B Educational Codeforces Round 94 (Rated for Div. 2) {1400} PROGRAMMING 81942
11360 Zigzags brute force data structures dp math two pointers Statement D Educational Codeforces Round 94 (Rated for Div. 2) {1400} PROGRAMMING 81942
18051 Big Vova brute force greedy math number theory Statement B Codeforces Round 669 (Div. 2) {1407} PROGRAMMING 1000.0 Codeforces Round #669 Editorial
30867 Minimum Product brute force greedy math Statement B Codeforces Round 667 (Div. 3) {1409} PROGRAMMING Codeforces Round #667 (Div. 3) Editorial
24603 Yet Another Array Restoration brute force math Statement C Codeforces Round 667 (Div. 3) {1409} PROGRAMMING Codeforces Round #667 (Div. 3) Editorial
15861 Prison Break brute force brute force math Statement A Technocup 2021 - Elimination Round 2 {1415} PROGRAMMING 500.0 Editorial of Codeforces Round 687 (Technocup 2021 — Elimitation Round 2)
16949 Stairs brute force constructive algorithms greedy implementation math two pointers Statement B Codeforces Round 671 (Div. 2) {1419} PROGRAMMING 750.0 Codeforces Round #671 Editorial
4375 Hexagons brute force implementation math shortest paths ternary search Statement D Codeforces Round 676 (Div. 2) {1421} PROGRAMMING 2000.0 Codeforces Round #676 (Div. 2) Editorial
8116 Rock, Paper, Scissors brute force constructive algorithms flows greedy math Statement E Codeforces Round 674 (Div. 3) {1426} PROGRAMMING 83120 1800
21737 Number of Apartments brute force dp math Statement A Educational Codeforces Round 96 (Rated for Div. 2) {1430} PROGRAMMING Educational Codeforces Round 96 — Editorial
18454 Marketing Scheme brute force constructive algorithms greedy math Statement A Educational Codeforces Round 97 (Rated for Div. 2) {1437} PROGRAMMING 84149
1540 Long Permutation brute force combinatorics math Statement E Codeforces Round 681 (Div. 2, based on VK Cup 2019-2020 - Final) {1443} PROGRAMMING 2500.0 VK Cup 2019-2020 -- Engine Editorial
4434 Checkpoints brute force constructive algorithms greedy math probabilities Statement D Codeforces Round 688 (Div. 2) {1453} PROGRAMMING 2000.0 Codeforces Round #688 (Div. 2) Editorial
1643 Four Points brute force constructive algorithms flows geometry greedy math ternary search Statement E Educational Codeforces Round 99 (Rated for Div. 2) {1455} PROGRAMMING 85186
10169 Divide and Summarize binary search brute force data structures divide and conquer implementation sortings Statement D Codeforces Round 689 (Div. 2, based on Zed Code Competition) {1461} PROGRAMMING 1500.0 Codeforces Round #689 (Div. 2). Editorial
2209 Water Level brute force graphs greedy implementation math Statement E Codeforces Round 689 (Div. 2, based on Zed Code Competition) {1461} PROGRAMMING 2250.0 Codeforces Round #689 (Div. 2). Editorial
23197 Bovine Dilemma brute force math Statement A Good Bye 2020 {1466} PROGRAMMING 500.0 Good Bye 2020 Editorial
10189 Ceil Divisions brute force constructive algorithms math number theory Statement D Educational Codeforces Round 101 (Rated for Div. 2) {1469} PROGRAMMING Educational Codeforces Round 101 Editorial
6769 Strange Definition bitmasks brute force data structures graphs math number theory Statement B Codeforces Round 694 (Div. 1) {1470} PROGRAMMING 750.0 86464
19919 Strange List brute force greedy implementation math Statement B Codeforces Round 694 (Div. 2) {1471} PROGRAMMING 750.0 Codeforces Round #694 Editorial
34984 String LCM brute force math strings Statement B Educational Codeforces Round 102 (Rated for Div. 2) {1473} PROGRAMMING Educational Codeforces Round 102 Editorial
57058 New Year's Number brute force dp math Statement B Codeforces Round 697 (Div. 3) {1475} PROGRAMMING Codeforces Round #697 (Div. 3) Editorial
21491 Inflation binary search brute force greedy math Statement B Educational Codeforces Round 103 (Rated for Div. 2) {1476} PROGRAMMING 87356
18990 Nezzar and Lucky Number brute force dp math Statement B Codeforces Round 698 (Div. 2) {1478} PROGRAMMING 1000.0 Tutorial 1100
32771 Add and Divide brute force greedy math ternary search Statement A Codeforces Round 701 (Div. 2) {1485} PROGRAMMING 500.0 Editorial of Codeforces Round #701 (Div. 2) 1000
10974 Floor and Mod binary search brute force data structures math number theory Statement C Codeforces Round 701 (Div. 2) {1485} PROGRAMMING 1500.0 Editorial of Codeforces Round #701 (Div. 2) 1700
15386 Minimum Ties brute force constructive algorithms dfs and similar graphs greedy implementation math Statement C Educational Codeforces Round 104 (Rated for Div. 2) {1487} PROGRAMMING 87873
477 Two Policemen *special binary search brute force math Statement C Kotlin Heroes: Episode 6 {1488} PROGRAMMING 88522
38691 Sum of Cubes binary search brute force brute force math Statement C Codeforces Round 702 (Div. 3) {1490} PROGRAMMING Codeforces Round #702 (Div. 3) Editorial
27864 Balanced Remainders brute force constructive algorithms math Statement B Codeforces Round 702 (Div. 3) {1490} PROGRAMMING Codeforces Round #702 (Div. 3) Editorial
14222 Minimal Cost brute force greedy implementation math Statement B Codeforces Global Round 13 {1491} PROGRAMMING 750.0 Codeforces Global Round 13 Editorial
24663 GCD Sum brute force math Statement A CodeCraft-21 and Codeforces Round 711 (Div. 2) {1498} PROGRAMMING 500.0 CodeCraft-21 and Codeforces Round #711 (Div. 2) Editorial
9480 Going Home brute force implementation math Statement A Codeforces Round 707 (Div. 1, based on Moscow Open Olympiad in Informatics) {1500} PROGRAMMING 750.0 Codeforces Round #707 Editorial 1800
2306 Two chandeliers binary search brute force chinese remainder theorem math number theory Statement B Codeforces Round 707 (Div. 1, based on Moscow Open Olympiad in Informatics) {1500} PROGRAMMING 750.0 Codeforces Round #707 Editorial 2200
2113 Digits brute force dp math number theory Statement D 2020-2021 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1510} PROGRAMMING nerc-2020-offline-tutorial.pdf
9246 Short Task brute force dp math number theory Statement G Codeforces Round 713 (Div. 3) {1512} PROGRAMMING Codeforces Round #713 (Div. 3) Editorial
17530 Maximum Sum of Products brute force dp implementation math ternary search two pointers Statement D Educational Codeforces Round 108 (Rated for Div. 2) {1519} PROGRAMMING Educational Codeforces Round 108 Editorial
49509 Ordinary Numbers brute force math number theory Statement B Codeforces Round 719 (Div. 3) {1520} PROGRAMMING Editorial
2791 Kill Anton brute force constructive algorithms data structures math strings Statement D Codeforces Round 723 (Div. 2) {1526} PROGRAMMING 2250.0 Codeforces Round #723 (Div. 2) Editorial
34131 Array Reodering brute force greedy math number theory sortings Statement B Educational Codeforces Round 110 (Rated for Div. 2) {1535} PROGRAMMING 91481
2983 Tree Array brute force combinatorics dp math probabilities trees Statement B Codeforces Round 728 (Div. 1) {1540} PROGRAMMING 1250.0 Tutorial
38264 Pleasant Pairs brute force math number theory Statement B Codeforces Round 728 (Div. 2) {1541} PROGRAMMING 1000.0 Tutorial
5605 Need for Pink Slips brute force dfs and similar implementation math probabilities Statement C Codeforces Round 730 (Div. 2) {1543} PROGRAMMING 1500.0 Codeforces Round #730 (Div. 2) Editorial
283 Gregor and the Odd Cows (Hard) brute force geometry math number theory Statement D2 Codeforces Round 736 (Div. 1) {1548} PROGRAMMING 1000.0 Codeforces Round 736 Editorial
2055 Excellent Arrays brute force combinatorics constructive algorithms implementation math Statement D Educational Codeforces Round 111 (Rated for Div. 2) {1550} PROGRAMMING Educational Codeforces Round 111 Editorial
3767 Permutation Shift brute force combinatorics constructive algorithms dfs and similar graphs math Statement E Harbour.Space Scholarship Contest 2021-2022 (open for everyone, rated, Div. 1 + Div. 2) {1553} PROGRAMMING 1750.0 Harbour.Space Scholarship Contest 2021-2022 (Div. 1 + Div. 2) Editorial
13777 Cobb bitmasks brute force greedy math Statement B Codeforces Round 735 (Div. 2) {1554} PROGRAMMING 1250.0 Editorial of Codeforces Round #735 (Div. 2) 1700
30302 PizzaForces brute force math Statement A Educational Codeforces Round 112 (Rated for Div. 2) {1555} PROGRAMMING 93389 900
29116 Ezzat and Two Subsequences brute force math Statement A Codeforces Round 737 (Div. 2) {1557} PROGRAMMING 500.0 Codeforces Round #737 Editorial
11481 Charmed by the Game brute force math Statement A Codeforces Round 740 (Div. 1, based on VK Cup 2021 - Final (Engine)) {1558} PROGRAMMING 500.0 Codeforces Round #740 Editorial 1300
5260 Up the Strip brute force dp math number theory Statement B Codeforces Round 740 (Div. 1, based on VK Cup 2021 - Final (Engine)) {1558} PROGRAMMING 1250.0 Codeforces Round #740 Editorial 1900
6087 Up the Strip (simplified version) brute force data structures dp math number theory Statement D1 Codeforces Round 740 (Div. 2, based on VK Cup 2021 - Final (Engine)) {1561} PROGRAMMING 1500.0 Codeforces Round #740 Editorial 1700
20521 Scenes From a Memory brute force implementation math number theory Statement B Codeforces Round 741 (Div. 2) {1562} PROGRAMMING 1000.0 Editorial of Codeforces Round 741 (Div. 2)
368 Sweepstake *special brute force constructive algorithms implementation math Statement D Kotlin Heroes: Episode 8 {1571} PROGRAMMING Kotlin Heroes 8 Editorial
5337 Array Stabilization (AND version) binary search brute force graphs greedy implementation math number theory shortest paths Statement F Codeforces Round 744 (Div. 3) {1579} PROGRAMMING Codeforces Round #744 (Div. 3) Editorial
28057 Make Them Equal brute force greedy math strings Statement C Codeforces Round 747 (Div. 2) {1594} PROGRAMMING 1500.0 95525 1200
1606 Rubik's Cube Coloring (hard version) brute force dp implementation math trees Statement E2 Codeforces Round 747 (Div. 2) {1594} PROGRAMMING 1500.0 95525 2300
408 Shortest path brute force geometry math Statement G Bubble Cup 14 - Finals Online Mirror (Unrated, ICPC Rules, Teams Preferred, Div. 1) {1599} PROGRAMMING BubbleCup2021.pdf
1921 AmShZ and G.O.A.T. binary search brute force greedy math Statement E Codeforces Global Round 17 {1610} PROGRAMMING 2500.0 Codeforces Global Round 17 Editorial
9178 Menorah brute force graphs greedy math Statement C Codeforces Global Round 18 {1615} PROGRAMMING 1750.0 Global Round 18 Editorial
13187 Representative Edges brute force geometry implementation math Statement C Good Bye 2021: 2022 is NEAR {1616} PROGRAMMING 1500.0 Good Bye 2021 -- Editorial 1500
26657 GCD Problem brute force constructive algorithms math Statement B Codeforces Round 761 (Div. 2) {1617} PROGRAMMING 1000.0 Editorial for Codeforces Round #761 (Div. 2)
7262 BA-String bitmasks brute force dp greedy implementation math shortest paths Statement C Educational Codeforces Round 119 (Rated for Div. 2) {1620} PROGRAMMING 98061
2235 Math Test bitmasks brute force greedy Statement E Educational Codeforces Round 120 (Rated for Div. 2) {1622} PROGRAMMING Educational Codeforces Round 120 Editorial
20672 Robot Cleaner brute force implementation math Statement A Codeforces Round 763 (Div. 2) {1623} PROGRAMMING 500.0 Codeforces Round #763 (Div. 2) Editorial
16954 Meximum Array brute force constructive algorithms greedy math Statement A Codeforces Round 767 (Div. 1) {1628} PROGRAMMING 500.0 99276
14048 Strange Test binary search bitmasks brute force greedy math Statement C Codeforces Round 769 (Div. 2) {1632} PROGRAMMING 1500.0 Editorial of Codeforces Round #769
21228 Kill the Monster brute force math Statement C Educational Codeforces Round 122 (Rated for Div. 2) {1633} PROGRAMMING 99539
1896 Fibonacci Additions brute force hashing math Statement F Codeforces Round 770 (Div. 2) {1634} PROGRAMMING 3000.0 Codeforces Round #770 (Div. 2) editorial
15445 MEX and Array brute force dp greedy math Statement B Codeforces Global Round 19 {1637} PROGRAMMING 1000.0 Tutorial
3487 Expand the Path brute force combinatorics implementation math Statement E Educational Codeforces Round 123 (Rated for Div. 2) {1644} PROGRAMMING 100227
19380 Factorials and Powers of Two bitmasks brute force constructive algorithms math Statement C Codeforces Round 774 (Div. 2) {1646} PROGRAMMING 1250.0 Codeforces Round #774 (Div. 2) Editorial 1500
2754 Power Board brute force math number theory Statement E Codeforces Round 774 (Div. 2) {1646} PROGRAMMING 2500.0 Codeforces Round #774 (Div. 2) Editorial 2200
17106 Madoka and the Elegant Gift brute force graphs implementation Statement B Codeforces Round 777 (Div. 2) {1647} PROGRAMMING 1250.0 Codeforces Round #777 Editorial
7244 Integral Array brute force constructive algorithms data structures math Statement B Codeforces Round 775 (Div. 1, based on Moscow Open Olympiad in Informatics) {1648} PROGRAMMING 1000.0 Codeforces Round #775 Editorial
14262 Twist the Permutation brute force constructive algorithms math Statement D Codeforces Round 776 (Div. 3) {1650} PROGRAMMING 100712
480 Tower Defense binary search brute force data structures Statement F Educational Codeforces Round 124 (Rated for Div. 2) {1651} PROGRAMMING Educational Codeforces Round 124 Editorial
2355 Arithmetic Operations brute force divide and conquer graphs math Statement E Codeforces Round 778 (Div. 1 + Div. 2, based on Technocup 2022 Final Round) {1654} PROGRAMMING 2500.0 Editorial of Codeforces Round #778 (Div. 1 + Div. 2, based on Technocup 2022 Final Round) 2300
3172 388535 (Hard Version) bitmasks brute force data structures math Statement D2 Codeforces Round 779 (Div. 2) {1658} PROGRAMMING 750.0 Codeforces Round #779 (Div. 2) Editorial
917 Juju and Binary String brute force constructive algorithms math Statement F Codeforces Round 779 (Div. 2) {1658} PROGRAMMING 3000.0 Codeforces Round #779 (Div. 2) Editorial
1962 AND-MEX Walk bitmasks brute force data structures dfs and similar dsu graphs greedy Statement E Codeforces Round 782 (Div. 2) {1659} PROGRAMMING 2250.0 Codeforces Round #782 (Div. 2) Editorial
7941 Promising String (easy version) brute force implementation math strings Statement F1 Codeforces Round 780 (Div. 3) {1660} PROGRAMMING Codeforces Round #780 (Div. 3) Editorial
1767 Interactive Treasure Hunt brute force interactive math Statement I 2021-2022 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1666} PROGRAMMING Tutorial (PDF)
15668 Make it Increasing brute force greedy math Statement A Codeforces Round 783 (Div. 1) {1667} PROGRAMMING 250.0 Codeforces Round #783 Editorial 1300
5599 Very Suspicious binary search brute force geometry implementation math Statement D Codeforces Round 788 (Div. 2) {1670} PROGRAMMING 2250.0 Tutorial 1700
25213 Dolce Vita binary search brute force greedy math Statement C Educational Codeforces Round 127 (Rated for Div. 2) {1671} PROGRAMMING 102181
423 Permutation Counting brute force combinatorics dp fft math Statement F Educational Codeforces Round 127 (Rated for Div. 2) {1671} PROGRAMMING 102181
19717 Consecutive Points Segment brute force math sortings Statement B Educational Codeforces Round 127 (Rated for Div. 2) {1671} PROGRAMMING 102181
7281 Breaking the Wall binary search brute force constructive algorithms greedy math Statement E Codeforces Round 786 (Div. 3) {1674} PROGRAMMING 102482
34519 Most Similar Words brute force greedy implementation implementation math strings Statement C Codeforces Round 790 (Div. 4) {1676} PROGRAMMING Codeforces Round #790 (Div. 4) Editorial
39744 AvtoBus brute force greedy math number theory Statement A Codeforces Round 791 (Div. 2) {1679} PROGRAMMING 500.0 Codeforces Round #791 (Div. 2) Editorial
1341 Dog Walking brute force greedy math Statement D Educational Codeforces Round 128 (Rated for Div. 2) {1680} PROGRAMMING 102852
731 Cute number binary search brute force implementation math Statement D Codeforces Round 796 (Div. 1) {1687} PROGRAMMING 1500.0 Editorial of Codeforces Round 796
17193 Sum of Substrings brute force constructive algorithms greedy math strings Statement C CodeCraft-22 and Codeforces Round 795 (Div. 2) {1691} PROGRAMMING 1250.0 Editorial for CodeCraft-22 and Codeforces Round #795 (Div. 2)
27039 3SUM brute force math Statement F Codeforces Round 799 (Div. 4) {1692} PROGRAMMING Codeforces Round #799 (Div. 4) Editorial
203 Maximum Product? brute force combinatorics dp greedy math two pointers Statement H Codeforces Global Round 21 {1696} PROGRAMMING 4000.0 Editorial of Codeforces Global Round 21
12698 Good Key, Bad Key bitmasks brute force dp greedy math Statement G Codeforces Round 806 (Div. 4) {1703} PROGRAMMING 104786
29134 Double Strings brute force data structures strings Statement D Codeforces Round 806 (Div. 4) {1703} PROGRAMMING 104786
6382 Difference Array brute force implementation math sortings Statement B Codeforces Round 808 (Div. 1) {1707} PROGRAMMING 750.0 104930
31561 Three Doors brute force dfs and similar math Statement A Educational Codeforces Round 132 (Rated for Div. 2) {1709} PROGRAMMING 105164
2785 Rain brute force data structures math Statement B Codeforces Round 810 (Div. 1) {1710} PROGRAMMING 1000.0 Codeforces Round #810 Editorial
2457 LCM Sum (easy version) binary search brute force combinatorics math number theory two pointers Statement E1 Codeforces Round 813 (Div. 2) {1712} PROGRAMMING 2000.0 Codeforces Round #813 (Div. 2) Editorial
23397 Add Modulo 10 brute force math number theory Statement E Codeforces Round 811 (Div. 3) {1714} PROGRAMMING Codeforces Round #811 (Div. 3) Editorial
6110 Chip Move brute force dp math Statement D Educational Codeforces Round 133 (Rated for Div. 2) {1716} PROGRAMMING 105653
3390 Madoka and The Best University brute force math number theory Statement E Codeforces Round 818 (Div. 2) {1717} PROGRAMMING 2000.0 Codeforces Round #818 (Div. 2) Editorial. 2200
3449 Fibonacci Strings brute force data structures greedy implementation math number theory Statement B Codeforces Round 814 (Div. 1) {1718} PROGRAMMING 1250.0 Codeforces Round #814 (Div. 1, Div. 2) Editorial
1851 Tonya and Burenka-179 brute force data structures greedy math number theory Statement C Codeforces Round 814 (Div. 1) {1718} PROGRAMMING 1250.0 Codeforces Round #814 (Div. 1, Div. 2) Editorial
7663 Maximum AND bitmasks brute force divide and conquer greedy math sortings Statement D Educational Codeforces Round 134 (Rated for Div. 2) {1721} PROGRAMMING 106416
2025 Red-Black Pepper binary search brute force greedy math number theory sortings ternary search Statement E Educational Codeforces Round 135 (Rated for Div. 2) {1728} PROGRAMMING 106805
4539 Kirei and the Linear Function brute force math Statement F Codeforces Round 820 (Div. 3) {1729} PROGRAMMING Codeforces Round #820 (Div. 3) Editorial
12066 Even Subarrays bitmasks brute force hashing math number theory Statement C Codeforces Round 841 (Div. 2) and Divide by Zero 2022 {1731} PROGRAMMING 1500.0 Codeforces Round #841 (Div. 2) and Divide By Zero 2022 Editorial
846 Function Sum brute force combinatorics dp fft math Statement F Codeforces Round 841 (Div. 2) and Divide by Zero 2022 {1731} PROGRAMMING 2750.0 Codeforces Round #841 (Div. 2) and Divide By Zero 2022 Editorial
17493 Bestie brute force constructive algorithms implementation math number theory Statement A Codeforces Round 830 (Div. 2) {1732} PROGRAMMING 750.0 108327 1000
6737 Meta-set brute force combinatorics data structures hashing math Statement D Codeforces Round 824 (Div. 2) {1735} PROGRAMMING 1750.0 Codeforces Round #824 — editorial
19336 Minimize the Thickness brute force greedy math two pointers Statement C Codeforces Round 826 (Div. 3) {1741} PROGRAMMING 107908
13200 Orray bitmasks brute force greedy math Statement G Codeforces Round 827 (Div. 4) {1742} PROGRAMMING 107962
12607 Divisible Numbers (easy version) brute force math number theory Statement E1 Codeforces Round 828 (Div. 3) {1744} PROGRAMMING Codeforces Round #828 (Div. 3) Editorial
6670 Divisible Numbers (hard version) brute force math number theory Statement E2 Codeforces Round 828 (Div. 3) {1744} PROGRAMMING Codeforces Round #828 (Div. 3) Editorial
3713 MEX vs MED brute force math two pointers Statement F Codeforces Round 828 (Div. 3) {1744} PROGRAMMING Codeforces Round #828 (Div. 3) Editorial
8457 Range = √Sum binary search brute force constructive algorithms math two pointers Statement D Codeforces Round 836 (Div. 2) {1758} PROGRAMMING 1750.0 Codeforces Round #836 (Div. 2) Editorial
10240 SlavicG's Favorite Problem bitmasks brute force constructive algorithms data structures dfs and similar graphs greedy Statement G Codeforces Round 835 (Div. 4) {1760} PROGRAMMING 109348
2760 Carry Bit bitmasks brute force combinatorics dp math Statement D Pinely Round 1 (Div. 1 + Div. 2) {1761} PROGRAMMING 1750.0 Pinely Round 1 (Div. 1 + Div. 2) Editorial
1194 Doremy's Experimental Tree brute force constructive algorithms dfs and similar dsu sortings trees Statement F Codeforces Global Round 24 {1764} PROGRAMMING 2250.0 Codeforces Global Round 24 Editorial
10500 Lucky Chains brute force dp greedy math number theory Statement D Educational Codeforces Round 139 (Rated for Div. 2) {1766} PROGRAMMING 110066
857 Laboratory on Pluto brute force combinatorics dp fft greedy math Statement F Codeforces Round 843 (Div. 2) {1775} PROGRAMMING 3000.0 Codeforces Round #843 (Div. 2) Editorial
25785 GCD Partition brute force greedy math number theory Statement B Codeforces Round 846 (Div. 2) {1780} PROGRAMMING 1000.0 111841
1312 Bracket Insertion brute force combinatorics constructive algorithms dp math trees Statement F VK Cup 2022 - Отборочный раунд (Engine) {1781} PROGRAMMING 3250.0 Tutorial
6286 Many Perfect Squares brute force math number theory Statement D VK Cup 2022 - Отборочный раунд (Engine) {1781} PROGRAMMING 2000.0 Tutorial
2431 Game of the Year brute force math number theory Statement E Educational Codeforces Round 141 (Rated for Div. 2) {1783} PROGRAMMING Educational Codeforces Round 141 Editorial
4635 Moving Dots binary search brute force combinatorics dp math two pointers Statement D Codeforces Round 851 (Div. 2) {1788} PROGRAMMING 2250.0 Codeforces Round #851 (Div. 2) Editorial
52466 One and Two brute force math Statement A Codeforces Round 851 (Div. 2) {1788} PROGRAMMING 500.0 Codeforces Round #851 (Div. 2) Editorial
964 Serval and Music Game brute force combinatorics implementation math number theory Statement E Codeforces Round 853 (Div. 2) {1789} PROGRAMMING 2000.0 Codeforces Round #853 (Div. 2) Editorial
32616 Serval and Mocha's Array brute force math number theory Statement A Codeforces Round 853 (Div. 2) {1789} PROGRAMMING 500.0 Codeforces Round #853 (Div. 2) Editorial
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
26791 Premutation brute force implementation math Statement C Codeforces Round 847 (Div. 3) {1790} PROGRAMMING 111948
16705 Min Max Sort binary search brute force greedy math Statement C Educational Codeforces Round 142 (Rated for Div. 2) {1792} PROGRAMMING 111835
12143 Maximum Set binary search brute force combinatorics dp math Statement C Educational Codeforces Round 144 (Rated for Div. 2) {1796} PROGRAMMING Educational Codeforces Round 144 Editorial
1634 Li Hua and Array brute force data structures math number theory Statement E Codeforces Round 864 (Div. 2) {1797} PROGRAMMING 2250.0 Codeforces Round 864 (Div. 2) Editorial
12711 Equalize by Divide brute force constructive algorithms greedy math Statement B Codeforces Round 854 by cybercats (Div. 1 + Div. 2) {1799} PROGRAMMING 1000.0 Codeforces Round #854 Editorial
13808 Pull Your Luck brute force greedy math number theory Statement C Nebius Welcome Round (Div. 1 + Div. 2) {1804} PROGRAMMING 1000.0 Nebius Welcome Round Editorial
1322 Survival of the Weakest (easy version) brute force math sortings Statement F1 Codeforces Round 862 (Div. 2) {1805} PROGRAMMING 1750.0 Editorial of Codeforces Round #862 (Div. 2)
8634 Sequence Master brute force constructive algorithms math Statement C Codeforces Round 858 (Div. 2) {1806} PROGRAMMING 1750.0 Codeforces Round #858 (Div. 2) Editorial
564 Minibuses on Venus (hard version) brute force combinatorics dp math Statement E3 Codeforces Round 861 (Div. 2) {1808} PROGRAMMING 750.0 Codeforces Round #861 (Div. 2) editorial 2800
11534 Long Legs brute force math Statement B Educational Codeforces Round 146 (Rated for Div. 2) {1814} PROGRAMMING Educational Codeforces Round 146 Editorial
5525 Black Cells binary search brute force greedy math Statement D Educational Codeforces Round 147 (Rated for Div. 2) {1821} PROGRAMMING 115296
16184 Tear It Apart brute force implementation math strings Statement C Educational Codeforces Round 147 (Rated for Div. 2) {1821} PROGRAMMING 115296
9414 Magic Triples (Easy Version) brute force math number theory Statement G1 Codeforces Round 867 (Div. 3) {1822} PROGRAMMING Codeforces Round #867 (Div. 3) Editorial
3029 Magic Triples (Hard Version) brute force math number theory Statement G2 Codeforces Round 867 (Div. 3) {1822} PROGRAMMING Codeforces Round #867 (Div. 3) Editorial
18077 Sort with Step brute force math sortings Statement B Codeforces Round 868 (Div. 2) {1823} PROGRAMMING 1000.0 115465
5814 The BOSS Can Count Pairs brute force data structures math Statement B Codeforces Round 875 (Div. 1) {1830} PROGRAMMING 1000.0 Codeforces Round #875 (Div.1 + Div. 2) Editorial
2761 MEX of LCM binary search brute force data structures implementation math number theory two pointers Statement E Codeforces Round 879 (Div. 2) {1834} PROGRAMMING 2500.0 Codeforces Round #879 Editorial
1071 Lottery binary search brute force greedy math sortings two pointers Statement B Codeforces Round 880 (Div. 1) {1835} PROGRAMMING 1250.0 Codeforces Round 880 Editorial
8716 k-th equality brute force implementation math Statement A Codeforces Round 880 (Div. 1) {1835} PROGRAMMING 500.0 Codeforces Round 880 Editorial
2781 In Search of Truth (Easy Version) brute force constructive algorithms interactive math probabilities Statement G1 Codeforces Round 878 (Div. 3) {1840} PROGRAMMING Codeforces Round #878 (Div.3) Editorial
9032 Ranom Numbers brute force dp greedy math strings Statement C Educational Codeforces Round 150 (Rated for Div. 2) {1841} PROGRAMMING 117262
8991 Rating System brute force data structures dp greedy implementation math Statement D Educational Codeforces Round 151 (Rated for Div. 2) {1845} PROGRAMMING 117791
25022 Rudolf and Snowflakes (simple version) binary search brute force implementation math Statement E1 Codeforces Round 883 (Div. 3) {1846} PROGRAMMING
8480 Rudolf and Snowflakes (hard version) binary search brute force implementation math Statement E2 Codeforces Round 883 (Div. 3) {1846} PROGRAMMING
2973 Vika and Bonuses binary search brute force math ternary search Statement D Codeforces Round 885 (Div. 2) {1848} PROGRAMMING 2000.0 Codeforces Round #885 (Div.2) Editorial
923 Vika and Stone Skipping brute force math number theory Statement E Codeforces Round 885 (Div. 2) {1848} PROGRAMMING 2250.0 Codeforces Round #885 (Div.2) Editorial
24477 We Were Both Children brute force implementation math number theory Statement F Codeforces Round 886 (Div. 4) {1850} PROGRAMMING Codeforces Round #886 (Div. 4) Editorial
31471 Escalator Conversations brute force constructive algorithms implementation math Statement A Codeforces Round 888 (Div. 3) {1851} PROGRAMMING 118667
19686 Fibonaccharsis binary search brute force math Statement B Codeforces Round 887 (Div. 2) {1853} PROGRAMMING 1000.0 Codeforces Round 887 (Div 1, Div 2) Tutorial
44554 Longest Divisors Interval brute force combinatorics greedy math number theory Statement B Codeforces Round 889 (Div. 2) {1855} PROGRAMMING 1000.0 Editorial of Codeforces Round 889 (Div. 1 + Div. 2)
12999 The Walkway brute force greedy implementation math number theory Statement B Codeforces Round 893 (Div. 2) {1858} PROGRAMMING 1250.0 Codeforces Round #893 (Div. 2) Editorial 1500
18616 Another Permutation Problem brute force dp greedy math Statement C Codeforces Round 892 (Div. 2) {1859} PROGRAMMING 1250.0 Video solutions from Geothermal.
2108 Maximum Monogonosity brute force dp math Statement E Codeforces Round 892 (Div. 2) {1859} PROGRAMMING 2250.0 Video solutions from Geothermal.
18834 Fancy Coins binary search brute force greedy math Statement B Educational Codeforces Round 153 (Rated for Div. 2) {1860} PROGRAMMING Educational Codeforces Round 153 Editorial
875 Lihmuf Balling brute force math Statement L COMPFEST 15 - Preliminary Online Mirror (Unrated, ICPC Rules, Teams Preferred) {1866} PROGRAMMING COMPFEST 15 Preliminary — Editorial
5013 Replace With Product brute force math two pointers Statement G Codeforces Round 895 (Div. 3) {1872} PROGRAMMING Codeforces Round 895 (Div. 3) Editorial
62329 Good Kid brute force brute force brute force greedy math Statement B Codeforces Round 898 (Div. 4) {1873} PROGRAMMING 120634
1565 Interactive Game with Coloring brute force constructive algorithms graphs implementation interactive math trees Statement E Educational Codeforces Round 155 (Rated for Div. 2) {1879} PROGRAMMING 120773 2400
4030 Counting Rhyme brute force combinatorics dp math number theory sortings Statement D Codeforces Round 904 (Div. 2) {1884} PROGRAMMING 2500.0 Codeforces Round #904 (Div. 2) Editorial
19131 Simple Design brute force constructive algorithms greedy math Statement A Codeforces Round 904 (Div. 2) {1884} PROGRAMMING 500.0 Codeforces Round #904 (Div. 2) Editorial
4168 Monocarp and the Set brute force combinatorics math Statement D Educational Codeforces Round 156 (Rated for Div. 2) {1886} PROGRAMMING Educational Codeforces Round 156 Editorial
27682 Sum of Three brute force constructive algorithms math Statement A Educational Codeforces Round 156 (Rated for Div. 2) {1886} PROGRAMMING Educational Codeforces Round 156 Editorial
4546 Suspicious logarithms binary search brute force implementation math number theory Statement D Codeforces Round 907 (Div. 2) {1891} PROGRAMMING 1500.0
1079 Brukhovich and Exams brute force greedy math sortings Statement E Codeforces Round 907 (Div. 2) {1891} PROGRAMMING 2000.0
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
12991 Torn Lucky Ticket brute force dp hashing implementation math Statement C Educational Codeforces Round 157 (Rated for Div. 2) {1895} PROGRAMMING Educational Codeforces Round 157 Editorial
5338 Small GCD brute force math number theory Statement D Codeforces Round 911 (Div. 2) {1900} PROGRAMMING 2000.0 Codeforces Round 911 (Div. 2) Editorial
16915 Insert and Equalize brute force constructive algorithms greedy math number theory Statement C Educational Codeforces Round 159 (Rated for Div. 2) {1902} PROGRAMMING Educational Codeforces Round 159 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
713 Matrix Rank (Easy Version) brute force combinatorics dp math matrices Statement H1 Good Bye 2023 {1916} PROGRAMMING 2750.0
9745 Mathematical Problem brute force constructive algorithms implementation math strings Statement D Good Bye 2023 {1916} PROGRAMMING 1500.0
12341 Watering an Array brute force greedy implementation math Statement C Codeforces Round 917 (Div. 2) {1917} PROGRAMMING 1500.0 Editorial of Codeforces Round 917 (Div. 2)
29517 Satisfying Constraints brute force greedy math schedules Statement A Codeforces Round 919 (Div. 2) {1920} PROGRAMMING 500.0 Editorial for Codeforces Round #919 (Div. 2)
4964 Sum of Progression brute force data structures implementation math Statement F Codeforces Round 920 (Div. 3) {1921} PROGRAMMING Editorial for Codeforces Round 920 (Div. 3)
3272 Space Harbour brute force data structures implementation math sortings Statement B Codeforces Round 921 (Div. 1) {1924} PROGRAMMING 1000.0 Codeforces Round 921 (Div. 1, Div. 2) Editorial
23069 A Balanced Problemset? brute force greedy math number theory Statement B Codeforces Round 921 (Div. 2) {1925} PROGRAMMING 1000.0 Codeforces Round 921 (Div. 1, Div. 2) Editorial
31497 Choose the Different Ones! brute force greedy math Statement C Codeforces Round 923 (Div. 3) {1927} PROGRAMMING 125597
5153 Lonely Mountain Dungeons binary search brute force data structures greedy math ternary search Statement D Codeforces Round 924 (Div. 2) {1928} PROGRAMMING 1750.0 Codeforces Round 924 Editorial
10328 Physical Education Lesson brute force math number theory Statement C Codeforces Round 924 (Div. 2) {1928} PROGRAMMING 1500.0 Codeforces Round 924 Editorial
17241 Sasha and the Casino binary search brute force dp games greedy math Statement C Codeforces Round 926 (Div. 2) {1929} PROGRAMMING 1500.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
17621 Permutation Printing brute force constructive algorithms math Statement B think-cell Round 1 {1930} PROGRAMMING 1000.0 think-cell Round 1 Editorial
4843 Sum over all Substrings (Easy Version) brute force dp greedy strings Statement D1 think-cell Round 1 {1930} PROGRAMMING 1250.0 think-cell Round 1 Editorial
33787 Make Equal Again brute force greedy math Statement C Codeforces Round 925 (Div. 3) {1931} PROGRAMMING 125878
18856 LR-remainders brute force data structures implementation math Statement C Codeforces Round 927 (Div. 3) {1932} PROGRAMMING 126196
1177 Turtle Magic: Royal Turtle Shell Pattern bitmasks brute force combinatorics math Statement G Codeforces Round 929 (Div. 3) {1933} PROGRAMMING Codeforces Round 929 (Div. 3) Editorial
21966 Yet Another Coin Problem brute force dp greedy math Statement B Codeforces Round 931 (Div. 2) {1934} PROGRAMMING 1000.0 Tutorial
47595 Rudolf and the Ticket brute force math sortings two pointers Statement A Codeforces Round 933 (Div. 3) {1941} PROGRAMMING 127018
1234 Nobody is needed brute force data structures dp math number theory Statement F Codeforces Round 936 (Div. 2) {1946} PROGRAMMING 2750.0 Codeforces Round #936 (Div. 2) Editorial
4466 No Palindromes brute force constructive algorithms greedy hashing implementation strings Statement E Codeforces Global Round 25 {1951} PROGRAMMING 2250.0 Codeforces Global Round 25 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
1667 Nene vs. Monsters (Easy Version) brute force implementation math Statement E1 Codeforces Round 939 (Div. 2) {1956} PROGRAMMING 1500.0 [Editorial] Codeforces Round 939 (Div. 2)
1116 Nene vs. Monsters (Hard Version) brute force implementation math Statement E2 Codeforces Round 939 (Div. 2) {1956} PROGRAMMING 750.0 [Editorial] Codeforces Round 939 (Div. 2)
5775 A BIT of an Inequality bitmasks brute force dp math Statement D Codeforces Round 940 (Div. 2) and CodeCraft-23 {1957} PROGRAMMING 1750.0 Codeforces Round #940 and CodeCraft-23 (Div. 2) Editorial 1900
1616 Carousel of Combinations brute force combinatorics dp math number theory Statement E Codeforces Round 940 (Div. 2) and CodeCraft-23 {1957} PROGRAMMING 2250.0 Codeforces Round #940 and CodeCraft-23 (Div. 2) Editorial 2400
16003 Reverse Card (Easy Version) brute force math number theory Statement B1 Codeforces Round 942 (Div. 1) {1967} PROGRAMMING 500.0 Tutorial 1400
4837 Reverse Card (Hard Version) brute force math number theory Statement B2 Codeforces Round 942 (Div. 1) {1967} PROGRAMMING 750.0 Tutorial 2200
2227 Fenwick Tree bitmasks brute force combinatorics data structures dp math trees Statement C Codeforces Round 942 (Div. 1) {1967} PROGRAMMING 1250.0 Tutorial 2300
17364 Permutation Game brute force dfs and similar games graphs greedy math Statement D Codeforces Round 943 (Div. 3) {1968} PROGRAMMING 129096 1300
2494 Division + LCP (hard version) binary search brute force data structures dp hashing math string suffix structures strings Statement G2 Codeforces Round 943 (Div. 3) {1968} PROGRAMMING 129096 2200
39344 Maximize? brute force math number theory Statement A Codeforces Round 943 (Div. 3) {1968} PROGRAMMING 129096 800
598 Balanced Unshuffle (Medium) brute force constructive algorithms trees Statement A2 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
2245 Cat, Fox and Maximum Array Split brute force interactive math Statement D Codeforces Round 945 (Div. 2) {1973} PROGRAMMING 2000.0 Editorial for Codeforces Round #945 (Div. 2) 2400
28470 Chess For Three brute force dp implementation math Statement A Codeforces Round 945 (Div. 2) {1973} PROGRAMMING 500.0 Editorial for Codeforces Round #945 (Div. 2) 900
21014 378QAQ and Mocha's Array brute force greedy math sortings Statement B Codeforces Round 947 (Div. 1 + Div. 2) {1975} PROGRAMMING 500.0 editorial_zh.pdf 1000
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
8011 Nikita and LCM brute force data structures dp greedy math number theory sortings Statement C Codeforces Round 948 (Div. 2) {1977} PROGRAMMING 1750.0 129858 1900
24224 Turtle and Piggy Are Playing a Game brute force greedy math Statement A Codeforces Round 949 (Div. 2) {1981} PROGRAMMING 500.0 Simplified Chinese Tutorial
9709 Beauty of the mountains brute force data structures implementation math number theory Statement D Codeforces Round 955 (Div. 2, with prizes from NEAR!) {1982} PROGRAMMING 1750.0 130839
19727 Collatz Conjecture brute force implementation math number theory Statement B Codeforces Round 955 (Div. 2, with prizes from NEAR!) {1982} PROGRAMMING 1000.0 130839
23470 Secret Box brute force combinatorics math Statement E Codeforces Round 952 (Div. 4) {1985} PROGRAMMING Codeforces Round 952 (Div. 4) Editorial
56418 Maximum Multiple Sum brute force math Statement B Codeforces Round 952 (Div. 4) {1985} PROGRAMMING Codeforces Round 952 (Div. 4) Editorial
1905 Permutation Problem (Simple Version) brute force combinatorics math number theory Statement G1 Codeforces Round 954 (Div. 3) {1986} PROGRAMMING 130762
1436 Permutation Problem (Hard Version) brute force data structures hashing math number theory Statement G2 Codeforces Round 954 (Div. 3) {1986} PROGRAMMING 130762
17932 Mathematical Problem brute force dp two pointers Statement D Codeforces Round 954 (Div. 3) {1986} PROGRAMMING 130762
47859 X Axis brute force math sortings Statement A Codeforces Round 954 (Div. 3) {1986} PROGRAMMING 130762