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 2227 / 2332
Missing Number 1677 / 1846
Repetitions 1488 / 1602
Increasing Array 1408 / 1468
Permutations 1257 / 1302
Number Spiral 909 / 969
Two Knights 645 / 691
Two Sets 659 / 694
Bit Strings 651 / 676
Trailing Zeros 589 / 620
Coin Piles 539 / 603
Palindrome Reorder 482 / 507
Creating Strings I 466 / 476
Apple Division 422 / 462
Chessboard and Queens 253 / 261
Grid Paths 123 / 166

Sorting and Searching

Distinct Numbers 736 / 762
Apartments 606 / 712
Ferris Wheel 577 / 634
Concert Tickets 462 / 561
Restaurant Customers 360 / 385
Movie Festival 335 / 353
Sum of Two Values 402 / 423
Maximum Subarray Sum 412 / 419
Stick Lengths 482 / 496
Playlist 430 / 564
Towers 439 / 471
Traffic Lights 277 / 306
Room Allocation 257 / 287
Factory Machines 227 / 268
Tasks and Deadlines 217 / 219
Reading Books 192 / 212
Sum of Three Values 257 / 282
Sum of Four Values 209 / 221
Nearest Smaller Values 236 / 241
Subarray Sums I 266 / 272
Subarray Sums II 222 / 238
Subarray Divisibility 192 / 201
Array Division 253 / 277
Sliding Median 241 / 270
Sliding Cost 176 / 195
Movie Festival II 115 / 151
Maximum Subarray Sum II 145 / 159

Dynamic Programming

Dice Combinations 668 / 712
Minimizing Coins 591 / 616
Coin Combinations I 512 / 535
Coin Combinations II 413 / 479
Removing Digits 499 / 510
Grid Paths 436 / 458
Book Shop 454 / 518
Array Description 276 / 309
Edit Distance 296 / 312
Rectangle Cutting 278 / 304
Money Sums 308 / 321
Removal Game 316 / 337
Two Sets II 313 / 348
Increasing Subsequence 371 / 424
Projects 245 / 277

Graph Algorithms

Counting Rooms 476 / 504
Labyrinth 290 / 353
Building Roads 310 / 321
Message Route 266 / 278
Building Teams 254 / 270
Round Trip 219 / 233
Monsters 147 / 183
Shortest Routes I 213 / 220
Shortest Routes II 209 / 223
High Score 118 / 157
Flight Discount 159 / 191
Cycle Finding 147 / 160
Flight Routes 109 / 116
Round Trip II 107 / 113
Course Schedule 136 / 144
Longest Flight Route 99 / 110
Game Routes 97 / 103
Investigation 92 / 101
Planets Queries I 79 / 83
Planets Queries II 64 / 77
Planets Cycles 47 / 51
Road Reparation 91 / 93
Road Construction 84 / 85
Flight Routes Check 74 / 81
Planets and Kingdoms 77 / 80
Giant Pizza 48 / 52
Coin Collector 61 / 66
Mail Delivery 49 / 54
De Bruijn Sequence 40 / 43
Teleporters Path 46 / 52
Hamiltonian Flights 48 / 52
Knight's Tour 40 / 45
Download Speed 53 / 56
Police Chase 51 / 53
School Dance 52 / 57
Distinct Routes 54 / 57

Range Queries

Range Sum Queries I 368 / 386
Range Minimum Queries I 301 / 320
Range Sum Queries II 303 / 315
Range Minimum Queries II 261 / 266
Range Xor Queries 276 / 280
Range Update Queries 228 / 238
Forest Queries 172 / 178
Hotel Queries 247 / 301
List Removals 135 / 146
Salary Queries 154 / 187
Subarray Sum Queries 145 / 149
Distinct Values Queries 103 / 128
Forest Queries II 89 / 97
Range Updates and Sums 69 / 90
Polynomial Queries 68 / 78
Range Queries and Copies 45 / 48

Tree Algorithms

Subordinates 228 / 235
Tree Matching 161 / 193
Tree Diameter 239 / 252
Tree Distances I 176 / 192
Tree Distances II 137 / 145
Company Queries I 117 / 121
Company Queries II 113 / 117
Distance Queries 157 / 163
Counting Paths 108 / 114
Subtree Queries 138 / 144
Path Queries 116 / 118
Distinct Colors 133 / 146

Mathematics

Exponentiation 380 / 419
Exponentiation II 233 / 290
Counting Divisors 228 / 263
Common Divisors 192 / 216
Sum of Divisors 126 / 172
Binomial Coefficients 190 / 209
Creating Strings II 116 / 130
Distributing Apples 103 / 114
Christmas Party 88 / 97
Fibonacci Numbers 120 / 146
Throwing Dice 115 / 120
Graph Paths I 69 / 78
Graph Paths II 51 / 57
Dice Probability 76 / 82
Moving Robots 36 / 42
Candy Lottery 69 / 72
Inversion Probability 66 / 69
Stick Game 84 / 88
Nim Game I 114 / 117
Nim Game II 123 / 132
Stair Game 65 / 91

String Algorithms

Word Combinations 53 / 87
String Matching 127 / 145
Finding Borders 84 / 97
Finding Periods 55 / 66
Minimal Rotation 83 / 121
Longest Palindrome 96 / 116
Required Substring 51 / 91

Additional Problems

Shortest Subsequence 197 / 231
Counting Bits 187 / 211
Swap Game 39 / 47
Meet in the Middle 71 / 93
Prüfer Code 86 / 93
Edge Directions 60 / 67
Advertisement 169 / 180
Elevator Rides 40 / 54
Maximum Xor Subarray 56 / 59
Movie Festival Queries 31 / 38
Chess Tournament 30 / 37
Tree Traversals 34 / 35
Network Renovation 26 / 39
Graph Girth 37 / 38
Intersection Points 31 / 34
String Reorder 24 / 26
Pyramid Array 22 / 29
Increasing Subsequence II 54 / 57
String Removals 72 / 76
Bit Inversions 84 / 90
Writing Numbers 79 / 89
String Transform 37 / 48
Maximum Building I 80 / 83
Sorting Methods 62 / 66
Cyclic Array 52 / 59
Food Division 36 / 44
Bit Problem 24 / 26
Swap Round Sorting 17 / 25
Tree Isomorphism I 27 / 33
Critical Cities 15 / 21
School Excursion 31 / 34
Coin Grid 21 / 30
Robot Path 9 / 16
Course Schedule II 28 / 36
Empty String 44 / 55
Grid Paths 55 / 61
Book Shop II 55 / 66
Network Breakdown 29 / 30
Visiting Cities 38 / 62
Number Grid 85 / 100
Maximum Building II 33 / 39
Stick Divisions 75 / 88
Coding Company 18 / 24
Flight Route Requests 19 / 23
Tree Isomorphism II 25 / 33
Forbidden Cities 15 / 17
Area of Rectangles 23 / 28
Creating Offices 16 / 23
Permutations II 60 / 67
New Flight Routes 14 / 29