Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Codeforces — 709 solutions

Listed hardest-first. Folders: rounds/ (rated) and icpc-gym/ (ICPC & team).

Problem Date Topics Lines
Shaass the Great 2023-08-19 dp, trees 76
Card Game 2025-03-12 combinatorics, dp, fft, greedy 53
Beautiful Tree 2025-10-19 constructive algorithms, math, probabilities, trees 35
How Many Paths? 2025-02-19 dfs and similar, dp, graphs, trees 133
Longest Array Deconstruction 2025-02-22 data structures, divide and conquer, dp, sortings 131
Ralph and Mushrooms 2022-06-09 dp, graphs 105
Adventurers 2025-02-24 binary search, data structures, greedy, sortings 104
GCD of an Array 2022-01-17 brute force, data structures, hashing, implementation 99
Destroy it! 2025-02-23 dp, implementation, sortings 80
Red-Black Number 2021-10-15 dfs and similar, dp, implementation, math 74
Mishka and Interesting sum 2025-03-13 data structures 59
Three Paths on a Tree 2023-12-26 dfs and similar, dp, greedy, trees 119
XOR on Segment 2025-03-07 bitmasks, data structures 96
1-1-1, Free Tree! 2025-10-23 brute force, data structures, dfs and similar, graphs 90
Orac and Game of Life 2025-02-16 dfs and similar, graphs, implementation, shortest paths 76
Maximum Subarray 2025-02-16 data structures, dp, greedy, two pointers 66
GCD Counting 2025-03-06 data structures, dfs and similar, dp, number theory 62
Messenger Simulator 2025-03-13 data structures 55
Work Group 2024-11-14 dfs and similar, dp, graphs, strings 53
Replace With Product 2023-12-22 brute force, greedy, math 51
TV Shows 2025-02-17 data structures, greedy, implementation, sortings 43
Increasing Frequency 2021-09-14 binary search, dp, greedy 43
Weakness and Poorness 2023-06-03 ternary search 33
Multiset 2022-08-24 binary search, data structures 185
Unlucky Numbers 2023-12-22 brute force, dp, greedy, implementation 80
Strange Definition 2021-12-08 bitmasks, graphs, hashing, math 73
Half of Same 2021-10-13 brute force, math, number theory 66
Robot Queries 2023-12-19 binary search, data structures, dp, implementation 63
Palindromic characteristics 2022-08-16 brute force, dp, hashing, strings 63
Valuable Cards 2025-11-01 brute force, dp, greedy, number theory 63
Noise Level 2023-08-09 dfs and similar, implementation, math 62
Concatenated Multiples 2021-11-17 implementation, math 62
Credit Card 2022-08-19 data structures, dp, greedy, implementation 62
N Problems During K Days 2022-08-24 constructive algorithms, greedy, math 54
Changing Array 2022-08-14 greedy, implementation 51
Yet Another Problem On a Subsequence 2022-01-17 combinatorics, dp 49
Suspicious logarithms 2023-12-20 binary search, brute force, math 39
Not Adding 2022-06-22 brute force, dp, math, number theory 39
A BIT of an Inequality 2025-03-04 bitmasks, brute force, dp, math 37
Maximum Subsequence Value 2024-03-20 brute force, constructive algorithms 29
Ehab and the Expected XOR Problem 2023-12-20 bitmasks, constructive algorithms 26
Max GEQ Sum 2022-08-29 binary search, constructive algorithms, data structures, divide and conquer 116
Book 2022-06-12 binary search, brute force, data structures, dp 106
Bus Number 2022-08-27 brute force, combinatorics, math 99
Range and Partition 2022-08-28 binary search, constructive algorithms, data structures, greedy 97
Range and Partition 2022-08-28 binary search, constructive algorithms, greedy, two pointers 97
ATM and Students 2022-08-30 binary search, data structures, two pointers 96
Path Queries 2022-08-28 divide and conquer, dsu, graphs, sortings 91
Inversion Value of a Permutation 2025-10-27 constructive algorithms, dfs and similar, dp 90
Vasya And Array 2022-06-19 constructive algorithms, greedy, implementation 89
Maximum Distributed Tree 2022-07-26 dfs and similar, dp, greedy, implementation 87
Explorer Space 2022-08-28 dp, graphs, shortest paths 85
Apollo versus Pan 2022-09-13 bitmasks, brute force, math 83
BA-String 2022-09-05 brute force, dp, greedy, implementation 81
Exponential notation 2022-09-05 implementation, strings 80
High Load 2022-08-22 constructive algorithms, greedy, implementation, trees 72
Recover it! 2022-07-06 dfs and similar, graphs, greedy, number theory 70
Restore Graph 2022-08-21 dfs and similar, graphs, sortings 70
The Golden Age 2021-11-24 brute force, math 67
Uncle Bogdan and Country Happiness 2022-06-16 dfs and similar, greedy, math, trees 67
Tree Cutting (Easy Version) 2022-07-10 dfs and similar, trees 64
Enlarge GCD 2022-07-08 number theory 64
Fancy Fence 2024-03-23 *special, data structures, dsu, implementation 63
Interesting Array 2022-08-12 constructive algorithms, data structures, trees 62
Compression 2022-07-17 dp, implementation, math, number theory 61
Send Boxes to Alice (Easy Version) 2022-07-07 constructive algorithms, greedy, math, number theory 61
Polycarp and String Transformation 2022-07-12 binary search, implementation, sortings, strings 59
Array and Segments (Easy version) 2022-07-11 brute force, greedy, implementation 58
Cleaning the Phone 2022-06-12 binary search, dp, sortings, two pointers 56
Busy Robot 2022-08-23 implementation 55
Problem for Nazar 2022-06-26 constructive algorithms, math 54
Same GCDs 2022-09-05 math, number theory 52
Thematic Contests 2022-06-19 greedy, sortings 52
Nastya Is Buying Lunch 2022-07-25 greedy 52
Maximum Subsequence 2022-06-13 bitmasks, divide and conquer, meet-in-the-middle 50
Make The Fence Great Again 2022-06-16 dp 47
Take a Guess 2022-07-09 bitmasks, constructive algorithms, interactive, math 47
Chef Monocarp 2022-06-22 dp, flows, graph matchings, greedy 46
Maximize! 2022-06-24 binary search, greedy, ternary search, two pointers 46
Primitive Primes 2021-12-31 constructive algorithms, math, ternary search 46
Slime 2022-06-08 dp, greedy, implementation 45
Median on Segments (Permutations Edition) 2022-07-08 sortings 45
Catching Cheaters 2025-10-25 dp, strings 44
Petya and Array 2022-07-05 data structures, divide and conquer, two pointers 43
Attribute Checks 2025-03-11 brute force, data structures, dp, implementation 42
Count Triangles 2022-06-29 binary search, implementation, math, two pointers 42
Compressed Bracket Sequence 2022-06-21 brute force, implementation 41
Mikasa 2022-01-25 binary search, bitmasks, greedy, implementation 39
Extreme Subtraction 2023-12-17 constructive algorithms, dp, greedy 30
Minimum Array 2021-09-02 binary search, data structures, greedy 236
Trailing Loves (or L'oeufs?) 2021-08-18 brute force, implementation, math, number theory 220
Another Problem About Dividing Numbers 2021-06-11 constructive algorithms, math, number theory 212
Harmonious Graph 2021-09-19 constructive algorithms, dfs and similar, dsu, graphs 150
Boris and His Amazing Haircut 2023-02-22 constructive algorithms, data structures, dp, dsu 101
Solve The Maze 2022-01-13 constructive algorithms, dfs and similar, dsu, graphs 95
Array Destruction 2021-12-09 brute force, constructive algorithms, data structures, greedy 79
Square-Free Division (easy version) 2021-11-17 data structures, dp, greedy, math 77
Multiplicity 2022-12-26 data structures, dp, implementation, math 75
Ceil Divisions 2021-12-04 brute force, constructive algorithms, math, number theory 70
Crazy Diamond 2022-01-10 constructive algorithms, sortings 69
Primes and Multiplication 2022-01-20 math, number theory 67
Xenia and Colorful Gems 2021-09-05 binary search, greedy, math, sortings 66
Monsters And Spells 2022-03-30 binary search, data structures, dp, greedy 63
Long Beautiful Integer 2022-01-10 constructive algorithms, greedy, implementation, strings 62
Balanced Removals (Easier) 2021-11-21 constructive algorithms, geometry, greedy 61
Infinite Prefixes 2022-05-10 math, strings 61
Tree Pruning 2025-03-08 brute force, dfs and similar, greedy, sortings 60
Ladder 2021-04-07 dp, implementation, two pointers 60
Pinkie Pie Eats Patty-cakes 2021-12-21 constructive algorithms, greedy, math, sortings 58
Array Product 2025-03-19 constructive algorithms, greedy, math 57
Borya and Hanabi 2023-08-17 bitmasks, brute force, constructive algorithms, implementation 57
Count the Arrays 2021-11-20 combinatorics, math 57
Swap Dilemma 2025-03-26 constructive algorithms, data structures, divide and conquer, greedy 56
The Number Of Good Substrings 2022-03-13 binary search, bitmasks, brute force 55
Quiz Master 2023-03-07 binary search, math, number theory, sortings 53
Cut and Paste 2021-11-25 implementation, math 52
String Deletion 2022-05-06 binary search, data structures, greedy, two pointers 52
Skipping 2025-03-06 constructive algorithms, data structures, divide and conquer, dp 51
Coffee and Coursework (Easy version) 2022-01-13 brute force, greedy 51
Hills And Valleys 2021-01-08 brute force, implementation 50
Color the Fence 2022-04-01 data structures, dp, greedy, implementation 50
Water the Trees 2024-03-05 binary search, greedy, math 49
Cow and Snacks 2021-12-21 dfs and similar, dsu, graphs 49
Monotonic Renumeration 2022-01-06 combinatorics, sortings 48
Circle Game 2021-12-15 games, geometry, math 44
Superhero Battle 2025-03-25 math 43
Extra Element 2025-03-25 implementation, math 42
Hidden Permutations 2025-03-19 dfs and similar, interactive, math 40
Tandem Repeats? 2025-03-23 brute force, strings, two pointers 35
Walk on Matrix 2022-03-28 bitmasks, constructive algorithms, math 34
Devu and his Brother 2023-06-03 binary search, sortings, ternary search, two pointers 31
Goodbye, Banker Life 2025-02-25 2-sat, bitmasks, combinatorics, constructive algorithms 31
Problem with Random Tests 2024-02-27 brute force, dp, greedy, probabilities 26
League of Leesins 2021-09-08 constructive algorithms, implementation 321
Permutation Cycle 2021-07-27 brute force, constructive algorithms 245
Ehab and Prefix MEXs 2021-07-29 brute force, constructive algorithms, greedy 243
Secret Santa 2021-07-17 constructive algorithms, flows, graphs, greedy 243
Permutation by Sum 2021-06-16 brute force, greedy, math 235
Obtain The String 2021-09-08 dp, greedy, strings 235
Weakened Common Divisor 2021-07-22 brute force, greedy, number theory 234
Circular Dance 2021-07-19 implementation 233
p-binary 2021-09-08 bitmasks, brute force, math 233
Zmei Gorynich 2021-07-21 greedy, math 229
Load Testing 2021-07-22 greedy 227
Minimum Value Rectangle 2021-08-28 greedy 227
Row GCD 2021-08-02 math, number theory 226
Row GCD 2022-04-13 math, number theory 226
Coins and Queries 2021-08-27 greedy 226
Welfare State 2021-08-30 data structures, implementation 225
Sequence and Swaps 2021-08-05 dp, greedy, sortings 224
Primes on Interval 2021-07-20 binary search, number theory, two pointers 223
Lonely Numbers 2021-09-03 binary search, math, number theory, two pointers 219
Stas and the Queue at the Buffet 2021-09-06 greedy, math, sortings 218
Make It Equal 2021-08-29 greedy 218
Two Arrays and Sum of Functions 2021-08-30 greedy, math, sortings 211
Erase and Extend (Easy Version) 2021-08-03 binary search, brute force, dp, greedy 210
Circle of Monsters 2021-09-03 brute force, constructive algorithms, greedy, math 209
Orac and LCM 2021-06-13 data structures, math, number theory 208
RGB Substring (hard version) 2021-07-02 data structures, dp, implementation, two pointers 203
Strange Function 2021-07-04 math, number theory 201
Secrets 2021-06-15 greedy 190
Cat Party (Hard Edition) 2021-05-09 data structures, implementation 136
Colored Portals 2025-03-04 binary search, brute force, data structures, graphs 93
Celex Update 2021-09-02 math 91
Maximum Set 2023-03-06 binary search, math 87
Nastya Studies Informatics 2021-11-02 math, number theory 79
Basic Diplomacy 2021-11-06 brute force, constructive algorithms, greedy, implementation 74
Mukhammadali and the Smooth Array 2025-10-28 data structures, dp 74
Distinct Characters Queries 2021-10-11 data structures 71
Make Them Equal 2022-02-04 dp, greedy 70
K for the Price of One (Hard Version) 2022-01-10 dp, greedy, sortings 70
Rectangles 2021-11-19 geometry, implementation, sortings 67
Military Problem 2021-10-25 dfs and similar, graphs, trees 66
Divide and Summarize 2021-11-07 binary search, brute force, data structures, divide and conquer 62
Azamon Web Services 2021-11-11 greedy 61
Constructing the Array 2021-10-30 constructive algorithms, data structures, sortings 60
The Meeting Place Cannot Be Changed 2022-02-05 binary search 56
Minimal Height Tree 2022-01-09 graphs, greedy, shortest paths, trees 56
Polycarp's phone book 2021-12-01 data structures, implementation, sortings 55
Maximum Subrectangle 2021-09-11 binary search, implementation, two pointers 55
Cutting Out 2021-09-26 binary search, sortings 54
Hamburgers 2021-04-06 binary search, brute force 53
Vupsen, Pupsen and 0 2021-10-28 constructive algorithms, math 51
Boboniu and Bit Operations 2021-10-06 bitmasks, brute force, dp, greedy 51
Say No to Palindromes 2021-10-18 brute force, constructive algorithms, dp, strings 51
Modified GCD 2022-02-10 binary search, number theory 51
MEX maximizing 2021-10-07 data structures, greedy, implementation, math 50
Good Subarrays 2021-11-07 data structures, dp, math 47
MP3 2021-10-16 two pointers 45
Set or Decrease 2024-04-21 binary search, brute force, greedy, sortings 45
Hilbert's Hotel 2021-12-01 math, number theory, sortings 45
Product 1 Modulo N 2021-11-17 greedy, number theory 44
Hilbert's Hotel 2021-10-21 math, sortings 44
Sasha and a Bit of Relax 2021-10-11 dp, implementation 44
New Year and Permutation 2021-11-10 combinatorics, math 43
Mind Control 2021-09-11 brute force, data structures, greedy, math 42
Multi-Subject Competition 2021-09-14 greedy, sortings 39
Beautiful Palindromes 2025-10-19 constructive algorithms, greedy, schedules 39
k-LCM (hard version) 2021-03-22 constructive algorithms, math 36
Geometry Horse 2023-08-11 greedy, implementation, sortings, two pointers 36
The Phone Number 2021-11-03 constructive algorithms, greedy 33
Good Key, Bad Key 2022-07-12 bitmasks, brute force, dp, greedy 33
k-Amazing Numbers 2021-07-12 binary search, data structures, implementation, two pointers 249
Magic Powder - 2 2021-07-13 binary search, implementation 236
Curiosity Has No Limits 2021-08-23 233
Candies Distribution 2021-08-08 constructive algorithms, implementation 231
Farewell Party 2021-08-08 constructive algorithms, implementation 230
Balanced Ternary String 2021-06-20 greedy, strings 229
Uniqueness 2021-07-06 binary search, brute force, implementation, two pointers 227
Curriculum Vitae 2021-07-13 brute force, implementation 226
Two Seals 2021-07-13 brute force, implementation 224
Hongcow Builds A Nation 2021-06-09 dfs and similar, graphs 223
Coach 2021-06-01 brute force, dfs and similar, graphs 223
Bicolored RBS 2021-07-09 constructive algorithms, greedy 222
Decrease the Sum of Digits 2021-07-13 greedy, math 221
Polycarp and Div 3 2021-08-05 dp, greedy, number theory 221
Divide The Students 2021-07-12 binary search, greedy, math 215
Zero Quantity Maximization 2021-08-05 hashing, math, number theory 215
Beautiful Regional Contest 2021-07-01 greedy, implementation 214
Close Tuples (easy version) 2021-06-24 binary search, combinatorics, math, sortings 214
Interesting Function 2021-07-14 binary search, dp, math, number theory 214
Division and Union 2021-06-27 sortings 212
The Fair Nut and String 2021-08-09 combinatorics, dp, implementation 212
Polycarp's New Job 2021-08-14 implementation 212
Fly 2021-06-22 binary search, math 211
Walking Robot 2021-06-22 greedy 211
Bear and Three Musketeers 2021-06-28 brute force, dfs and similar, graphs, hashing 210
Kolya and Tandem Repeat 2021-06-29 brute force, implementation, strings 207
Cow and Message 2021-07-05 brute force, dp, math, strings 205
A Tale of Two Lands 2021-07-12 binary search, sortings, two pointers 205
RGB Substring (easy version) 2021-07-02 implementation 203
Friends and Gifts 2021-06-04 constructive algorithms, data structures, math 203
Xenia and Spies 2021-06-20 brute force, greedy, implementation 202
Case of Matryoshkas 2021-06-03 implementation 197
Divisibility by Eight 2021-05-17 brute force, dp, math 197
Minimum Grid Path 2021-06-30 brute force, data structures, greedy, math 195
Binary String To Subsequences 2021-05-26 constructive algorithms, data structures, greedy, implementation 194
Suitable Replacement 2021-06-07 binary search, greedy, implementation 192
Hyperset 2021-05-31 brute force, data structures, implementation 191
Qualification Rounds 2021-06-03 bitmasks, brute force, constructive algorithms, dp 188
K-Complete Word 2021-05-22 dfs and similar, dsu, greedy, implementation 187
Prefix-Suffix Palindrome (Easy version) 2021-05-20 hashing, string suffix structures, strings 186
Restoring the Permutation 2021-05-18 constructive algorithms, implementation 186
Good Numbers (hard version) 2021-05-23 binary search, greedy, math, meet-in-the-middle 183
Binary String Minimizing 2021-06-02 greedy 181
BerOS File Suggestion 2021-06-01 brute force, implementation 180
Dubious Cyrpto 2021-05-27 binary search, brute force, math, number theory 180
Modulo Equality 2021-05-27 brute force, sortings 179
a-Good String 2021-06-01 bitmasks, brute force, divide and conquer, dp 178
Two Substrings 2021-05-24 brute force, dp, greedy, implementation 178
Secret 2021-06-03 constructive algorithms, implementation 177
Submarine in the Rybinsk Sea (easy edition) 2021-05-21 combinatorics, math, number theory 176
Cellular Network 2021-05-21 binary search, implementation, two pointers 174
Power Sequence 2021-06-01 brute force, math, number theory, sortings 173
Nick and Array 2021-05-27 greedy, implementation 171
A and B 2021-05-25 greedy, math 171
Killjoy 2021-05-29 greedy, implementation, math 167
Did you mean... 2021-05-19 dp, greedy, implementation 160
Smallest Word 2021-05-18 constructive algorithms, greedy, implementation 157
Zero Array 2021-05-19 greedy, math 150
The Child and Set 2021-04-19 bitmasks, greedy, implementation, sortings 149
Dasha and Password 2021-05-14 brute force, dp, implementation 148
Valeriy and Deque 2021-05-04 data structures, implementation 139
Good String 2021-05-03 brute force, dp, greedy, two pointers 138
Which floor? 2021-05-08 brute force, implementation 125
Cyclic Components 2021-02-04 dfs and similar, dsu, graphs 123
Secret Passwords 2021-02-04 dfs and similar, dsu, graphs 118
Kefa and Park 2021-01-18 dfs and similar, graphs, trees 106
Searching for Graph 2021-04-27 brute force, constructive algorithms, graphs 105
Non-zero Segments 2021-07-09 constructive algorithms, data structures, greedy, sortings 103
Trains 2021-01-18 implementation, math, number theory 82
Did We Get Everything Covered? 2025-01-08 constructive algorithms, dp, greedy, shortest paths 79
Almost Arithmetic Progression 2022-02-07 brute force, implementation, math 69
Bear and Friendship Condition 2022-02-10 dfs and similar, dsu, graphs 59
Ayoub and Lost Array 2022-08-13 combinatorics, dp, math 54
New Year and Curling 2022-01-11 brute force, geometry, implementation, math 52
Divan and bitwise operations 2021-11-26 bitmasks, combinatorics, constructive algorithms, dp 49
Representative Edges 2021-12-29 brute force, geometry, implementation, math 47
Tea Tasting 2025-03-20 binary search, data structures, implementation 46
Math 2022-12-14 greedy, math, number theory 34
Do You Love Your Hero and His Two-Hit Multi-Target Attacks? 2025-02-25 binary search, brute force, constructive algorithms, dp 33
Tetrahedron 2021-02-21 dp, math, matrices 25
Yuhao and a Parenthesis 2021-08-13 greedy, implementation 255
Space Formula 2021-08-06 greedy 233
Diverse Garland 2021-08-19 constructive algorithms, dp, greedy 232
Array K-Coloring 2021-08-07 greedy, sortings 226
Powers Of Two 2021-08-12 bitmasks, greedy 225
Magic Powder - 1 2021-07-13 binary search, brute force, implementation 224
New Year and the Sphere Transmission 2021-08-23 math, number theory 207
Orac and Models 2021-06-29 dp, math, number theory 204
Splitting money 2021-08-07 implementation 203
Ehab and a 2-operation task 2021-08-10 constructive algorithms, greedy, math 202
Number Game 2021-05-18 games, math, number theory 176
NEKO's Maze Game 2021-05-15 data structures, dsu, implementation 150
Add to Neighbour and Remove 2021-05-15 greedy, math, number theory 148
Tanya and Postcard 2021-04-19 greedy, implementation, strings 146
Maximum Median 2021-05-13 binary search, greedy, math, sortings 146
The Delivery Dilemma 2021-05-13 binary search, greedy, sortings 144
Design Tutorial: Make It Nondeterministic 2021-05-11 greedy 144
Epic Transformation 2021-05-16 constructive algorithms, data structures, greedy 140
One Bomb 2021-05-14 implementation 139
News Distribution 2021-05-03 dfs and similar, dsu, graphs 138
K for the Price of One (Easy Version) 2021-05-16 dp, greedy, sortings 135
Berland Regional 2021-05-08 brute force, data structures, greedy, number theory 130
Sonya and Queries 2021-05-03 data structures, implementation 126
Rotation Matching 2021-05-11 constructive algorithms, data structures, greedy, implementation 125
Birthday 2021-05-13 math 120
Special Offer! Super Price 999 Bourles! 2021-04-27 implementation 118
Ball in Berland 2021-05-01 combinatorics, graphs, math 116
Bash's Big Day 2021-05-06 greedy, math, number theory 111
Element Extermination 2021-04-23 constructive algorithms, data structures, greedy 108
The World is a Theatre 2021-01-21 combinatorics, math 89
You Soared Afar With Grace 2025-04-05 constructive algorithms, data structures, greedy, implementation 67
Fighting Tournament 2022-08-16 binary search, data structures, implementation, two pointers 67
Meximum Array 2022-01-22 constructive algorithms, data structures, greedy, math 62
A Compatible Pair 2022-11-04 brute force, games 60
Books Queries 2022-06-17 implementation 59
Vanya and Exams 2020-12-21 greedy, sortings 58
Where is the Pizza? 2025-03-03 data structures, dfs and similar, dsu, graphs 56
Trinity 2025-03-02 binary search, math, sortings, two pointers 52
The Cunning Seller (hard version) 2025-09-06 binary search, greedy, math 52
Guess the Array 2021-09-23 constructive algorithms, interactive, math 51
Game on Permutation 2025-03-10 data structures, dp, games, greedy 50
DZY Loves Chemistry 2021-04-06 dfs and similar, dsu, greedy 42
Beautiful Permutation 2025-10-19 binary search, interactive 41
Colorful Field 2021-01-04 implementation, sortings 36
Fadi and LCM 2022-07-18 brute force, math, number theory 32
Pair of Topics 2021-05-09 binary search, data structures, sortings, two pointers 24
Coin Rows 2021-07-30 brute force, constructive algorithms, dp, implementation 232
Deep Down Below 2021-08-24 binary search, greedy, sortings 232
Co-growing Sequence 2021-08-15 bitmasks, constructive algorithms, greedy 215
Number of Pairs 2021-06-10 binary search, data structures, math, two pointers 204
Find The Bone 2021-04-30 implementation 124
Pokémon Army (easy version) 2021-04-30 constructive algorithms, dp, greedy 121
Koala and Lights 2021-05-01 implementation, math, number theory 121
Vasya and Golden Ticket 2021-05-01 implementation 118
Jatayu's Balanced Bracket Sequence 2022-09-06 data structures, dsu, graphs, greedy 116
Number into Sequence 2021-01-12 constructive algorithms, math, number theory 101
Chat Online 2021-01-17 implementation 94
3SUM Closure 2022-06-28 brute force, data structures 75
Constructive Problem 2025-03-02 brute force, greedy 70
Sort the Array 2021-01-04 implementation, sortings 65
Summarize to the Power of Two 2021-01-22 brute force, greedy, implementation 59
Summer sell-off 2021-01-04 greedy, sortings 58
Non-Descending Arrays 2025-10-17 combinatorics, dp, math 57
New Game 2025-03-11 binary search, brute force, greedy, implementation 55
Good Subarrays (Easy Version) 2022-10-10 binary search, data structures, schedules, two pointers 54
Monocarp's String 2025-10-27 binary search, greedy, strings 52
Long Number 2021-01-04 greedy 48
Rubik's Cube Coloring (easy version) 2021-10-08 combinatorics, math 48
Double Perspective 2025-09-03 constructive algorithms, dp, dsu, graphs 47
Box Fitting 2021-04-07 binary search, bitmasks, data structures, greedy 47
Closest Cities 2025-03-22 greedy, implementation, math 44
Maximal AND 2022-04-21 bitmasks, greedy, math 43
Concatenation of Arrays 2025-03-05 constructive algorithms, greedy, sortings 42
And It's Non-Zero 2021-12-25 bitmasks, greedy, math 42
Coloring Game 2025-08-31 binary search, brute force, greedy, two pointers 41
Just Eat It! 2022-07-18 dp, greedy, implementation 41
For Wizards, the Exam Is Easy, but I Couldn't Handle It 2025-02-25 brute force, greedy, implementation 40
Jeff and Periods 2021-04-02 implementation, sortings 40
Economy Game 2022-02-10 brute force 40
Duff in Love 2021-04-03 math 39
Omkar and Last Class of Math 2022-07-10 greedy, math, number theory 37
Easy Number Challenge 2021-04-02 implementation, number theory 37
Arrow Path 2025-03-23 brute force, constructive algorithms, dfs and similar, dp 36
Chocolate 2021-04-02 combinatorics 35
Find the Permutation 2025-11-03 brute force, dfs and similar, graphs, implementation 34
Fox Dividing Cheese 2021-04-03 math, number theory 31
Remove the Ends 2025-04-29 brute force, constructive algorithms, dp, greedy 30
I.O.U. 2021-04-02 implementation 27
Getting Zero 2024-03-05 bitmasks, brute force, dfs and similar, dp 25
Pursuit 2021-07-17 binary search, brute force, greedy, sortings 239
Mocha and Hiking 2021-08-15 constructive algorithms, graphs 231
Pleasant Pairs 2021-06-25 brute force, implementation, math, number theory 197
Prinzessin der Verurteilung 2021-06-06 brute force, constructive algorithms, strings 183
And 2021-04-30 greedy 137
Kirill And The Game 2021-05-13 brute force, two pointers 126
Lecture Sleep 2021-04-29 data structures, dp, implementation, two pointers 123
Odd Selection 2021-04-30 brute force, implementation, math 119
Balanced Team 2021-05-06 sortings, two pointers 114
Three Parts of the Array 2021-01-23 binary search, data structures, two pointers 106
Devu, the Dumb Guy 2021-01-14 implementation, sortings 100
Students and Shoelaces 2021-01-18 brute force, dfs and similar, graphs, implementation 100
Hungry Sequence 2021-01-14 math 89
Incinerate 2022-12-19 binary search, brute force, data structures, implementation 71
Restoring Permutation 2022-02-10 greedy 71
Make Them Equal 2021-10-08 brute force, greedy, math, strings 65
Even-Odd Game 2021-01-04 dp, games, greedy, sortings 59
Kuriyama Mirai's Stones 2021-01-02 dp, implementation, sortings 56
Vanya and Lanterns 2021-01-02 binary search, implementation, math, sortings 56
Playing with GCD 2022-10-10 math, number theory 55
Great Sequence 2022-02-23 greedy, sortings 54
Make It Ugly 2025-03-18 implementation, math 50
Against the Difference 2025-10-17 data structures, dp 50
Chloe and the sequence 2021-01-04 binary search, bitmasks, constructive algorithms, implementation 49
Beautiful Paintings 2022-02-07 greedy, sortings 49
Delete Two Elements 2021-10-10 data structures, dp, implementation, math 48
Build Permutation 2022-08-06 constructive algorithms, dp, math 48
Coins 2020-12-31 implementation 45
Prefix Sum Primes 2022-07-18 constructive algorithms, greedy, math, number theory 45
Diamond Miner 2021-12-30 geometry, greedy, sortings 44
Even Larger 2025-09-03 brute force, greedy, implementation 42
Filya and Homework 2021-03-04 implementation, sortings 42
Double Sort 2025-03-19 implementation, sortings 35
Roma and Changing Signs 2021-03-07 greedy 33
Creating Keys for StORages Has Become My Main Skill 2025-02-25 bitmasks, constructive algorithms, greedy 32
Fancy Coins 2025-03-10 binary search, brute force, greedy, math 31
Palindromic Subsequences 2025-11-03 brute force, constructive algorithms, math 31
k-LCM (easy version) 2021-03-17 constructive algorithms, math 31
Make Almost Equal With Mod 2025-03-03 bitmasks, constructive algorithms, math, number theory 30
Forming Triangles 2025-03-22 combinatorics, constructive algorithms, math, sortings 27
Long Multiplication 2025-03-18 greedy, math, number theory 27
Cat Cycle 2025-03-03 math, number theory 25
Escape from Stones 2023-08-07 greedy, implementation 19
Lord of the Values 2021-05-30 constructive algorithms 197
Sifid and Strange Subsequences 2021-05-24 greedy, math, sortings 194
Hate "A" 2021-04-25 implementation, strings 129
GCD Compression 2021-04-28 constructive algorithms, math, number theory 119
Strange List 2021-04-26 brute force, greedy, implementation, math 110
Making a String 2021-04-27 greedy, sortings 109
Lucky Sum 2021-01-18 implementation 98
Card Game 2025-08-21 brute force, constructive algorithms, games, greedy 79
Math Problem 2021-01-12 math 78
Max and Mex 2021-12-30 math 73
Division by Two and Permutation 2022-02-07 constructive algorithms, flows, graph matchings, greedy 65
Shrinking Array 2025-08-31 brute force, greedy 57
Long Jumps 2021-01-04 dp, graphs 56
Mainak and Interesting Sequence 2022-09-06 bitmasks, constructive algorithms, math 56
Fence 2021-01-02 brute force, dp 54
Kind Anton 2022-08-24 greedy, implementation 53
Perfecto 2025-02-28 brute force, constructive algorithms, greedy, math 51
Special Numbers 2021-10-08 bitmasks, math 51
Petya and Countryside 2020-12-23 brute force, implementation 49
Effective Approach 2020-12-31 implementation 48
Zuhair and Strings 2022-08-13 brute force, implementation, strings 48
All are Same 2021-10-13 math, number theory 46
Beautiful XOR 2025-10-19 bitmasks, constructive algorithms, greedy 46
Caisa and Pylons 2020-12-30 brute force, implementation, math 45
Salem and Sticks 2022-08-13 brute force, implementation 45
Save the Magazines 2024-02-27 constructive algorithms, dp, greedy 43
Robin Hood in Town 2025-04-29 binary search, greedy, math 40
Mirror in the String 2021-12-29 greedy, strings 40
Combinatorics Homework 2021-09-20 combinatorics, greedy, math 40
Bouquet (Easy Version) 2025-03-15 binary search, brute force, greedy, sortings 37
Ping-pong 2020-11-30 constructive algorithms, games, math 37
Buying Lemonade 2025-03-05 binary search, constructive algorithms, sortings 37
Splitting Items 2025-03-04 games, greedy, sortings 36
Turtle Fingers: Count the Values of k 2025-11-06 brute force, implementation, math, number theory 35
GCD Length 2021-04-12 constructive algorithms, math, number theory 33
Increase/Decrease/Copy 2025-03-09 greedy, implementation 32
MIN = GCD 2025-04-05 greedy, math, number theory 31
Subsequence Addition (Hard Version) 2025-03-03 bitmasks, dp, greedy, implementation 31
Fibonacci Cubes 2025-08-29 brute force, dp, implementation, math 29
Equal Values 2025-08-29 brute force, greedy, two pointers 28
Array Fix 2025-03-23 brute force, dp, greedy, implementation 26
Binomial Coefficients, Kind Of 2025-03-11 combinatorics, dp, math 24
Scenes From a Memory 2021-08-26 brute force, constructive algorithms, implementation, math 262
MEXor Mixup 2021-09-05 bitmasks, greedy 225
Add and Divide 2021-02-12 brute force, greedy, math, number theory 169
Board Moves 2021-02-13 math 143
String LCM 2021-01-14 brute force, math, number theory, strings 130
Not Adjacent Matrix 2021-05-05 constructive algorithms 121
OKEA 2022-02-06 constructive algorithms 65
Divan and a New Project 2021-11-26 constructive algorithms, sortings 62
Different Divisors 2021-01-19 binary search, constructive algorithms, greedy, math 61
Shoe Shuffling 2022-05-31 constructive algorithms, greedy, implementation, two pointers 59
Bear and Finding Criminals 2020-12-23 constructive algorithms, implementation 57
Red and Blue 2020-12-28 dp, greedy 57
Regular Bracket Sequence 2020-12-28 constructive algorithms, greedy 56
Sum of Digits 2020-12-30 implementation 51
Beautiful Array 2022-08-20 constructive algorithms, greedy, math 51
Optimal Reduction 2022-08-06 constructive algorithms, sortings 51
Save More Mice 2021-10-13 binary search, greedy 50
Mahmoud and a Triangle 2021-01-04 constructive algorithms, geometry, greedy, math 49
Chess Tournament 2024-03-12 constructive algorithms 48
Polycarp Recovers the Permutation 2021-11-25 constructive algorithms 46
Deck of Cards 2025-10-27 greedy, implementation 44
Lovely Palindromes 2021-01-04 constructive algorithms, math 42
Maximum Cost Permutation 2025-10-17 constructive algorithms, greedy 42
Yet Another Permutation Problem 2023-08-15 constructive algorithms, greedy, math, number theory 39
Berland Music 2024-04-21 data structures, greedy, math, sortings 37
Move to the End 2025-08-21 brute force, data structures, dp, greedy 36
Game with Doors 2025-03-04 brute force, greedy 32
Beautiful String 2025-10-19 brute force, constructive algorithms 32
Generate Login 2021-03-24 brute force, greedy, sortings 30
Double-ended Strings 2021-03-25 brute force, implementation, strings 29
Valera and Antique Items 2021-03-24 implementation 27
The Cunning Seller (easy version) 2025-09-06 greedy, math 25
Points on Plane 2024-03-01 binary search, greedy, math 16
Mocha and Red and Blue 2021-08-15 dp, greedy 224
Exciting Bets 2021-07-07 greedy, math, number theory 212
Mocha and Math 2021-08-15 bitmasks, constructive algorithms, math 204
Customising the Track 2021-07-07 combinatorics, greedy, math 201
Bad Boy 2021-06-18 constructive algorithms, greedy, math 185
Array Reodering 2021-06-04 brute force, greedy, math, number theory 174
Unique Number 2021-05-15 brute force, greedy, math 142
Permutation Sort 2021-05-16 constructive algorithms, greedy 129
The Great Hero 2021-02-07 greedy, implementation, sortings 111
Make it Divisible by 25 2021-10-13 dfs and similar, dp, greedy, math 106
Odd Divisor 2021-01-25 math, number theory 99
Strange Partition 2021-01-05 greedy, math, number theory 70
Special Permutation 2021-11-23 constructive algorithms, greedy 66
Wizard of Orz 2021-01-08 constructive algorithms, greedy, math 65
Burglar and Matches 2020-12-24 greedy, implementation, sortings 51
Mainak and Array 2022-09-06 greedy, math 51
Delete from the Left 2021-01-02 brute force, implementation, strings 49
Tiling Challenge 2022-07-18 greedy, implementation 48
Decoding 2020-12-31 implementation, strings 46
GCD Problem 2021-12-17 brute force, constructive algorithms, math, number theory 38
Make AP 2022-01-10 implementation, math 35
Rule of League 2025-03-03 constructive algorithms, math 35
Napoleon Cake 2021-03-13 dp, implementation, sortings 33
The Secret Number 2025-09-06 math 29
Not a Substring 2025-03-10 constructive algorithms, strings 28
Football 2020-09-19 implementation, strings 28
Having Been a Treasurer in the Past, I Help Goblins Deceive 2025-02-25 combinatorics, constructive algorithms, strings 28
Expensive Number 2025-04-29 greedy, math 26
Promo 2025-03-17 greedy, sortings 26
Ideal Point 2025-03-20 brute force, geometry, greedy 26
Oath of the Night's Watch 2022-08-19 constructive algorithms, sortings 25
Painting the Ribbon 2025-03-18 constructive algorithms, greedy, math 22
AquaMoon and Two Arrays 2021-07-11 brute force, greedy 234
Putting Plates 2021-07-17 constructive algorithms, implementation 233
Simply Strange Sort 2021-08-24 brute force, implementation, sortings 222
Domino Disaster 2021-09-05 implementation, strings 219
Wonderful Coloring - 1 2021-07-23 greedy, strings 214
Polycarp and Coins 2021-07-23 greedy, math 212
Binary Decimal 2021-07-17 greedy, math 212
Got Any Grapes? 2021-08-18 brute force, greedy, implementation 208
The Miracle and the Sleeper 2021-08-26 greedy, math 203
Pretty Permutations 2021-06-25 constructive algorithms, greedy, implementation 193
Omkar and Bad Story 2021-06-06 brute force, constructive algorithms 193
Arithmetic Array 2021-06-18 greedy, math 189
Stone Game 2021-06-10 brute force, dp, greedy 185
Friends and Candies 2021-06-10 greedy, math 179
Eshag Loves Big Arrays 2021-05-24 constructive algorithms, greedy, math 167
Fair Playoff 2021-06-04 brute force, implementation 165
Equality 2021-05-30 implementation, strings 164
And Then There Were K 2021-05-20 bitmasks 156
Two Arrays And Swaps 2021-02-13 greedy, sortings 149
Watermelon 2021-02-09 brute force, math 148
Magical Sticks 2021-02-09 math 139
Common Subsequence 2021-05-15 brute force 131
Yet Another String Game 2021-02-07 games, greedy, strings 126
Phoenix and Gold 2021-05-02 constructive algorithms, greedy, math 122
Do Not Be Distracted! 2021-05-05 brute force, implementation 115
The Cake Is a Lie 2021-04-29 dp, math 111
Ordinary Numbers 2021-05-05 brute force, math, number theory 110
Divide it! 2021-02-04 brute force, greedy, implementation 108
Red and Blue Beans 2021-04-29 math 108
Replacing Elements 2021-01-14 greedy, implementation, math, sortings 105
Nezzar and Colorful Balls 2021-01-28 brute force, greedy 100
Add Odd or Subtract Even 2021-01-24 greedy, implementation, math 98
Puzzle From the Future 2021-01-19 greedy 90
Maximum GCD 2021-01-18 greedy, implementation, math, number theory 78
Beautiful Year 2020-08-11 brute force 77
Fair Division 2021-01-04 dp, greedy, math 59
Absolute Maximization 2022-12-19 bitmasks, constructive algorithms, greedy, math 59
Last minute enhancements 2020-12-30 dp, greedy 56
Bovine Dilemma 2020-12-30 brute force, geometry, math 54
Tanya and Stairways 2021-01-02 implementation 53
Make Even 2021-11-25 constructive algorithms, math 53
Distance 2021-11-22 brute force, constructive algorithms 52
Technical Support 2022-10-23 greedy 51
Cards for Friends 2021-01-04 greedy, math 50
Mathematical Circus 2022-08-16 constructive algorithms, math 49
Kevin and Permutation 2022-10-23 constructive algorithms, greedy, math 49
Divan and a Store 2021-11-26 brute force, constructive algorithms, greedy 48
Gamer Hemose 2021-10-03 binary search, greedy, math, sortings 48
Cancel the Trains 2020-12-04 implementation 46
Anton and Danik 2020-08-11 implementation, strings 46
Unique Bid Auction 2020-11-24 implementation 45
Traveling Salesman Problem 2022-08-06 geometry, greedy, implementation 45
Love Triangle 2020-12-06 graphs 44
Patchouli's Magical Talisman 2022-06-03 bitmasks, constructive algorithms, greedy, sortings 44
Two Towers 2025-03-20 brute force, implementation, strings 43
Integer Diversity 2021-12-29 implementation 42
GCD Arrays 2022-01-22 greedy, math, number theory 42
Turtle Math: Fast Three Task 2025-11-06 implementation, math, number theory 42
Special Permutation 2020-11-24 constructive algorithms, probabilities 40
There Are Two Types Of Burgers 2021-04-15 brute force, greedy, implementation, math 40
Average Height 2021-04-16 constructive algorithms 40
Word 2020-08-11 implementation, strings 40
Amusing Joke 2020-09-19 implementation, sortings, strings 39
Download More RAM 2022-01-22 brute force, greedy, sortings 39
Elections 2021-10-13 math 38
Reverse and Concatenate 2022-02-06 greedy, strings 38
Team Composition: Programmers and Mathematicians 2021-11-25 binary search, constructive algorithms, math 37
Boring Apartments 2020-11-17 implementation, math 37
Rising Sand 2022-06-28 constructive algorithms, greedy, implementation 37
Cirno's Perfect Bitmasks Classroom 2022-06-03 bitmasks, brute force 37
XOR Mixup 2022-06-28 bitmasks, brute force 37
Strange Functions 2020-11-30 math, number theory 36
Consecutive Sum Riddle 2021-10-08 math 36
Chip Game 2022-08-16 games, math 36
Three Pairwise Maximums 2020-08-04 math 36
Crossmarket 2022-08-20 constructive algorithms, greedy, math 35
Alexey and Train 2021-03-13 implementation 35
In-game Chat 2021-04-14 implementation 35
Restore the Permutation by Merger 2020-08-04 greedy 34
Cut the Array 2025-10-17 brute force, constructive algorithms, math, number theory 33
Verify Password 2025-03-09 implementation, sortings, strings 32
Beat The Odds 2022-05-31 brute force, greedy, math 32
Homework 2025-09-06 brute force, implementation, strings 32
Review Site 2021-04-12 greedy 32
Next Round 2020-08-02 *special, implementation 32
Omkar and Completion 2022-07-10 constructive algorithms, implementation 31
Turtle Puzzle: Rearrange and Negate 2025-11-06 greedy, math, sortings 31
Bit++ 2020-08-02 implementation 31
Permutation 2025-03-10 greedy 30
Petya and Strings 2020-08-02 implementation, strings 29
Meximization 2021-03-17 brute force, data structures, greedy, sortings 29
Helpful Maths 2020-08-03 greedy, implementation, sortings, strings 29
Stock Arbitraging 2022-07-18 greedy, implementation 28
Game with Cards 2025-03-19 games, greedy 28
Garland 2024-03-01 implementation 28
Closest Point 2025-03-04 implementation, math 28
Anti-knapsack 2021-03-06 constructive algorithms, greedy 28
Queue at the School 2020-08-11 constructive algorithms, graph matchings, implementation, shortest paths 28
Nearly Lucky Number 2020-08-11 implementation 28
Magnets 2020-08-12 implementation 28
Diagonals 2025-03-15 brute force, greedy, implementation, math 27
Elephant 2020-08-04 math 27
Mezo Playing Zoma 2022-07-18 math 26
Beautiful Matrix 2021-02-11 implementation 26
Card Trick 2025-03-19 implementation, math 26
Shape Perimeter 2025-11-03 constructive algorithms, math 26
Grass Field 2025-03-10 implementation 26
Vanya and Fence 2020-08-12 implementation 26
Ultra-Fast Mathematician 2020-08-13 implementation 26
Balanced Substring 2024-03-12 implementation 25
Special Characters 2025-03-23 brute force, constructive algorithms 25
Strange Table 2021-03-25 math 25
Candies for Nephews 2025-10-27 math 25
Hulk 2020-08-20 implementation 25
Translation 2020-08-11 implementation, strings 25
Array Balancing 2024-03-05 greedy, math 24
Energy Crystals 2025-08-29 greedy, implementation, math 24
Tram 2020-08-03 implementation 24
Insomnia cure 2020-08-20 constructive algorithms, implementation, math 24
In Search of an Easy Problem 2020-08-12 implementation 24
Max and Mod 2025-04-05 constructive algorithms, math 23
Drinks 2020-08-13 implementation, math 23
Beautiful Average 2025-10-19 brute force, greedy 23
New World, New Me, New Array 2025-02-25 greedy, implementation, math 23
Presents 2020-08-12 implementation 23
George and Accommodation 2020-08-11 implementation 23
Tanya and Stairways 2024-07-19 23
Two Screens 2025-03-11 binary search, greedy, strings, two pointers 22
Stones on the Table 2020-08-03 implementation 22
Wrong Subtraction 2020-08-04 implementation 22
Three swimmers 2021-02-23 math 21
Tricky Template 2025-03-22 constructive algorithms, implementation, strings 21
Permutation Value 2024-02-27 constructive algorithms, greedy 21
Race 2025-08-31 implementation, math 21
Boy or Girl 2020-08-03 brute force, implementation, strings 21
The Play Never Ends 2025-02-28 math, number theory 21
Construct a Rectangle 2024-04-21 geometry, math 20
Buttons 2023-08-15 games, greedy, math 20
Profitable Interest Rate 2025-03-05 greedy, math 20
Three Decks 2025-08-21 math 19
Password 2024-02-27 brute force, combinatorics, implementation, math 19
Parkway Walk 2025-03-17 greedy, implementation 19
Way Too Long Words 2020-08-02 strings 19
Calculating Function 2020-08-13 implementation, math 19
Game with Board 2025-03-21 constructive algorithms, games 18
Team 2020-08-02 brute force, greedy 18
Soldier and Bananas 2020-08-03 brute force, implementation, math 16
Bear and Big Brother 2020-08-04 implementation 16
Potion-making 2021-05-16 math, number theory 14
Word Capitalization 2020-08-03 implementation, strings 13
Domino piling 2020-08-02 greedy, math 12
Calculate The Area 2021-02-11 148
Directional Move 2021-01-27 107
John and nuts 2021-04-24 107
Make All Odd 2021-01-27 101
Security Badge 2025-10-24 91
Time-travelling Fan 2023-07-17 82
Purple Rain 2025-10-24 66
Sightseeing with Friends 2021-10-28 63
Range 2023-07-11 62
67 2026-06-20 61
Straight Shot 2025-10-24 59
Flint 2022-12-09 59
Grid Coloring 2025-10-24 55
Marbles 2026-06-20 52
Shopping Fever 2023-12-12 51
Railway 2023-12-12 50
Luna Likes Love 2023-12-09 49
Sorted Pairwise Distance List 2023-07-17 47
Introduction to Number Theory 2026-06-20 46
LCS on Permutations 2022-04-20 43
Rabbit Game 2020-11-25 40
Star Arrangements 2025-10-24 40
Catching the Impostor 2020-11-25 39
Coins Game (hard version) 2021-10-28 39
Halfway 2025-10-24 39
Fear Factoring 2025-10-24 39
M 2026-06-20 37
Forbidden Zero 2025-10-24 36
P=NP 2026-06-20 36
Energy 2023-07-11 34
Explorer 2023-07-10 34
Zeros 2023-12-09 34
Unloaded Die 2025-10-24 32
Odd Palindrome 2025-10-24 32
Delayed Work 2025-10-24 23
Whose Turn Is It? 2024-07-23 11
Passing Bills 2020-10-13 9