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 ... 5 6 7 8 9 ... 13 14 15 >

Solved
Name
Tags
Solutions
Index
Contest
Type
Points
Tutorial
Rating Level
24497 Level Statistics implementation math Statement A Educational Codeforces Round 85 (Rated for Div. 2) {1334} PROGRAMMING Educational Codeforces Round 85 Editorial
107128 Candies and Two Sisters math Statement A Codeforces Round 634 (Div. 3) {1335} PROGRAMMING 75993 800
12315 Xenia and Colorful Gems binary search greedy math sortings two pointers Statement B Codeforces Round 635 (Div. 1) {1336} PROGRAMMING 750.0 Codeforces Round #635 Editorial 1800
883 Chiori and Doll Picking (easy version) bitmasks brute force combinatorics math Statement E1 Codeforces Round 635 (Div. 1) {1336} PROGRAMMING 1750.0 Codeforces Round #635 Editorial 2600
605 Chiori and Doll Picking (hard version) bitmasks brute force combinatorics math Statement E2 Codeforces Round 635 (Div. 1) {1336} PROGRAMMING 1500.0 Codeforces Round #635 Editorial 3400
43415 Ichihime and Triangle constructive algorithms math Statement A Codeforces Round 635 (Div. 2) {1337} PROGRAMMING 500.0 Codeforces Round #635 Editorial 1000
37112 Kana and Dragon Quest game greedy implementation math Statement B Codeforces Round 635 (Div. 2) {1337} PROGRAMMING 1000.0 Codeforces Round #635 Editorial 1000
3482 Perfect Triples bitmasks brute force constructive algorithms divide and conquer greedy implementation math Statement C Codeforces Round 633 (Div. 1) {1338} PROGRAMMING 1500.0 Editorial
9666 Edge Weight Assignment bitmasks constructive algorithms greedy math trees Statement B Codeforces Round 633 (Div. 1) {1338} PROGRAMMING 1000.0 Editorial
31282 Powered Addition greedy math Statement A Codeforces Round 633 (Div. 1) {1338} PROGRAMMING 500.0 Editorial
30546 Nastya and Rice math Statement A Codeforces Round 637 (Div. 2) - Thanks, Ivan Belonogov! {1341} PROGRAMMING 500.0 Codeforces Round #637 Editorial
47025 Road To Zero greedy math Statement A Educational Codeforces Round 86 (Rated for Div. 2) {1342} PROGRAMMING 76633 1100
15086 Yet Another Counting Problem math number theory Statement C Educational Codeforces Round 86 (Rated for Div. 2) {1342} PROGRAMMING 76633 1700
3667 Placing Rooks combinatorics fft math Statement E Educational Codeforces Round 86 (Rated for Div. 2) {1342} PROGRAMMING 76633 2300
66255 Balanced Array constructive algorithms math Statement B Codeforces Round 636 (Div. 3) {1343} PROGRAMMING 76352 800
53995 Candies brute force math Statement A Codeforces Round 636 (Div. 3) {1343} PROGRAMMING 76352 900
16596 Hilbert's Hotel math number theory sortings Statement A Codeforces Round 639 (Div. 1) {1344} PROGRAMMING 500.0 Codeforces Round #639 Editorial 1600
2005 Quantifier Question dfs and similar dp graphs math Statement C Codeforces Round 639 (Div. 1) {1344} PROGRAMMING 1500.0 Codeforces Round #639 Editorial 2600
1326 Résumé Review binary search greedy math Statement D Codeforces Round 639 (Div. 1) {1344} PROGRAMMING 1750.0 Codeforces Round #639 Editorial 2700
28387 Card Constructions binary search brute force dp math Statement B Codeforces Round 639 (Div. 2) {1345} PROGRAMMING 1000.0 Codeforces Round #639 Editorial 1100
24864 Puzzle Pieces math Statement A Codeforces Round 639 (Div. 2) {1345} PROGRAMMING 500.0 Codeforces Round #639 Editorial 800
2223 Color Revolution *special math Statement A Kotlin Heroes: Episode 4 {1346} PROGRAMMING Kotlin Heroes: Episode 4 — Editorial 1000
415 Magic Tricks *special dp graphs Statement E Kotlin Heroes: Episode 4 {1346} PROGRAMMING Kotlin Heroes: Episode 4 — Editorial 1700
256 Dune II: Battle For Arrakis *special data structures greedy math Statement F Kotlin Heroes: Episode 4 {1346} PROGRAMMING Kotlin Heroes: Episode 4 — Editorial 2000
153 Two IP Cameras *special math number theory Statement G Kotlin Heroes: Episode 4 {1346} PROGRAMMING Kotlin Heroes: Episode 4 — Editorial 2300
9381 Phoenix and Science binary search bitmasks constructive algorithms greedy math Statement D Codeforces Round 638 (Div. 2) {1348} PROGRAMMING 2000.0 Codeforces Round #638 (Div. 2) Editorial 1900
43254 Phoenix and Balance greedy math Statement A Codeforces Round 638 (Div. 2) {1348} PROGRAMMING 500.0 Codeforces Round #638 (Div. 2) Editorial 800
22331 Orac and LCM data structures math number theory Statement A Codeforces Round 641 (Div. 1) {1349} PROGRAMMING 500.0 Codeforces Round #641 Editorial 1600
9013 Orac and Medians constructive algorithms greedy math Statement B Codeforces Round 641 (Div. 1) {1349} PROGRAMMING 1250.0 Codeforces Round #641 Editorial 2000
579 Slime and Sequences (Easy Version) dp fft math Statement F1 Codeforces Round 641 (Div. 1) {1349} PROGRAMMING 1750.0 Codeforces Round #641 Editorial 3100
1125 Slime and Biscuits math probabilities Statement D Codeforces Round 641 (Div. 1) {1349} PROGRAMMING 2000.0 Codeforces Round #641 Editorial 3200
142 Slime and Sequences (Hard Version) dp fft math Statement F2 Codeforces Round 641 (Div. 1) {1349} PROGRAMMING 1750.0 Codeforces Round #641 Editorial 3500
30516 Orac and Models dp math number theory Statement B Codeforces Round 641 (Div. 2) {1350} PROGRAMMING 1000.0 Codeforces Round #641 Editorial 1400
27515 Orac and Factors math Statement A Codeforces Round 641 (Div. 2) {1350} PROGRAMMING 500.0 Codeforces Round #641 Editorial 900
18657 Square? brute force implementation math Statement B Testing Round 16 (Unrated) {1351} PROGRAMMING 1000.0 900
71810 K-th Not Divisible by n binary search math Statement C Codeforces Round 640 (Div. 4) {1352} PROGRAMMING 77161 1200
45726 Same Parity Summands constructive algorithms math Statement B Codeforces Round 640 (Div. 4) {1352} PROGRAMMING 77161 1200
19712 Binary String Reconstruction constructive algorithms dfs and similar math Statement F Codeforces Round 640 (Div. 4) {1352} PROGRAMMING 77161 1500
106878 Sum of Round Numbers implementation math Statement A Codeforces Round 640 (Div. 4) {1352} PROGRAMMING 77161 800
39131 Board Moves math Statement C Codeforces Round 642 (Div. 3) {1353} PROGRAMMING Codeforces Round #642 (Div. 3) Editorial 1000
44952 Most Unstable Array constructive algorithms greedy math Statement A Codeforces Round 642 (Div. 3) {1353} PROGRAMMING Codeforces Round #642 (Div. 3) Editorial 800
16399 Simple Polygon Embedding binary search geometry math ternary search Statement C1 Educational Codeforces Round 87 (Rated for Div. 2) {1354} PROGRAMMING 77593 1400
6402 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
25018 Alarm Clock math Statement A Educational Codeforces Round 87 (Rated for Div. 2) {1354} PROGRAMMING 77593 900
29038 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
19145 Game With Array constructive algorithms math Statement D Codeforces Round 643 (Div. 2) {1355} PROGRAMMING 1500.0 Codeforces Round #643 (Div. 2) Editorial 1400
12250 Count Triangles binary search implementation math two pointers Statement C Codeforces Round 643 (Div. 2) {1355} PROGRAMMING 1250.0 Codeforces Round #643 (Div. 2) Editorial 1800
5936 Restorer Distance binary search greedy math sortings ternary search Statement E Codeforces Round 643 (Div. 2) {1355} PROGRAMMING 2000.0 Codeforces Round #643 (Div. 2) Editorial 2100
18469 Celex Update math Statement C Codeforces Round 645 (Div. 2) {1358} PROGRAMMING 1500.0 Codeforces Round #645 (Div. 2) Editorial 1600
43731 Park Lighting math Statement A Codeforces Round 645 (Div. 2) {1358} PROGRAMMING 500.0 Codeforces Round #645 (Div. 2) Editorial 800
31920 Berland Poker brute force greedy math Statement A Educational Codeforces Round 88 (Rated for Div. 2) {1359} PROGRAMMING Educational Codeforces Round 88 Editorial 1000
15484 Mixing Water binary search math Statement C Educational Codeforces Round 88 (Rated for Div. 2) {1359} PROGRAMMING Educational Codeforces Round 88 Editorial 1700
6838 Modular Stability combinatorics math number theory Statement E Educational Codeforces Round 88 (Rated for Div. 2) {1359} PROGRAMMING Educational Codeforces Round 88 Editorial 2000
603 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
44565 Buying Shovels math number theory Statement D Codeforces Round 644 (Div. 3) {1360} PROGRAMMING Codeforces Round #644 (Div. 3) Editorial 1300
8393 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
57728 Minimal Square greedy math Statement A Codeforces Round 644 (Div. 3) {1360} PROGRAMMING Codeforces Round #644 (Div. 3) Editorial 800
3880 Johnny and Grandmaster greedy implementation math sortings Statement B Codeforces Round 647 (Div. 1) - Thanks, Algo Muse! {1361} PROGRAMMING 1250.0 Codeforces Round #647 Editorial 1900
364 Johnny and James greedy implementation math trees Statement D Codeforces Round 647 (Div. 1) - Thanks, Algo Muse! {1361} PROGRAMMING 2500.0 Codeforces Round #647 Editorial 2900
235 Johnny and New Toy data structures implementation math Statement F Codeforces Round 647 (Div. 1) - Thanks, Algo Muse! {1361} PROGRAMMING 3500.0 Codeforces Round #647 Editorial 3300
24611 Johnny and Another Rating Drop bitmasks greedy math Statement C Codeforces Round 647 (Div. 2) - Thanks, Algo Muse! {1362} PROGRAMMING 1500.0 Codeforces Round #647 Editorial 1400
41018 Odd Selection brute force implementation math Statement A Codeforces Round 646 (Div. 2) {1363} PROGRAMMING 500.0 78202 1200
4462 Guess The Maximums binary search divide and conquer implementation interactive math Statement D Codeforces Round 646 (Div. 2) {1363} PROGRAMMING 2000.0 78202 2100
1462 Secure Password bitmasks combinatorics constructive algorithms interactive math Statement G Codeforces Round 648 (Div. 2) {1365} PROGRAMMING 3000.0 Editorial — Codeforces Round #648 2800
33279 Shovels and Swords binary search greedy math Statement A Educational Codeforces Round 89 (Rated for Div. 2) {1366} PROGRAMMING Educational Codeforces Round 89 Editorial
12564 Two Divisors constructive algorithms math number theory Statement D Educational Codeforces Round 89 (Rated for Div. 2) {1366} PROGRAMMING Educational Codeforces Round 89 Editorial
14308 Palindromic Paths dsu greedy math Statement C Educational Codeforces Round 89 (Rated for Div. 2) {1366} PROGRAMMING Educational Codeforces Round 89 Editorial
29114 Shuffle math two pointers Statement B Educational Codeforces Round 89 (Rated for Div. 2) {1366} PROGRAMMING Educational Codeforces Round 89 Editorial
25494 Social Distance constructive algorithms greedy math Statement C Codeforces Round 650 (Div. 3) {1367} PROGRAMMING Codeforces Round #650 (Div. 3) Editorial
65376 Even Array greedy math Statement B Codeforces Round 650 (Div. 3) {1367} PROGRAMMING Codeforces Round #650 (Div. 3) Editorial
14139 AND, OR and square sum bitmasks greedy math Statement D Codeforces Global Round 8 {1368} PROGRAMMING 1750.0 Codeforces Global Round 8: editorial
21692 Codeforces Subsequences brute force constructive algorithms greedy math strings Statement B Codeforces Global Round 8 {1368} PROGRAMMING 1000.0 Codeforces Global Round 8: editorial
46999 C+= brute force greedy math Statement A Codeforces Global Round 8 {1368} PROGRAMMING 500.0 Codeforces Global Round 8: editorial
1123 Lamps on a Circle games greedy implementation interactive math Statement F Codeforces Global Round 8 {1368} PROGRAMMING 3000.0 Codeforces Global Round 8: editorial
21041 RationalLee greedy math sortings Statement C Codeforces Round 652 (Div. 2) {1369} PROGRAMMING 1500.0 Codeforces Round #652 (Div. 2) Editorial 1400
9275 TediousLee dp graphs greedy math matrices trees Statement D Codeforces Round 652 (Div. 2) {1369} PROGRAMMING 2000.0 Codeforces Round #652 (Div. 2) Editorial 1900
39304 FashionabLee geometry math Statement A Codeforces Round 652 (Div. 2) {1369} PROGRAMMING 500.0 Codeforces Round #652 (Div. 2) Editorial 800
25250 GCD Compression brute force constructive algorithms math number theory Statement B Codeforces Round 651 (Div. 2) {1370} PROGRAMMING 1000.0 Editorial — Codeforces Round #651
66287 Maximum GCD brute force greedy implementation number theory Statement A Codeforces Round 651 (Div. 2) {1370} PROGRAMMING 500.0 Editorial — Codeforces Round #651
27481 Number Game games math number theory Statement C Codeforces Round 651 (Div. 2) {1370} PROGRAMMING 1500.0 Editorial — Codeforces Round #651
2534 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
5543 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
21480 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
13759 Grid-00100 constructive algorithms greedy math Statement D Codeforces Round 654 (Div. 2) {1371} PROGRAMMING 1500.0 Codeforces Round #654 (Div. 2) Editorial
19658 Magical Calendar constructive algorithms math Statement B Codeforces Round 654 (Div. 2) {1371} PROGRAMMING 1000.0 Codeforces Round #654 (Div. 2) Editorial
51815 Magical Sticks math Statement A Codeforces Round 654 (Div. 2) {1371} PROGRAMMING 500.0 Codeforces Round #654 (Div. 2) Editorial
37707 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
19194 Omkar and Baseball constructive algorithms math Statement C Codeforces Round 655 (Div. 2) {1372} PROGRAMMING 1500.0 Codeforces Round #655 Editorial 1500
5919 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
19480 Pluses and Minuses binary search dp greedy implementation math Statement C Educational Codeforces Round 90 (Rated for Div. 2) {1373} PROGRAMMING Educational Codeforces Round 90 Editorial
2985 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
29827 Donut Shops greedy implementation math Statement A Educational Codeforces Round 90 (Rated for Div. 2) {1373} PROGRAMMING Educational Codeforces Round 90 Editorial
65260 Required Remainder math Statement A Codeforces Round 653 (Div. 3) {1374} PROGRAMMING 79517
74734 Multiply by 2, divide by 6 math Statement B Codeforces Round 653 (Div. 3) {1374} PROGRAMMING 79517
32176 Zero Remainder Array math sortings two pointers Statement D Codeforces Round 653 (Div. 3) {1374} PROGRAMMING 79517
2547 Integer Game brute force constructive algorithms games interactive math Statement F Codeforces Global Round 9 {1375} PROGRAMMING 2000.0 79731
282 Cubic Lattice geometry math matrices number theory Statement I Codeforces Global Round 9 {1375} PROGRAMMING 4000.0 79731
13218 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
6154 Choosing flowers binary search data structures greedy math sortings two pointers Statement C Codeforces Round 657 (Div. 2) {1379} PROGRAMMING 1250.0 Codeforces Round #657 Editorial 2000
530 Inverse Genealogy constructive algorithms divide and conquer dp math trees Statement E Codeforces Round 657 (Div. 2) {1379} PROGRAMMING 2500.0 Codeforces Round #657 Editorial 2400
5058 Berserk And Fireball brute force greedy math Statement D Educational Codeforces Round 91 (Rated for Div. 2) {1380} PROGRAMMING Educational Codeforces Round 91 Editorial
1007 Circular Dungeon greedy math probabilities Statement G Educational Codeforces Round 91 (Rated for Div. 2) {1380} PROGRAMMING Educational Codeforces Round 91 Editorial
9667 Unmerge combinatorics dp two pointers Statement B Codeforces Round 658 (Div. 1) {1381} PROGRAMMING 1500.0 Codeforces Round #658 Editorial 1800
325 Origami geometry math sortings Statement E Codeforces Round 658 (Div. 1) {1381} PROGRAMMING 3000.0 Codeforces Round #658 Editorial 3300
5553 GameGame bitmasks constructive algorithms dp games greedy math Statement B Codeforces Round 659 (Div. 1) {1383} PROGRAMMING 1000.0 Codeforces Round #659 Editorial
43925 Three Pairwise Maximums math Statement A Codeforces Round 656 (Div. 3) {1385} PROGRAMMING Codeforces Round #656 (Div. 3) Editorial 800
354 Colors *special binary search constructive algorithms interactive Statement A Baltic Olympiad in Informatics 2020, Day 1 (IOI, Unofficial Mirror Contest, Unrated) {1386} PROGRAMMING T
157 Mixture *special data structures geometry math sortings Statement B Baltic Olympiad in Informatics 2020, Day 1 (IOI, Unofficial Mirror Contest, Unrated) {1386} PROGRAMMING T
952 Graph *special dfs and similar dp math Statement A Baltic Olympiad in Informatics 2020, Day 2 (IOI, Unofficial Mirror Contest, Unrated) {1387} PROGRAMMING T
22873 Captain Flint and a Long Voyage greedy math Statement B Codeforces Round 660 (Div. 2) {1388} PROGRAMMING 1000.0 Codeforces Round #660 Editorial 1000
10475 Uncle Bogdan and Country Happiness dfs and similar dp greedy math trees Statement C Codeforces Round 660 (Div. 2) {1388} PROGRAMMING 1500.0 Codeforces Round #660 Editorial 1800
26035 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
4579 Segment Intersections binary search brute force greedy implementation math Statement D Educational Codeforces Round 92 (Rated for Div. 2) {1389} PROGRAMMING 80809
51103 LCM Problem constructive algorithms greedy math number theory Statement A Educational Codeforces Round 92 (Rated for Div. 2) {1389} PROGRAMMING 80809
20910 Array Walk dp greedy math Statement B Educational Codeforces Round 92 (Rated for Div. 2) {1389} PROGRAMMING 80809
3752 Calendar Ambiguity math number theory Statement E Educational Codeforces Round 92 (Rated for Div. 2) {1389} PROGRAMMING 80809
16128 Cyclic Permutations combinatorics graphs math Statement C Codeforces Round 663 (Div. 2) {1391} PROGRAMMING 1250.0 Codeforces Round #663 (Div. 2) Editorial
25110 Suborrays constructive algorithms math Statement A Codeforces Round 663 (Div. 2) {1391} PROGRAMMING 500.0 Codeforces Round #663 (Div. 2) Editorial
2428 Omkar and Landslide binary search constructive algorithms greedy math Statement F Codeforces Global Round 10 {1392} PROGRAMMING 2500.0 Codeforces Global Round 10 — Editorial
3785 Omkar and Duck bitmasks constructive algorithms interactive math Statement E Codeforces Global Round 10 {1392} PROGRAMMING 2000.0 Codeforces Global Round 10 — Editorial
712 Omkar and Pies bitmasks dfs and similar dp math Statement G Codeforces Global Round 10 {1392} PROGRAMMING 3000.0 Codeforces Global Round 10 — Editorial
1069 ZS Shuffles Cards combinatorics math probabilities Statement H Codeforces Global Round 10 {1392} PROGRAMMING 3500.0 Codeforces Global Round 10 — Editorial
9982 Omkar and Bed Wars constructive algorithms dp greedy math strings Statement D Codeforces Global Round 10 {1392} PROGRAMMING 1500.0 Codeforces Global Round 10 — Editorial
289 Kevin and Grid fft graphs math Statement I Codeforces Global Round 10 {1392} PROGRAMMING 4000.0 Codeforces Global Round 10 — Editorial
18941 Omkar and Infinity Clock implementation math Statement B Codeforces Global Round 10 {1392} PROGRAMMING 750.0 Codeforces Global Round 10 — Editorial
11089 Pinkie Pie Eats Patty-cakes binary search constructive algorithms data structures greedy math sortings Statement C Codeforces Round 662 (Div. 2) {1393} PROGRAMMING 1500.0 Codeforces Round #662 Editorial
20850 Rainbow Dash, Fluttershy and Chess Coloring greedy math Statement A Codeforces Round 662 (Div. 2) {1393} PROGRAMMING 500.0 Codeforces Round #662 Editorial
15545 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
38287 Good Subarrays binary search data structures dp math Statement C Educational Codeforces Round 93 (Rated for Div. 2) {1398} PROGRAMMING Educational Codeforces Round 93 Editorial
2620 Two Types of Spells binary search data structures greedy implementation math sortings Statement E Educational Codeforces Round 93 (Rated for Div. 2) {1398} PROGRAMMING Educational Codeforces Round 93 Editorial
1316 Running Competition bitmasks fft math number theory Statement G Educational Codeforces Round 93 (Rated for Div. 2) {1398} PROGRAMMING Educational Codeforces Round 93 Editorial
28905 Bad Triangle geometry math Statement A Educational Codeforces Round 93 (Rated for Div. 2) {1398} PROGRAMMING Educational Codeforces Round 93 Editorial
11743 RPG Protagonist binary search brute force greedy math Statement B Educational Codeforces Round 94 (Rated for Div. 2) {1400} PROGRAMMING 81942
1195 Mercenaries bitmasks combinatorics data structures math two pointers Statement G Educational Codeforces Round 94 (Rated for Div. 2) {1400} PROGRAMMING 81942
11496 Zigzags brute force data structures dp math two pointers Statement D Educational Codeforces Round 94 (Rated for Div. 2) {1400} PROGRAMMING 81942
10721 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
21844 Ternary Sequence constructive algorithms greedy math Statement B Codeforces Round 665 (Div. 2) {1401} PROGRAMMING 1000.0 Codeforces Round #665 (Div. 2) Editorial
27194 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
28773 Distance and Axis math number theory Statement A Codeforces Round 665 (Div. 2) {1401} PROGRAMMING 500.0 Codeforces Round #665 (Div. 2) Editorial
1377 Fancy Fence *special data structures dp dsu math sortings Statement A Central-European Olympiad in Informatics, CEOI 2020, Day 1 (IOI, Unofficial Mirror Contest, Unrated) {1402} PROGRAMMING Editorial
94 Chess Rush *special combinatorics dp implementation math Statement C Central-European Olympiad in Informatics, CEOI 2020, Day 2 (IOI, Unofficial Mirror Contest, Unrated) {1403} PROGRAMMING CEOI 2020 Online Mirror — Day 2 Tutorial
1302 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
21956 Permutation Forgery constructive algorithms Statement A Codeforces Round 668 (Div. 2) {1405} PROGRAMMING 500.0 Codeforces Round #668 Editorial
3848 Three Sequences binary search data structures greedy math Statement D Codeforces Round 670 (Div. 2) {1406} PROGRAMMING 2000.0 Codeforces Round #670 (Div. 2) Editorial
23223 Subset Mex greedy implementation math Statement A Codeforces Round 670 (Div. 2) {1406} PROGRAMMING 500.0 Codeforces Round #670 (Div. 2) Editorial
18199 Big Vova brute force greedy math number theory Statement B Codeforces Round 669 (Div. 2) {1407} PROGRAMMING 1000.0 Codeforces Round #669 Editorial
15237 Chocolate Bunny constructive algorithms interactive math two pointers Statement C Codeforces Round 669 (Div. 2) {1407} PROGRAMMING 1500.0 Codeforces Round #669 Editorial
21490 Ahahahahahahahaha constructive algorithms math Statement A Codeforces Round 669 (Div. 2) {1407} PROGRAMMING 500.0 Codeforces Round #669 Editorial
9327 Discrete Acceleration binary search implementation math two pointers Statement C Grakn Forces 2020 {1408} PROGRAMMING 1250.0 Grakn Forces -- Editorial
2736 Two Different bitmasks constructive algorithms divide and conquer greedy Statement F Grakn Forces 2020 {1408} PROGRAMMING 2500.0 Grakn Forces -- Editorial
10493 Arrays Sum constructive algorithms greedy math Statement B Grakn Forces 2020 {1408} PROGRAMMING 1000.0 Grakn Forces -- Editorial
302 Bitwise Magic dp math Statement I Grakn Forces 2020 {1408} PROGRAMMING 3750.0 Grakn Forces -- Editorial
31196 Minimum Product brute force greedy math Statement B Codeforces Round 667 (Div. 3) {1409} PROGRAMMING Codeforces Round #667 (Div. 3) Editorial
24800 Yet Another Array Restoration brute force math Statement C Codeforces Round 667 (Div. 3) {1409} PROGRAMMING Codeforces Round #667 (Div. 3) Editorial
21612 Decrease the Sum of Digits greedy math Statement D Codeforces Round 667 (Div. 3) {1409} PROGRAMMING Codeforces Round #667 (Div. 3) Editorial
81943 Yet Another Two Integers Problem math Statement A Codeforces Round 667 (Div. 3) {1409} PROGRAMMING Codeforces Round #667 (Div. 3) Editorial
933 No Game No Life games math matrices Statement G Technocup 2021 - Elimination Round 3 {1411} PROGRAMMING 3250.0 Technocup 2021 Elimination Round 3 and Round #692 (Div. 1 + Div. 2) Editorial
1855 Poman Numbers greedy implementation math Statement E Technocup 2021 - Elimination Round 3 {1411} PROGRAMMING 2250.0 Technocup 2021 Elimination Round 3 and Round #692 (Div. 1 + Div. 2) Editorial
492 The Thorny Path greedy math matrices Statement F Technocup 2021 - Elimination Round 3 {1411} PROGRAMMING 2750.0 Technocup 2021 Elimination Round 3 and Round #692 (Div. 1 + Div. 2) Editorial
2202 Solo mid Oracle binary search math ternary search Statement E Technocup 2021 - Elimination Round 1 {1413} PROGRAMMING 2250.0 Codeforces Round 679 (Div. 1, Div. 2) and Technocup Round 1 editorial
15316 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
15923 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)
3039 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)
6755 Make Them Equal constructive algorithms greedy math Statement B Codeforces Round 673 (Div. 1) {1416} PROGRAMMING 1000.0 Codeforces Round #673 Editorial 2000
15114 Two Arrays greedy math sortings Statement B Codeforces Round 673 (Div. 2) {1417} PROGRAMMING 1000.0 Codeforces Round #673 Editorial 1100
18769 Copy-paste greedy math Statement A Codeforces Round 673 (Div. 2) {1417} PROGRAMMING 500.0 Codeforces Round #673 Editorial 800
2289 Expected Damage binary search combinatorics math probabilities Statement E Educational Codeforces Round 95 (Rated for Div. 2) {1418} PROGRAMMING Unofficial Editorial for Educational Round 95 (Div. 2)
476 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)
35699 Buying Torches math Statement A Educational Codeforces Round 95 (Rated for Div. 2) {1418} PROGRAMMING Unofficial Editorial for Educational Round 95 (Div. 2)
3542 Decryption bitmasks constructive algorithms implementation math number theory Statement E Codeforces Round 671 (Div. 2) {1419} PROGRAMMING 2250.0 Codeforces Round #671 Editorial
17083 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
16375 Killjoy greedy implementation math Statement C Codeforces Round 671 (Div. 2) {1419} PROGRAMMING 1250.0 Codeforces Round #671 Editorial
37457 Rock and Lever bitmasks math Statement B Codeforces Round 672 (Div. 2) {1420} PROGRAMMING 1000.0 Editorial
25369 Cubes Sorting math sortings Statement A Codeforces Round 672 (Div. 2) {1420} PROGRAMMING 500.0 Editorial
36423 XORwice bitmasks greedy math Statement A Codeforces Round 676 (Div. 2) {1421} PROGRAMMING 500.0 Codeforces Round #676 (Div. 2) Editorial
4391 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
8879 Bargain dp math probabilities Statement C Codeforces Round 675 (Div. 2) {1422} PROGRAMMING 1000.0 Codeforces Round #675 (Div. 2) Editorial
21918 Fence geometry math Statement A Codeforces Round 675 (Div. 2) {1422} PROGRAMMING 500.0 Codeforces Round #675 (Div. 2) Editorial
5485 Lonely Numbers binary search math number theory Statement K Bubble Cup 13 - Finals [Online Mirror, unrated, Div. 1] {1423} PROGRAMMING FinalsEditorial2020.pdf
908 Bubble Cup hypothesis constructive algorithms dp math Statement J Bubble Cup 13 - Finals [Online Mirror, unrated, Div. 1] {1423} PROGRAMMING FinalsEditorial2020.pdf
220 Dušan's Railway graphs trees Statement C Bubble Cup 13 - Finals [Online Mirror, unrated, Div. 1] {1423} PROGRAMMING FinalsEditorial2020.pdf
342 Milutin's Plums interactive Statement M Bubble Cup 13 - Finals [Online Mirror, unrated, Div. 1] {1423} PROGRAMMING FinalsEditorial2020.pdf
521 Coins math Statement F Bubble Cup 13 - Finals [Online Mirror, unrated, Div. 1] {1423} PROGRAMMING FinalsEditorial2020.pdf
917 Danger of Mad Snakes combinatorics dp math Statement D 2020 ICPC, COMPFEST 12, Indonesia Multi-Provincial Contest (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1425} PROGRAMMING Tutorial 2300
98 Captain of Knights math Statement C 2020 ICPC, COMPFEST 12, Indonesia Multi-Provincial Contest (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1425} PROGRAMMING Tutorial 3100
20748 Increase and Copy binary search constructive algorithms math Statement C Codeforces Round 674 (Div. 3) {1426} PROGRAMMING 83120 1100
8191 Rock, Paper, Scissors brute force constructive algorithms flows greedy math Statement E Codeforces Round 674 (Div. 3) {1426} PROGRAMMING 83120 1800
55694 Floor Number implementation math Statement A Codeforces Round 674 (Div. 3) {1426} PROGRAMMING 83120 800
1676 Xum bitmasks constructive algorithms math number theory Statement E Codeforces Global Round 11 {1427} PROGRAMMING 1500.0 Editorial of Global Round 11 2500
18106 Avoiding Zero math sortings Statement A Codeforces Global Round 11 {1427} PROGRAMMING 500.0 Editorial of Global Round 11 900
4327 Carrots for Rabbits binary search data structures greedy math Statement E Codeforces Raif Round 1 (Div. 1 + Div. 2) {1428} PROGRAMMING 1750.0 Codeforces Raif Round 1 Editorial
17061 Box is Pull math Statement A Codeforces Raif Round 1 (Div. 1 + Div. 2) {1428} PROGRAMMING 500.0 Codeforces Raif Round 1 Editorial
904 Yet Another DAG Problem bitmasks dp flows math Statement G Educational Codeforces Round 96 (Rated for Div. 2) {1430} PROGRAMMING Educational Codeforces Round 96 — Editorial
21929 Number of Apartments brute force dp math Statement A Educational Codeforces Round 96 (Rated for Div. 2) {1430} PROGRAMMING Educational Codeforces Round 96 — Editorial
28678 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
20011 Two Round Dances combinatorics math Statement E Codeforces Round 677 (Div. 3) {1433} PROGRAMMING Codeforces Round #677 (Div. 3) Editorial
63510 Boring Apartments implementation math Statement A Codeforces Round 677 (Div. 3) {1433} PROGRAMMING Codeforces Round #677 (Div. 3) Editorial
670 Sum Over Subsets combinatorics math number theory Statement F Codeforces Round 678 (Div. 2) {1436} PROGRAMMING 3000.0 Codeforces Round #678 (Div. 2). Editorial
21798 Prime Square constructive algorithms math Statement B Codeforces Round 678 (Div. 2) {1436} PROGRAMMING 1000.0 Codeforces Round #678 (Div. 2). Editorial
23621 Reorder math Statement A Codeforces Round 678 (Div. 2) {1436} PROGRAMMING 500.0 Codeforces Round #678 (Div. 2). Editorial
18503 Marketing Scheme brute force constructive algorithms greedy math Statement A Educational Codeforces Round 97 (Rated for Div. 2) {1437} PROGRAMMING 84149
1658 Emotional Fishermen combinatorics dp math Statement F Educational Codeforces Round 97 (Rated for Div. 2) {1437} PROGRAMMING 84149
32155 Sum of Medians greedy math Statement B Codeforces Round 684 (Div. 2) {1440} PROGRAMMING 1000.0 Codeforces Round #684[Div1 and Div2] Editorial
20430 Buy the String implementation math Statement A Codeforces Round 684 (Div. 2) {1440} PROGRAMMING 500.0 Codeforces Round #684[Div1 and Div2] Editorial
1580 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
16725 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
16735 Saving the City greedy math sortings Statement B Codeforces Round 681 (Div. 2, based on VK Cup 2019-2020 - Final) {1443} PROGRAMMING 1000.0 VK Cup 2019-2020 -- Engine Editorial
6820 Divide and Sum combinatorics math Statement B Codeforces Round 680 (Div. 1, based on Moscow Team Olympiad) {1444} PROGRAMMING 1000.0 Codeforces Round #680 Editorial
14546 Division math number theory Statement A Codeforces Round 680 (Div. 1, based on Moscow Team Olympiad) {1444} PROGRAMMING 500.0 Codeforces Round #680 Editorial
15984 Elimination math Statement B Codeforces Round 680 (Div. 2, based on Moscow Team Olympiad) {1445} PROGRAMMING 1000.0 Codeforces Round #680 Editorial
14483 Add Candies constructive algorithms math Statement A Codeforces Round 683 (Div. 2, by Meet IT) {1447} PROGRAMMING 500.0 Meet IT Codeforces Round Editorial
28138 Numbers Box greedy math Statement B Codeforces Round 683 (Div. 2, by Meet IT) {1447} PROGRAMMING 1000.0 Meet IT Codeforces Round Editorial
565 Multithreading (Easy Version) combinatorics fft math Statement H1 Codeforces Global Round 12 {1450} PROGRAMMING 2750.0 Codeforces Global Round 12 Editorial
324 Multithreading (Hard Version) combinatorics implementation math Statement H2 Codeforces Global Round 12 {1450} PROGRAMMING 1750.0 Codeforces Global Round 12 Editorial
4333 Errich-Tac-Toe (Hard Version) constructive algorithms math Statement C2 Codeforces Global Round 12 {1450} PROGRAMMING 750.0 Codeforces Global Round 12 Editorial
5554 Bitwise Queries (Easy Version) bitmasks constructive algorithms interactive math Statement E1 Codeforces Round 685 (Div. 2) {1451} PROGRAMMING 1500.0 Editorial — Codeforces Round #685
3922 Bitwise Queries (Hard Version) bitmasks constructive algorithms interactive math Statement E2 Codeforces Round 685 (Div. 2) {1451} PROGRAMMING 1000.0 Editorial — Codeforces Round #685
10218 Circle Game games geometry math Statement D Codeforces Round 685 (Div. 2) {1451} PROGRAMMING 1750.0 Editorial — Codeforces Round #685
25379 Subtract or Divide greedy math Statement A Codeforces Round 685 (Div. 2) {1451} PROGRAMMING 500.0 Editorial — Codeforces Round #685
15561 Toy Blocks binary search greedy math sortings Statement B Educational Codeforces Round 98 (Rated for Div. 2) {1452} PROGRAMMING 84847
8776 Radio Towers combinatorics dp math Statement D Educational Codeforces Round 98 (Rated for Div. 2) {1452} PROGRAMMING 84847
23016 Robot Program math Statement A Educational Codeforces Round 98 (Rated for Div. 2) {1452} PROGRAMMING 84847
4468 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
22500 Number into Sequence constructive algorithms math number theory Statement D Codeforces Round 686 (Div. 3) {1454} PROGRAMMING Codeforces Round #686 (Div. 3) Editorial
1679 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
20551 Ping-pong constructive algorithms games math Statement C Educational Codeforces Round 99 (Rated for Div. 2) {1455} PROGRAMMING 85186
23411 Jumps constructive algorithms math Statement B Educational Codeforces Round 99 (Rated for Div. 2) {1455} PROGRAMMING 85186
481 Range Diameter Sum Statement F Codeforces Round 691 (Div. 1) {1458} PROGRAMMING 3500.0 Codeforces Round #691 Editorial (finished)
1771 Latin Square data structures implementation math matrices Statement C Codeforces Round 691 (Div. 1) {1458} PROGRAMMING 1500.0 Codeforces Round #691 Editorial (finished)
26250 Row GCD math number theory Statement A Codeforces Round 691 (Div. 1) {1458} PROGRAMMING 500.0 Codeforces Round #691 Editorial (finished)
21838 Move and Turn dp math Statement B Codeforces Round 691 (Div. 2) {1459} PROGRAMMING 1000.0 Codeforces Round #691 Editorial (finished)
17986 Red-Blue Shuffle math probabilities Statement A Codeforces Round 691 (Div. 2) {1459} PROGRAMMING 750.0 Codeforces Round #691 Editorial (finished)
10371 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
2238 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
673 Mathematical Expression constructive algorithms dp greedy Statement F Codeforces Round 689 (Div. 2, based on Zed Code Competition) {1461} PROGRAMMING 2750.0 Codeforces Round #689 (Div. 2). Editorial
12554 Random Events math probabilities Statement C Codeforces Round 689 (Div. 2, based on Zed Code Competition) {1461} PROGRAMMING 1250.0 Codeforces Round #689 (Div. 2). Editorial
11577 Close Tuples (hard version) binary search combinatorics implementation math sortings two pointers Statement E2 Codeforces Round 690 (Div. 3) {1462} PROGRAMMING Codeforces Round #690 (Div. 3) Editorial
15370 Close Tuples (easy version) binary search combinatorics math sortings two pointers Statement E1 Codeforces Round 690 (Div. 3) {1462} PROGRAMMING Codeforces Round #690 (Div. 3) Editorial
36893 Unique Number dp greedy math Statement C Codeforces Round 690 (Div. 3) {1462} PROGRAMMING Codeforces Round #690 (Div. 3) Editorial
18335 Add to Neighbour and Remove greedy math number theory Statement D Codeforces Round 690 (Div. 3) {1462} PROGRAMMING Codeforces Round #690 (Div. 3) Editorial
6081 Busy Robot implementation math Statement C Educational Codeforces Round 100 (Rated for Div. 2) {1463} PROGRAMMING Educational Codeforces Round 100 Editorial
28169 Dungeon math Statement A Educational Codeforces Round 100 (Rated for Div. 2) {1463} PROGRAMMING Educational Codeforces Round 100 Editorial
8517 Apollo versus Pan bitmasks math Statement E Good Bye 2020 {1466} PROGRAMMING 1500.0 Good Bye 2020 Editorial
23248 Bovine Dilemma brute force math Statement A Good Bye 2020 {1466} PROGRAMMING 500.0 Good Bye 2020 Editorial
3079 Euclid's nightmare dfs and similar dsu graphs math Statement F Good Bye 2020 {1466} PROGRAMMING 1750.0 Good Bye 2020 Editorial
1042 Song of the Sirens divide and conquer hashing math strings Statement G Good Bye 2020 {1466} PROGRAMMING 2500.0 Good Bye 2020 Editorial
665 Finding satisfactory solutions dp graphs greedy math Statement H Good Bye 2020 {1466} PROGRAMMING 3500.0 Good Bye 2020 Editorial
4056 Sum of Paths combinatorics dp math Statement D Codeforces Round 695 (Div. 2) {1467} PROGRAMMING 1750.0 Codeforces Round #695 (Div. 2) Editorial 2200
25395 Wizard of Orz greedy math Statement A Codeforces Round 695 (Div. 2) {1467} PROGRAMMING 500.0 Codeforces Round #695 (Div. 2) Editorial 900
2030 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)