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
18677 Kuroni and Impossible Calculation brute force combinatorics math number theory Statement C Ozon Tech Challenge 2020 (Div.1 + Div.2, Rated, T-shirts + prizes!) {1305} PROGRAMMING 1250.0 Ozon Tech Challenge 2020 Editorial 1600
3230 Kuroni and the Punishment math number theory probabilities Statement F Ozon Tech Challenge 2020 (Div.1 + Div.2, Rated, T-shirts + prizes!) {1305} PROGRAMMING 2500.0 Ozon Tech Challenge 2020 Editorial 2500
103 Bad Cryptography math number theory Statement F VK Cup 2019-2020 - Elimination Round (Engine) {1310} PROGRAMMING 3500.0 VK Cup 2019-2020 - Elimination Round (Engine) and Codeforces Round #623 3300
18316 Adding Powers bitmasks greedy implementation math number theory ternary search Statement C Educational Codeforces Round 83 (Rated for Div. 2) {1312} PROGRAMMING 74640
27520 Two Regular Polygons geometry math number theory Statement A Educational Codeforces Round 83 (Rated for Div. 2) {1312} PROGRAMMING 74640
2701 Instant Noodles graphs hashing math number theory Statement C Codeforces Round 626 (Div. 1, based on Moscow Open Olympiad in Informatics) {1322} PROGRAMMING 1500.0 Codeforces Round #626 Editorial
3547 Infinite Path brute force dfs and similar graphs math number theory Statement D Educational Codeforces Round 84 (Rated for Div. 2) {1327} PROGRAMMING Educational Codeforces Round 84 Editorial 2200
7158 Limericks math number theory Statement B April Fools Day Contest 2020 {1331} PROGRAMMING April Fools Day Contest 2020: editorial
18918 Composite Coloring brute force constructive algorithms greedy math number theory Statement B Codeforces Round 630 (Div. 2) {1332} PROGRAMMING 1000.0 Codeforces Round #630 Editorial 1500
4567 Kate and imperfection greedy implementation math number theory sortings two pointers Statement F Codeforces Round 632 (Div. 2) {1333} PROGRAMMING 2500.0 Codeforces Round #632 (Div. 2) editorial
3168 Divisor Paths combinatorics graphs greedy math number theory Statement E Educational Codeforces Round 85 (Rated for Div. 2) {1334} PROGRAMMING Educational Codeforces Round 85 Editorial
14989 Yet Another Counting Problem math number theory Statement C Educational Codeforces Round 86 (Rated for Div. 2) {1342} PROGRAMMING 76633 1700
16485 Hilbert's Hotel math number theory sortings Statement A Codeforces Round 639 (Div. 1) {1344} PROGRAMMING 500.0 Codeforces Round #639 Editorial 1600
150 Two IP Cameras *special math number theory Statement G Kotlin Heroes: Episode 4 {1346} PROGRAMMING Kotlin Heroes: Episode 4 — Editorial 2300
21500 Orac and LCM data structures math number theory Statement A Codeforces Round 641 (Div. 1) {1349} PROGRAMMING 500.0 Codeforces Round #641 Editorial 1600
29295 Orac and Models dp math number theory Statement B Codeforces Round 641 (Div. 2) {1350} PROGRAMMING 1000.0 Codeforces Round #641 Editorial 1400
6723 Modular Stability combinatorics math number theory Statement E Educational Codeforces Round 88 (Rated for Div. 2) {1359} PROGRAMMING Educational Codeforces Round 88 Editorial 2000
42771 Buying Shovels math number theory Statement D Codeforces Round 644 (Div. 3) {1360} PROGRAMMING Codeforces Round #644 (Div. 3) Editorial 1300
8333 A/B Matrix constructive algorithms flows greedy math number theory Statement G Codeforces Round 644 (Div. 3) {1360} PROGRAMMING Codeforces Round #644 (Div. 3) Editorial 1900
12291 Two Divisors constructive algorithms math number theory Statement D Educational Codeforces Round 89 (Rated for Div. 2) {1366} PROGRAMMING Educational Codeforces Round 89 Editorial
24982 GCD Compression brute force constructive algorithms math number theory Statement B Codeforces Round 651 (Div. 2) {1370} PROGRAMMING 1000.0 Editorial — Codeforces Round #651
27056 Number Game games math number theory Statement C Codeforces Round 651 (Div. 2) {1370} PROGRAMMING 1500.0 Editorial — Codeforces Round #651
2511 Asterism (Hard Version) binary search math number theory sortings Statement E2 Codeforces Round 654 (Div. 2) {1371} PROGRAMMING 1250.0 Codeforces Round #654 (Div. 2) Editorial
5524 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
36199 Omkar and Last Class of Math constructive algorithms greedy math number theory Statement B Codeforces Round 655 (Div. 2) {1372} PROGRAMMING 1000.0 Codeforces Round #655 Editorial 1300
2947 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
277 Cubic Lattice geometry math matrices number theory Statement I Codeforces Global Round 9 {1375} PROGRAMMING 4000.0 79731
13177 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
25937 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
49653 LCM Problem constructive algorithms greedy math number theory Statement A Educational Codeforces Round 92 (Rated for Div. 2) {1389} PROGRAMMING 80809
3718 Calendar Ambiguity math number theory Statement E Educational Codeforces Round 92 (Rated for Div. 2) {1389} PROGRAMMING 80809
15450 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
1274 Running Competition bitmasks fft math number theory Statement G Educational Codeforces Round 93 (Rated for Div. 2) {1398} PROGRAMMING Educational Codeforces Round 93 Editorial
10505 Maximum Distributed Tree constructive algorithms dfs and similar greedy math number theory sortings trees Statement D Codeforces Round 665 (Div. 2) {1401} PROGRAMMING 1750.0 Codeforces Round #665 (Div. 2) Editorial
26756 Mere Array constructive algorithms math number theory number theory sortings sortings Statement C Codeforces Round 665 (Div. 2) {1401} PROGRAMMING 1500.0 Codeforces Round #665 (Div. 2) Editorial
28614 Distance and Axis math number theory Statement A Codeforces Round 665 (Div. 2) {1401} PROGRAMMING 500.0 Codeforces Round #665 (Div. 2) Editorial
1269 Game of Pairs constructive algorithms dfs and similar interactive math number theory Statement D Codeforces Round 668 (Div. 1) {1404} PROGRAMMING 2250.0 Codeforces Round #668 Editorial
18053 Big Vova brute force greedy math number theory Statement B Codeforces Round 669 (Div. 2) {1407} PROGRAMMING 1000.0 Codeforces Round #669 Editorial
423 Equal Product data structures math number theory two pointers Statement F Educational Codeforces Round 95 (Rated for Div. 2) {1418} PROGRAMMING Unofficial Editorial for Educational Round 95 (Div. 2)
3495 Decryption bitmasks constructive algorithms implementation math number theory Statement E Codeforces Round 671 (Div. 2) {1419} PROGRAMMING 2250.0 Codeforces Round #671 Editorial
5435 Lonely Numbers binary search math number theory Statement K Bubble Cup 13 - Finals [Online Mirror, unrated, Div. 1] {1423} PROGRAMMING FinalsEditorial2020.pdf
1628 Xum bitmasks constructive algorithms math number theory Statement E Codeforces Global Round 11 {1427} PROGRAMMING 1500.0 Editorial of Global Round 11 2500
621 Sum Over Subsets combinatorics math number theory Statement F Codeforces Round 678 (Div. 2) {1436} PROGRAMMING 3000.0 Codeforces Round #678 (Div. 2). Editorial
14381 Division math number theory Statement A Codeforces Round 680 (Div. 1, based on Moscow Team Olympiad) {1444} PROGRAMMING 500.0 Codeforces Round #680 Editorial
22081 Number into Sequence constructive algorithms math number theory Statement D Codeforces Round 686 (Div. 3) {1454} PROGRAMMING Codeforces Round #686 (Div. 3) Editorial
25095 Row GCD math number theory Statement A Codeforces Round 691 (Div. 1) {1458} PROGRAMMING 500.0 Codeforces Round #691 Editorial (finished)
18094 Add to Neighbour and Remove greedy math number theory Statement D Codeforces Round 690 (Div. 3) {1462} PROGRAMMING Codeforces Round #690 (Div. 3) Editorial
371 Prime Divisors Selection greedy math number theory Statement L 2020-2021 ICPC, NERC, Southern and Volga Russian Regional Contest (Online Mirror, ICPC Rules) {1468} PROGRAMMING Tutorial (PDF)
10191 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
6771 Strange Definition bitmasks brute force data structures graphs math number theory Statement B Codeforces Round 694 (Div. 1) {1470} PROGRAMMING 750.0 86464
37961 Strange Partition greedy math number theory Statement A Codeforces Round 694 (Div. 2) {1471} PROGRAMMING 500.0 Codeforces Round #694 Editorial
40056 Different Divisors binary search constructive algorithms greedy math number theory Statement B Codeforces Round 696 (Div. 2) {1474} PROGRAMMING 1000.0 Codeforces Round #696 Editorial
86135 Odd Divisor bitmasks math number theory Statement A Codeforces Round 697 (Div. 3) {1475} PROGRAMMING Codeforces Round #697 (Div. 3) Editorial
7786 Strange Beauty dfs and similar dp math number theory Statement G Codeforces Round 697 (Div. 3) {1475} PROGRAMMING Codeforces Round #697 (Div. 3) Editorial
6513 Nezzar and Board constructive algorithms math number theory Statement A Codeforces Round 698 (Div. 1) {1477} PROGRAMMING 500.0 87294 1800
264 School Clubs dp fft math number theory probabilities Statement E Codeforces Round 700 (Div. 1) {1479} PROGRAMMING 4000.0 Editorial of Codeforces Round #700
10978 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
5619 Multiples and Power Differences constructive algorithms math number theory Statement D Codeforces Round 701 (Div. 2) {1485} PROGRAMMING 1750.0 Editorial of Codeforces Round #701 (Div. 2) 2200
20518 Pythagorean Triples binary search math number theory Statement D Educational Codeforces Round 104 (Rated for Div. 2) {1487} PROGRAMMING 87873
28513 Cat Cycle math number theory Statement B Educational Codeforces Round 104 (Rated for Div. 2) {1487} PROGRAMMING 87873
5727 GCD of an Array data structures math number theory sortings two pointers Statement D Codeforces Round 705 (Div. 2) {1493} PROGRAMMING 2250.0 Codeforces Round #705 (Div.2) Editorial
9094 Square-free division (easy version) data structures dp greedy math number theory Statement E1 Codeforces Round 708 (Div. 2) {1497} PROGRAMMING 1500.0 Codeforces Round #708 Editorial 1700
1911 Square-free division (hard version) data structures dp greedy hashing math number theory Statement E2 Codeforces Round 708 (Div. 2) {1497} PROGRAMMING 1500.0 Codeforces Round #708 Editorial 2500
7010 The Number of Pairs math number theory Statement D Educational Codeforces Round 106 (Rated for Div. 2) {1499} PROGRAMMING Educational Codeforces Round 106 Editorial
2308 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
2115 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
24639 GCD Length constructive algorithms math number theory Statement B Educational Codeforces Round 107 (Rated for Div. 2) {1511} PROGRAMMING 89634
9248 Short Task brute force dp math number theory Statement G Codeforces Round 713 (Div. 3) {1512} PROGRAMMING Codeforces Round #713 (Div. 3) Editorial
18116 Product 1 Modulo N constructive algorithms math number theory Statement C Codeforces Round 716 (Div. 2) {1514} PROGRAMMING 1500.0 Codeforces round #716 editorial
25347 Perfectly Imperfect Array math number theory Statement A Codeforces Round 716 (Div. 2) {1514} PROGRAMMING 500.0 Codeforces round #716 editorial
1350 Phoenix and Odometers dfs and similar graphs math number theory Statement G Codeforces Global Round 14 {1515} PROGRAMMING 3500.0 Editorial
49516 Ordinary Numbers brute force math number theory Statement B Codeforces Round 719 (Div. 3) {1520} PROGRAMMING Editorial
26987 Potion-making math number theory Statement A Educational Codeforces Round 109 (Rated for Div. 2) {1525} PROGRAMMING 90793
36546 I Hate 1111 dp math number theory Statement B Codeforces Round 723 (Div. 2) {1526} PROGRAMMING 1000.0 Codeforces Round #723 (Div. 2) Editorial
34138 Array Reodering brute force greedy math number theory sortings Statement B Educational Codeforces Round 110 (Rated for Div. 2) {1535} PROGRAMMING 91481
13583 Deleting Divisors games math number theory Statement D Codeforces Round 726 (Div. 2) {1537} PROGRAMMING 1500.0 Codeforces Round #726 (Div.2) Editorial
38286 Pleasant Pairs brute force math number theory Statement B Codeforces Round 728 (Div. 2) {1541} PROGRAMMING 1000.0 Tutorial
26474 Plus and Multiply constructive algorithms math number theory Statement B Codeforces Round 729 (Div. 2) {1542} PROGRAMMING 1250.0
16149 Strange Function math number theory Statement C Codeforces Round 729 (Div. 2) {1542} PROGRAMMING 1500.0
40654 Exciting Bets greedy math number theory Statement A Codeforces Round 730 (Div. 2) {1543} PROGRAMMING 500.0 Codeforces Round #730 (Div. 2) Editorial
11308 Integers Have Friends binary search data structures math number theory two pointers Statement B Codeforces Round 736 (Div. 1) {1548} PROGRAMMING 1000.0 Codeforces Round 736 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
1623 Gregor and the Odd Cows (Easy) geometry math number theory Statement D1 Codeforces Round 736 (Div. 1) {1548} PROGRAMMING 2000.0 Codeforces Round 736 Editorial
35504 Gregor and Cryptography math number theory Statement A Codeforces Round 736 (Div. 2) {1549} PROGRAMMING 500.0 Codeforces Round 736 Editorial
1211 Common Divisor Graph binary search dsu graphs math number theory Statement G Harbour.Space Scholarship Contest 2021-2022 (open for everyone, rated, Div. 1 + Div. 2) {1553} PROGRAMMING 3000.0 Harbour.Space Scholarship Contest 2021-2022 (Div. 1 + Div. 2) Editorial
34169 Digits Sum math number theory Statement A Harbour.Space Scholarship Contest 2021-2022 (open for everyone, rated, Div. 1 + Div. 2) {1553} PROGRAMMING 250.0 Harbour.Space Scholarship Contest 2021-2022 (Div. 1 + Div. 2) Editorial
1371 You dfs and similar dp math number theory Statement E Codeforces Round 735 (Div. 2) {1554} PROGRAMMING 3000.0 Editorial of Codeforces Round #735 (Div. 2) 2600
5262 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
2708 Mocha and Stars combinatorics dp fft math number theory Statement E Codeforces Round 738 (Div. 2) {1559} PROGRAMMING 3000.0 Tutorial (en) 2200
6088 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
20523 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)
453 Tubular Bells interactive math number theory probabilities Statement F Codeforces Round 741 (Div. 2) {1562} PROGRAMMING 3500.0 Editorial of Codeforces Round 741 (Div. 2)
152 Xor-quiz constructive algorithms dp interactive math number theory Statement H Codeforces Global Round 16 {1566} PROGRAMMING 3750.0 Codeforces Global Round 16 Editorial
5339 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
14371 Windblume Ode math number theory Statement A Technocup 2022 - Elimination Round 1 {1583} PROGRAMMING 500.0 Editorial for Technocup 2022 — Elimination Round 1 and Codeforces Round #749 (Div. 1+Div. 2)
2562 Hemose in ICPC ? binary search dfs and similar divide and conquer interactive math number theory trees Statement D Codeforces Round 746 (Div. 2) {1592} PROGRAMMING 2000.0 95583
5558 Half of Same dp math number theory Statement D2 Codeforces Round 748 (Div. 3) {1593} PROGRAMMING Editorial for Codeforces Round #748 (Div.3)
21761 All are Same math number theory Statement D1 Codeforces Round 748 (Div. 3) {1593} PROGRAMMING Editorial for Codeforces Round #748 (Div.3)
20954 Array Elimination bitmasks math number theory Statement A Codeforces Round 751 (Div. 1) {1601} PROGRAMMING 500.0 95865 1300
17810 Di-visible Confusion constructive algorithms math number theory Statement A Codeforces Round 752 (Div. 1) {1603} PROGRAMMING 750.0 Editorial of Codeforces Round #752 1300
15013 Moderate Modular Mode constructive algorithms math number theory Statement B Codeforces Round 752 (Div. 1) {1603} PROGRAMMING 1000.0 Editorial of Codeforces Round #752 1600
2261 Extreme Extension dp greedy math number theory Statement C Codeforces Round 752 (Div. 1) {1603} PROGRAMMING 1750.0 Editorial of Codeforces Round #752 2300
1182 Array Equalizer binary search implementation math number theory sortings Statement E Codeforces Round 754 (Div. 2) {1605} PROGRAMMING 2500.0 tutorial 2400
21630 A.M. Deviation math number theory Statement A Codeforces Round 754 (Div. 2) {1605} PROGRAMMING 500.0 tutorial 800
18867 Divide and Multiply greedy implementation math number theory Statement A Deltix Round, Autumn 2021 (open for everyone, rated, Div. 1 + Div. 2) {1609} PROGRAMMING 500.0 Deltix Round, Autumn 2021. Editorial 900
3007 Not Quite Lee combinatorics math number theory Statement D Codeforces Global Round 17 {1610} PROGRAMMING 2250.0 Codeforces Global Round 17 Editorial
10246 X-Magic Pair math number theory Statement D Educational Codeforces Round 117 (Rated for Div. 2) {1612} PROGRAMMING 97164
1011 Christmas Chocolates dfs and similar dp games graphs implementation math number theory shortest paths trees Statement E Codeforces Round 761 (Div. 2) {1617} PROGRAMMING 3000.0 Editorial for Codeforces Round #761 (Div. 2)
902 A Random Code Problem combinatorics dp math number theory Statement F Educational Codeforces Round 121 (Rated for Div. 2) {1626} PROGRAMMING 99136
9338 Not Adding dp math number theory Statement D Codeforces Round 766 (Div. 2) {1627} PROGRAMMING 1750.0 Codeforces Round #766 (Div. 2) Editorial
25236 GCD Arrays greedy math number theory Statement B Codeforces Round 767 (Div. 2) {1629} PROGRAMMING 750.0 Editorial of Codeforces Round #767
5314 New Year Concert binary search data structures dp greedy math number theory two pointers Statement D Codeforces Round 769 (Div. 2) {1632} PROGRAMMING 2000.0 Editorial of Codeforces Round #769
7041 Infinite Set dp math matrices number theory strings Statement D Codeforces Round 772 (Div. 2) {1635} PROGRAMMING 2250.0 Codeforces Round #772 Editorial
427 Basis combinatorics fft math number theory Statement F Educational Codeforces Round 123 (Rated for Div. 2) {1644} PROGRAMMING 100227
2755 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
5692 Madoka and the Best School in Russia dp math number theory Statement D Codeforces Round 777 (Div. 2) {1647} PROGRAMMING 2000.0 Codeforces Round #777 Editorial
3058 Potion Brewing Class dfs and similar implementation math number theory trees Statement D Codeforces Round 778 (Div. 1 + Div. 2, based on Technocup 2022 Final Round) {1654} PROGRAMMING 2000.0 Editorial of Codeforces Round #778 (Div. 1 + Div. 2, based on Technocup 2022 Final Round) 2100
7546 K-good constructive algorithms games math number theory Statement D CodeTON Round 1 (Div. 1 + Div. 2, Rated, Prizes!) {1656} PROGRAMMING 2000.0 Tutorial
795 Equal LCM Subsets math number theory Statement H CodeTON Round 1 (Div. 1 + Div. 2, Rated, Prizes!) {1656} PROGRAMMING 3750.0 Tutorial
20988 Make Equal With Mod math number theory sortings Statement C CodeTON Round 1 (Div. 1 + Div. 2, Rated, Prizes!) {1656} PROGRAMMING 1500.0 Tutorial
1175 Gojou and Matrix Game data structures dp games math number theory sortings Statement E Codeforces Round 779 (Div. 2) {1658} PROGRAMMING 2500.0 Codeforces Round #779 (Div. 2) Editorial
4629 GCD Guess bitmasks chinese remainder theorem constructive algorithms interactive math number theory Statement D Codeforces Round 781 (Div. 2) {1665} PROGRAMMING 1500.0 Codeforces Round #781 (Div. 2) Editorial
3623 Lost Arithmetic Progression combinatorics implementation math number theory Statement D Codeforces Round 785 (Div. 2) {1673} PROGRAMMING 2000.0 Codeforces Round #785 (Div. 2) Editorial
801 Power or XOR? combinatorics math number theory Statement E Codeforces Round 785 (Div. 2) {1673} PROGRAMMING 2750.0 Codeforces Round #785 (Div. 2) Editorial
17914 Palindrome Basis dp math number theory Statement C Codeforces Round 785 (Div. 2) {1673} PROGRAMMING 1500.0 Codeforces Round #785 (Div. 2) Editorial
39767 AvtoBus brute force greedy math number theory Statement A Codeforces Round 791 (Div. 2) {1679} PROGRAMMING 500.0 Codeforces Round #791 (Div. 2) Editorial
777 Euclid Guess constructive algorithms flows graph matchings math number theory Statement G Codeforces Round 792 (Div. 1 + Div. 2) {1684} PROGRAMMING 2500.0 Codeforces Round #792 (Div. 1 + Div. 2) Editorial 2800
309 Become Big For Me combinatorics constructive algorithms math number theory Statement E Codeforces Round 796 (Div. 1) {1687} PROGRAMMING 2000.0 Editorial of Codeforces Round 796
8840 Shifting String graphs math number theory strings Statement F Codeforces Round 797 (Div. 3) {1690} PROGRAMMING Codeforces Round #797 (Div. 3) Editorial 1700
383 Long Binary String math matrices meet-in-the-middle number theory Statement G Codeforces Round 803 (Div. 2) {1698} PROGRAMMING 3250.0 Codeforces Round #803 (Div. 2) Editorial
9434 Equate Multisets constructive algorithms data structures graph matchings greedy math number theory Statement F Codeforces Round 805 (Div. 3) {1702} PROGRAMMING 104763
2458 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
1613 LCM Sum (hard version) combinatorics data structures math number theory two pointers Statement E2 Codeforces Round 813 (Div. 2) {1712} PROGRAMMING 750.0 Codeforces Round #813 (Div. 2) Editorial
23406 Add Modulo 10 brute force math number theory Statement E Codeforces Round 811 (Div. 3) {1714} PROGRAMMING Codeforces Round #811 (Div. 3) Editorial
1361 Bags with Balls combinatorics math number theory Statement F Educational Codeforces Round 133 (Rated for Div. 2) {1716} PROGRAMMING 105653
3393 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
20938 Madoka and Strange Thoughts math number theory Statement A Codeforces Round 818 (Div. 2) {1717} PROGRAMMING 500.0 Codeforces Round #818 (Div. 2) Editorial. 800
3455 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
1854 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
217 Burenka, an Array and Queries data structures math number theory Statement F Codeforces Round 814 (Div. 1) {1718} PROGRAMMING 2750.0 Codeforces Round #814 (Div. 1, Div. 2) Editorial
24329 Burenka Plays with Fractions math number theory Statement A Codeforces Round 815 (Div. 2) {1720} PROGRAMMING 500.0 Codeforces Round #815 (Div. 2) Editorial
2026 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
12071 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
3468 Graph Cost dp greedy math number theory Statement E Codeforces Round 841 (Div. 2) and Divide by Zero 2022 {1731} PROGRAMMING 2000.0 Codeforces Round #841 (Div. 2) and Divide By Zero 2022 Editorial
17498 Bestie brute force constructive algorithms implementation math number theory Statement A Codeforces Round 830 (Div. 2) {1732} PROGRAMMING 750.0 108327 1000
3237 Rectangular Congruence constructive algorithms math number theory Statement E Codeforces Round 822 (Div. 2) {1734} PROGRAMMING 2250.0 Codeforces Round #822 (Div.2) Editorial
20199 Playing with GCD math number theory Statement B Codeforces Round 825 (Div. 2) {1736} PROGRAMMING 1000.0 Codeforces Round #825 (Div. 2) Editorial
157 Ela and Prime GCD constructive algorithms math number theory Statement F Dytechlab Cup 2022 {1737} PROGRAMMING 3500.0 Editorial of Dytechlab Cup 2022
23105 Factorise N+M math number theory Statement A Codeforces Round 831 (Div. 1 + Div. 2) {1740} PROGRAMMING 500.0 Tutorial 800
12609 Divisible Numbers (easy version) brute force math number theory Statement E1 Codeforces Round 828 (Div. 3) {1744} PROGRAMMING Codeforces Round #828 (Div. 3) Editorial
6671 Divisible Numbers (hard version) brute force math number theory Statement E2 Codeforces Round 828 (Div. 3) {1744} PROGRAMMING Codeforces Round #828 (Div. 3) Editorial
6349 Counting Arrays math number theory Statement D Educational Codeforces Round 138 (Rated for Div. 2) {1749} PROGRAMMING 108269
7338 Count GCD bitmasks combinatorics dp math number theory Statement D CodeTON Round 3 (Div. 1 + Div. 2, Rated, Prizes!) {1750} PROGRAMMING 1750.0 CodeTON Round 3 (Div. 1 + Div. 2) Editorial
4495 All Possible Digits binary search data structures greedy math number theory Statement F Codeforces Round 834 (Div. 3) {1759} PROGRAMMING 109254
20561 Divide and Conquer greedy math number theory Statement A Codeforces Round 838 (Div. 2) {1762} PROGRAMMING 500.0 Codeforces Round #838 (Div. 2) Editorial
10503 Lucky Chains brute force dp greedy math number theory Statement D Educational Codeforces Round 139 (Rated for Div. 2) {1766} PROGRAMMING 110066
2262 Partial Sorting combinatorics fft math number theory Statement E Codeforces Round 842 (Div. 2) {1768} PROGRAMMING 2250.0 Codeforces Round #842 (Div. 2) Editorial
31024 Greatest Convex greedy math number theory Statement A Codeforces Round 842 (Div. 2) {1768} PROGRAMMING 500.0 Codeforces Round #842 (Div. 2) Editorial
9640 Koxia and Number Theory chinese remainder theorem math number theory Statement C Good Bye 2022: 2023 is NEAR {1770} PROGRAMMING 1250.0 Good Bye 2022 -- Editorial
11552 Hossam and Trainees math number theory Statement C Codeforces Round 837 (Div. 2) {1771} PROGRAMMING 1750.0 Codeforces Round #837 (Div. 2) Editorial
8411 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
25805 GCD Partition brute force greedy math number theory Statement B Codeforces Round 846 (Div. 2) {1780} PROGRAMMING 1000.0 111841
985 Delicious Dessert math number theory string suffix structures strings Statement G Codeforces Round 846 (Div. 2) {1780} PROGRAMMING 2500.0 111841
6287 Many Perfect Squares brute force math number theory Statement D VK Cup 2022 - Отборочный раунд (Engine) {1781} PROGRAMMING 2000.0 Tutorial
2432 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
14873 Number Factorization greedy math number theory Statement B TypeDB Forces 2023 (Div. 1 + Div. 2, Rated, Prizes!) {1787} PROGRAMMING 1000.0 TypeDB Forces 2023 (Div. 1 + Div. 2, Rated, Prizes!) Editorial
965 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
32635 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
4453 Counting Factorizations combinatorics dp math number theory Statement D Codeforces Round 856 (Div. 2) {1794} PROGRAMMING 2000.0 Codeforces Round 856 (Div. 2) Editorial
1635 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
9358 Candy Store greedy math number theory Statement C Codeforces Round 860 (Div. 2) {1798} PROGRAMMING 1250.0 Editorial of Codeforces Round 860 (Div. 2) 1700
644 Gifts from Grandfather Ahmed dp math number theory Statement F Codeforces Round 860 (Div. 2) {1798} PROGRAMMING 3000.0 Editorial of Codeforces Round 860 (Div. 2) 2500
13812 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
463 GCD Master (easy version) greedy math number theory sortings Statement F1 Codeforces Round 858 (Div. 2) {1806} PROGRAMMING 2500.0 Codeforces Round #858 (Div. 2) Editorial
18921 Candies constructive algorithms math number theory Statement B CodeTON Round 4 (Div. 1 + Div. 2, Rated, Prizes!) {1810} PROGRAMMING 750.0 Editorial of CodeTON Round 4 (Div. 1 + Div. 2, Rated, Prizes!)
14376 Living Sequence binary search dp math number theory Statement E Codeforces Round 863 (Div. 3) {1811} PROGRAMMING 114788
4898 Trivial Conjecture *special constructive algorithms math number theory Statement D April Fools Day Contest 2023 {1812} PROGRAMMING Editorial of April Fools Day Contest 2023
419 Bosco and Particle dp math number theory strings Statement E Codeforces Round 865 (Div. 1) {1815} PROGRAMMING 3000.0 Editorial of Codeforces Round #865 3100
9419 Magic Triples (Easy Version) brute force math number theory Statement G1 Codeforces Round 867 (Div. 3) {1822} PROGRAMMING Codeforces Round #867 (Div. 3) Editorial
3031 Magic Triples (Hard Version) brute force math number theory Statement G2 Codeforces Round 867 (Div. 3) {1822} PROGRAMMING Codeforces Round #867 (Div. 3) Editorial
13819 Strongly Composite greedy math number theory Statement C Codeforces Round 868 (Div. 2) {1823} PROGRAMMING 1250.0 115465
27930 Lunatic Never Content math number theory Statement B Codeforces Round 870 (Div. 2) {1826} PROGRAMMING 1000.0 Codeforces Round #870 (Div. 2) Editorial 1100
15648 Dreaming of Freedom greedy math number theory Statement C Codeforces Round 870 (Div. 2) {1826} PROGRAMMING 1500.0 Codeforces Round #870 (Div. 2) Editorial 1300
38994 Permutation Swap math number theory Statement B Codeforces Round 873 (Div. 2) {1828} PROGRAMMING 1000.0 Codeforces Round #873 (Div. 1 & 2) Editorial 900
2762 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
658 Doctor's Brown Hypothesis dfs and similar graphs math number theory Statement D Codeforces Round 880 (Div. 1) {1835} PROGRAMMING 1750.0 Codeforces Round 880 Editorial
17247 No Prime Differences constructive algorithms math number theory Statement C Codeforces Round 877 (Div. 2) {1838} PROGRAMMING 1250.0 Codeforces Round #877 (Div. 2) Editorial
1174 Tree Weights bitmasks constructive algorithms data structures dfs and similar math matrices number theory trees Statement G Codeforces Round 884 (Div. 1 + Div. 2) {1844} PROGRAMMING 3500.0 Codeforces Round #884 (Div. 1 + Div. 2) Editorial
13813 Row Major constructive algorithms math number theory strings Statement D Codeforces Round 884 (Div. 1 + Div. 2) {1844} PROGRAMMING 1500.0 Codeforces Round #884 (Div. 1 + Div. 2) Editorial
431 Swimmers in the Pool fft math number theory Statement F Educational Codeforces Round 151 (Rated for Div. 2) {1845} PROGRAMMING 117791
924 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
7153 Vika and Price Tags greedy math number theory Statement C Codeforces Round 885 (Div. 2) {1848} PROGRAMMING 1500.0 Codeforces Round #885 (Div.2) Editorial
24494 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
44575 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)
25491 Yet Another Permutation Problem constructive algorithms math number theory Statement C Codeforces Round 893 (Div. 2) {1858} PROGRAMMING 1500.0 Codeforces Round #893 (Div. 2) Editorial 1000
13002 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
15263 Divisor Chain bitmasks constructive algorithms math number theory Statement C Harbour.Space Scholarship Contest 2023-2024 (Div. 1 + Div. 2) {1864} PROGRAMMING 1250.0 Harbour.Space Scholarship Contest 2023-2024 (Div. 1 + Div. 2) Editorial
9155 Battling with Numbers combinatorics math number theory Statement B COMPFEST 15 - Preliminary Online Mirror (Unrated, ICPC Rules, Teams Preferred) {1866} PROGRAMMING COMPFEST 15 Preliminary — Editorial
26318 Non-coprime Split math number theory Statement C Codeforces Round 895 (Div. 3) {1872} PROGRAMMING Codeforces Round 895 (Div. 3) Editorial
13856 Jellyfish and Green Apple bitmasks greedy math number theory Statement C Codeforces Round 901 (Div. 2) {1875} PROGRAMMING 1000.0 Codeforces Round 901 (Div. 1, Div. 2) Editorial
12812 Joyboard math number theory Statement C Codeforces Round 902 (Div. 2, based on COMPFEST 15 - Final Round) {1877} PROGRAMMING 1500.0 Codeforces Round #902 (Div. 1, Div. 2, based on COMPFEST 15 — Final Round) Editorial
4922 Vasilije Loves Number Theory math number theory Statement F Codeforces Round 900 (Div. 3) {1878} PROGRAMMING Codeforces round #900 (Div.3) Editorial
28212 Divide and Equalize math number theory Statement D Codeforces Round 903 (Div. 3) {1881} PROGRAMMING 121327
4031 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
4548 Suspicious logarithms binary search brute force implementation math number theory Statement D Codeforces Round 907 (Div. 2) {1891} PROGRAMMING 1500.0
116 Cyclic Hamming (Easy Version) divide and conquer dp fft math number theory Statement H1 CodeTON Round 7 (Div. 1 + Div. 2, Rated, Prizes!) {1896} PROGRAMMING 4000.0 CodeTON Round 7 (Div. 1 + Div. 2, Rated, Prizes!) Editorial
141 Cyclic Hamming (Hard Version) dp fft math number theory Statement H2 CodeTON Round 7 (Div. 1 + Div. 2, Rated, Prizes!) {1896} PROGRAMMING 1000.0 CodeTON Round 7 (Div. 1 + Div. 2, Rated, Prizes!) Editorial
91722 Game with Integers games math number theory Statement A Codeforces Round 909 (Div. 3) {1899} PROGRAMMING Разбор Codeforces Round 909 (Div. 3)
15611 Yarik and Musical Notes math number theory Statement D Codeforces Round 909 (Div. 3) {1899} PROGRAMMING Разбор Codeforces Round 909 (Div. 3)
5342 Small GCD brute force math number theory Statement D Codeforces Round 911 (Div. 2) {1900} PROGRAMMING 2000.0 Codeforces Round 911 (Div. 2) Editorial
16921 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
5109 Split Plus K greedy math number theory Statement D Pinely Round 3 (Div. 1 + Div. 2) {1909} PROGRAMMING 2000.0 Editorial of Pinely Round 3 (Div. 1 + Div. 2)
30702 Make Almost Equal With Mod math number theory Statement B Pinely Round 3 (Div. 1 + Div. 2) {1909} PROGRAMMING 1000.0 Editorial of Pinely Round 3 (Div. 1 + Div. 2)
28261 2023 constructive algorithms implementation math number theory Statement A Good Bye 2023 {1916} PROGRAMMING 250.0
31764 Two Divisors constructive algorithms math number theory Statement B Good Bye 2023 {1916} PROGRAMMING 750.0
23073 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
14800 Vlad and an Odd Ordering binary search bitmasks data structures dp implementation math number theory Statement E Codeforces Round 928 (Div. 4) {1926} PROGRAMMING 126132
10330 Physical Education Lesson brute force math number theory Statement C Codeforces Round 924 (Div. 2) {1928} PROGRAMMING 1500.0 Codeforces Round 924 Editorial
2089 Modular Sequence constructive algorithms dp greedy implementation math number theory Statement E Codeforces Round 924 (Div. 2) {1928} PROGRAMMING 2250.0 Codeforces Round 924 Editorial
3626 One-Dimensional Puzzle combinatorics constructive algorithms math number theory Statement G Codeforces Round 925 (Div. 3) {1931} PROGRAMMING 125878
1342 Moving Platforms graphs math number theory shortest paths Statement G Codeforces Round 927 (Div. 3) {1932} PROGRAMMING 126196
10152 Final Countdown implementation math number theory Statement E Codeforces Round 927 (Div. 3) {1932} PROGRAMMING 126196
26175 Fireworks math number theory Statement B Codeforces Round 935 (Div. 3) {1945} PROGRAMMING 127377
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
3166 Girl Permutation combinatorics dp math number theory Statement E Codeforces Round 936 (Div. 2) {1946} PROGRAMMING 2250.0 Codeforces Round #936 (Div. 2) Editorial
2957 Chain Reaction data structures dsu greedy implementation math number theory Statement E Educational Codeforces Round 164 (Rated for Div. 2) {1954} PROGRAMMING Educational Codeforces Round 164 Editorial
5866 GCD on a grid brute force dfs and similar dp math number theory Statement G Codeforces Round 938 (Div. 3) {1955} PROGRAMMING 128243
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
16022 Reverse Card (Easy Version) brute force math number theory Statement B1 Codeforces Round 942 (Div. 1) {1967} PROGRAMMING 500.0 Tutorial 1400
4839 Reverse Card (Hard Version) brute force math number theory Statement B2 Codeforces Round 942 (Div. 1) {1967} PROGRAMMING 750.0 Tutorial 2200
39352 Maximize? brute force math number theory Statement A Codeforces Round 943 (Div. 3) {1968} PROGRAMMING 129096 800
8013 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
17330 GCD-sequence greedy implementation math math number theory number theory Statement D Codeforces Round 950 (Div. 3) {1980} PROGRAMMING 130135
9716 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
19730 Collatz Conjecture brute force implementation math number theory Statement B Codeforces Round 955 (Div. 2, with prizes from NEAR!) {1982} PROGRAMMING 1000.0 130839
12169 D-Function bitmasks combinatorics math number theory Statement G Codeforces Round 952 (Div. 4) {1985} PROGRAMMING Codeforces Round 952 (Div. 4) Editorial
1906 Permutation Problem (Simple Version) brute force combinatorics math number theory Statement G1 Codeforces Round 954 (Div. 3) {1986} PROGRAMMING 130762
1437 Permutation Problem (Hard Version) brute force data structures hashing math number theory Statement G2 Codeforces Round 954 (Div. 3) {1986} PROGRAMMING 130762
7873 Prime XOR Coloring bitmasks constructive algorithms graphs greedy math number theory Statement D Pinely Round 4 (Div. 1 + Div. 2) {1991} PROGRAMMING 1500.0 Video Tutorial
559 Prime Split Game fft games math number theory Statement H Pinely Round 4 (Div. 1 + Div. 2) {1991} PROGRAMMING 3500.0 Video Tutorial
4132 Ultra-Meow combinatorics math number theory Statement G Codeforces Round 957 (Div. 3) {1992} PROGRAMMING Shayan's Video Tutorial
1183 Dyn-scripted Robot (Easy Version) brute force chinese remainder theorem constructive algorithms math number theory Statement F1 Codeforces Round 963 (Div. 2) {1993} PROGRAMMING 2500.0 Editorial of Codeforces Round 963 (Div. 2)
541 Dyn-scripted Robot (Hard Version) chinese remainder theorem math number theory Statement F2 Codeforces Round 963 (Div. 2) {1993} PROGRAMMING 1000.0 Editorial of Codeforces Round 963 (Div. 2)
7351 Funny Game constructive algorithms dsu graphs greedy math number theory Statement D Codeforces Round 959 sponsored by NEAR (Div. 1 + Div. 2) {1994} PROGRAMMING 2000.0 Video Tutorial
10256 Squaring brute force constructive algorithms data structures greedy implementation math number theory Statement C Codeforces Round 961 (Div. 2) {1995} PROGRAMMING 1750.0 Video Tutorial
28071 Minimize Equal Sum Subarrays constructive algorithms math number theory Statement B Codeforces Round 965 (Div. 2) {1998} PROGRAMMING 750.0 Video Tutorial
1002 Court Blue (Easy Version) brute force dfs and similar dp math number theory Statement F1 EPIC Institute of Technology Round August 2024 (Div. 1 + Div. 2) {2002} PROGRAMMING 2000.0 EPIC Institute of Technology Round August 2024 (Div. 1 + Div. 2) Editorial
575 Court Blue (Hard Version) brute force dp math number theory Statement F2 EPIC Institute of Technology Round August 2024 (Div. 1 + Div. 2) {2002} PROGRAMMING 1250.0 EPIC Institute of Technology Round August 2024 (Div. 1 + Div. 2) Editorial
5045 Not a Nim Problem games math number theory Statement E Educational Codeforces Round 169 (Rated for Div. 2) {2004} PROGRAMMING Educational Codeforces Round 169 Editorial
25224 Dora's Set math number theory Statement A Codeforces Round 969 (Div. 2) {2007} PROGRAMMING 500.0 Tutorial