Code Submission Evaluation System Login

CSES Problem Set


Tasks | Statistics


CSES - CSES Problem Set - Tasks

General

Introduction
Create new account
Statistics

Introductory Problems

Weird Algorithm 1848 / 1946
Missing Number 1376 / 1526
Repetitions 1234 / 1333
Increasing Array 1164 / 1206
Permutations 1064 / 1104
Number Spiral 781 / 829
Two Knights 566 / 590
Two Sets 555 / 580
Bit Strings 514 / 534
Trailing Zeros 463 / 483
Coin Piles 419 / 467
Palindrome Reorder 387 / 403
Creating Strings I 372 / 379
Apple Division 340 / 368
Chessboard and Queens 206 / 213
Grid Paths 101 / 135

Sorting and Searching

Distinct Numbers 551 / 563
Apartments 517 / 595
Ferris Wheel 494 / 540
Concert Tickets 405 / 489
Restaurant Customers 299 / 317
Movie Festival 280 / 296
Sum of Two Values 334 / 354
Maximum Subarray Sum 329 / 331
Stick Lengths 421 / 434
Playlist 372 / 498
Towers 387 / 414
Traffic Lights 240 / 268
Room Allocation 228 / 252
Factory Machines 187 / 231
Tasks and Deadlines 186 / 188
Reading Books 159 / 178
Sum of Three Values 224 / 242
Sum of Four Values 178 / 189
Nearest Smaller Values 198 / 200
Subarray Sums I 229 / 236
Subarray Sums II 191 / 203
Subarray Divisibility 162 / 169
Array Division 223 / 245
Sliding Median 218 / 245
Sliding Cost 158 / 176
Movie Festival II 105 / 133
Maximum Subarray Sum II 126 / 135

Dynamic Programming

Dice Combinations 533 / 560
Minimizing Coins 463 / 485
Coin Combinations I 397 / 417
Coin Combinations II 321 / 373
Removing Digits 406 / 414
Grid Paths 351 / 374
Book Shop 383 / 437
Array Description 223 / 249
Edit Distance 245 / 256
Rectangle Cutting 235 / 253
Money Sums 255 / 269
Removal Game 272 / 292
Two Sets II 264 / 292
Increasing Subsequence 319 / 356
Projects 210 / 234

Graph Algorithms

Counting Rooms 410 / 434
Labyrinth 247 / 304
Building Roads 268 / 275
Message Route 227 / 235
Building Teams 210 / 222
Round Trip 184 / 199
Monsters 126 / 159
Shortest Routes I 180 / 186
Shortest Routes II 182 / 192
High Score 104 / 130
Flight Discount 141 / 172
Cycle Finding 129 / 142
Flight Routes 94 / 101
Round Trip II 95 / 99
Course Schedule 118 / 124
Longest Flight Route 88 / 94
Game Routes 84 / 90
Investigation 82 / 91
Planets Queries I 69 / 72
Planets Queries II 60 / 69
Planets Cycles 41 / 45
Road Reparation 75 / 76
Road Construction 73 / 74
Flight Routes Check 67 / 72
Planets and Kingdoms 70 / 72
Giant Pizza 42 / 45
Coin Collector 54 / 59
Mail Delivery 42 / 45
De Bruijn Sequence 29 / 32
Teleporters Path 40 / 43
Hamiltonian Flights 44 / 47
Knight's Tour 33 / 40
Download Speed 47 / 50
Police Chase 44 / 46
School Dance 44 / 49
Distinct Routes 45 / 47

Range Queries

Range Sum Queries I 290 / 298
Range Minimum Queries I 237 / 250
Range Sum Queries II 237 / 247
Range Minimum Queries II 206 / 210
Range Xor Queries 220 / 223
Range Update Queries 181 / 191
Forest Queries 142 / 147
Hotel Queries 227 / 282
List Removals 110 / 119
Salary Queries 138 / 168
Subarray Sum Queries 129 / 133
Distinct Values Queries 87 / 109
Forest Queries II 79 / 87
Range Updates and Sums 58 / 77
Polynomial Queries 56 / 66
Range Queries and Copies 39 / 41

Tree Algorithms

Subordinates 172 / 176
Tree Matching 138 / 162
Tree Diameter 201 / 214
Tree Distances I 144 / 157
Tree Distances II 122 / 130
Company Queries I 93 / 96
Company Queries II 90 / 95
Distance Queries 134 / 140
Counting Paths 97 / 103
Subtree Queries 126 / 132
Path Queries 101 / 104
Distinct Colors 116 / 128

Mathematics

Exponentiation 328 / 353
Exponentiation II 190 / 235
Counting Divisors 190 / 216
Common Divisors 169 / 189
Sum of Divisors 110 / 145
Binomial Coefficients 166 / 183
Creating Strings II 98 / 110
Distributing Apples 90 / 98
Christmas Party 74 / 84
Fibonacci Numbers 101 / 120
Throwing Dice 105 / 109
Graph Paths I 60 / 67
Graph Paths II 44 / 48
Dice Probability 67 / 72
Moving Robots 32 / 37
Candy Lottery 58 / 60
Inversion Probability 54 / 56
Stick Game 71 / 75
Nim Game I 105 / 107
Nim Game II 112 / 121
Stair Game 59 / 86

String Algorithms

Word Combinations 41 / 69
String Matching 82 / 98
Finding Borders 63 / 73
Finding Periods 44 / 55
Minimal Rotation 76 / 103
Longest Palindrome 80 / 93
Required Substring 48 / 81

Additional Problems

Shortest Subsequence 182 / 213
Counting Bits 173 / 197
Swap Game 35 / 44
Meet in the Middle 67 / 75
Prüfer Code 78 / 85
Edge Directions 56 / 59
Advertisement 157 / 167
Elevator Rides 34 / 43
Maximum Xor Subarray 45 / 48
Movie Festival Queries 25 / 31
Chess Tournament 24 / 31
Tree Traversals 26 / 27
Network Renovation 19 / 33
Graph Girth 29 / 30
Intersection Points 23 / 26
String Reorder 21 / 23
Pyramid Array 16 / 21
Increasing Subsequence II 45 / 47
String Removals 68 / 72
Bit Inversions 79 / 85
Writing Numbers 76 / 86
String Transform 36 / 46
Maximum Building I 70 / 72
Sorting Methods 61 / 65
Cyclic Array 49 / 56
Food Division 36 / 42
Bit Problem 18 / 21
Swap Round Sorting 16 / 23
Tree Isomorphism I 24 / 30
Critical Cities 14 / 20
School Excursion 27 / 29
Coin Grid 19 / 27
Robot Path 7 / 13
Course Schedule II 26 / 33
Empty String 42 / 53
Grid Paths 53 / 59
Book Shop II 53 / 63
Network Breakdown 27 / 28
Visiting Cities 42 / 61
Number Grid 76 / 89
Maximum Building II 30 / 36
Stick Divisions 73 / 84
Coding Company 14 / 19
Flight Route Requests 16 / 20
Tree Isomorphism II 20 / 27
Forbidden Cities 13 / 15
Area of Rectangles 18 / 24
Creating Offices 15 / 20
Permutations II 55 / 62
New Flight Routes 12 / 24