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 2071 / 2174
Missing Number 1554 / 1720
Repetitions 1387 / 1495
Increasing Array 1299 / 1353
Permutations 1175 / 1217
Number Spiral 853 / 910
Two Knights 602 / 650
Two Sets 616 / 647
Bit Strings 597 / 619
Trailing Zeros 534 / 562
Coin Piles 483 / 540
Palindrome Reorder 441 / 462
Creating Strings I 431 / 440
Apple Division 388 / 422
Chessboard and Queens 237 / 245
Grid Paths 112 / 154

Sorting and Searching

Distinct Numbers 645 / 666
Apartments 567 / 660
Ferris Wheel 547 / 598
Concert Tickets 438 / 533
Restaurant Customers 330 / 354
Movie Festival 309 / 328
Sum of Two Values 373 / 393
Maximum Subarray Sum 381 / 386
Stick Lengths 456 / 469
Playlist 406 / 536
Towers 417 / 447
Traffic Lights 263 / 291
Room Allocation 248 / 273
Factory Machines 216 / 256
Tasks and Deadlines 205 / 208
Reading Books 180 / 201
Sum of Three Values 248 / 269
Sum of Four Values 197 / 208
Nearest Smaller Values 221 / 225
Subarray Sums I 255 / 262
Subarray Sums II 212 / 227
Subarray Divisibility 183 / 191
Array Division 240 / 264
Sliding Median 234 / 262
Sliding Cost 165 / 184
Movie Festival II 110 / 141
Maximum Subarray Sum II 135 / 146

Dynamic Programming

Dice Combinations 612 / 652
Minimizing Coins 539 / 563
Coin Combinations I 464 / 488
Coin Combinations II 367 / 431
Removing Digits 461 / 471
Grid Paths 400 / 422
Book Shop 425 / 486
Array Description 257 / 286
Edit Distance 279 / 291
Rectangle Cutting 263 / 285
Money Sums 287 / 299
Removal Game 299 / 320
Two Sets II 297 / 329
Increasing Subsequence 347 / 395
Projects 230 / 262

Graph Algorithms

Counting Rooms 440 / 466
Labyrinth 269 / 331
Building Roads 290 / 298
Message Route 246 / 255
Building Teams 235 / 250
Round Trip 202 / 217
Monsters 138 / 173
Shortest Routes I 200 / 207
Shortest Routes II 196 / 207
High Score 109 / 145
Flight Discount 152 / 185
Cycle Finding 141 / 154
Flight Routes 104 / 111
Round Trip II 101 / 105
Course Schedule 130 / 137
Longest Flight Route 93 / 104
Game Routes 93 / 99
Investigation 87 / 96
Planets Queries I 71 / 75
Planets Queries II 62 / 71
Planets Cycles 45 / 49
Road Reparation 81 / 82
Road Construction 78 / 79
Flight Routes Check 71 / 77
Planets and Kingdoms 74 / 77
Giant Pizza 45 / 48
Coin Collector 58 / 63
Mail Delivery 46 / 51
De Bruijn Sequence 37 / 40
Teleporters Path 43 / 48
Hamiltonian Flights 47 / 51
Knight's Tour 39 / 44
Download Speed 52 / 55
Police Chase 50 / 52
School Dance 50 / 55
Distinct Routes 51 / 54

Range Queries

Range Sum Queries I 336 / 354
Range Minimum Queries I 276 / 295
Range Sum Queries II 275 / 286
Range Minimum Queries II 239 / 243
Range Xor Queries 252 / 255
Range Update Queries 210 / 219
Forest Queries 161 / 166
Hotel Queries 240 / 293
List Removals 124 / 135
Salary Queries 149 / 179
Subarray Sum Queries 135 / 139
Distinct Values Queries 94 / 120
Forest Queries II 85 / 93
Range Updates and Sums 64 / 84
Polynomial Queries 59 / 71
Range Queries and Copies 42 / 44

Tree Algorithms

Subordinates 205 / 209
Tree Matching 153 / 181
Tree Diameter 226 / 238
Tree Distances I 168 / 183
Tree Distances II 133 / 141
Company Queries I 109 / 113
Company Queries II 107 / 111
Distance Queries 151 / 157
Counting Paths 103 / 109
Subtree Queries 134 / 140
Path Queries 111 / 113
Distinct Colors 127 / 140

Mathematics

Exponentiation 351 / 383
Exponentiation II 211 / 260
Counting Divisors 206 / 234
Common Divisors 185 / 205
Sum of Divisors 119 / 162
Binomial Coefficients 176 / 194
Creating Strings II 105 / 119
Distributing Apples 96 / 107
Christmas Party 80 / 88
Fibonacci Numbers 109 / 132
Throwing Dice 110 / 114
Graph Paths I 65 / 74
Graph Paths II 47 / 51
Dice Probability 71 / 76
Moving Robots 34 / 40
Candy Lottery 63 / 65
Inversion Probability 57 / 59
Stick Game 74 / 78
Nim Game I 110 / 112
Nim Game II 116 / 125
Stair Game 60 / 87

String Algorithms

Word Combinations 49 / 81
String Matching 112 / 128
Finding Borders 78 / 90
Finding Periods 53 / 64
Minimal Rotation 81 / 116
Longest Palindrome 93 / 112
Required Substring 50 / 87

Additional Problems

Shortest Subsequence 193 / 225
Counting Bits 183 / 207
Swap Game 37 / 46
Meet in the Middle 66 / 86
Prüfer Code 83 / 90
Edge Directions 56 / 64
Advertisement 161 / 172
Elevator Rides 37 / 46
Maximum Xor Subarray 52 / 55
Movie Festival Queries 28 / 34
Chess Tournament 28 / 35
Tree Traversals 31 / 32
Network Renovation 23 / 35
Graph Girth 31 / 32
Intersection Points 28 / 31
String Reorder 22 / 24
Pyramid Array 20 / 26
Increasing Subsequence II 48 / 50
String Removals 69 / 73
Bit Inversions 79 / 85
Writing Numbers 76 / 86
String Transform 36 / 47
Maximum Building I 78 / 81
Sorting Methods 61 / 65
Cyclic Array 49 / 56
Food Division 36 / 43
Bit Problem 22 / 24
Swap Round Sorting 17 / 24
Tree Isomorphism I 27 / 33
Critical Cities 14 / 20
School Excursion 28 / 30
Coin Grid 20 / 29
Robot Path 8 / 14
Course Schedule II 28 / 36
Empty String 44 / 55
Grid Paths 54 / 60
Book Shop II 54 / 65
Network Breakdown 28 / 29
Visiting Cities 38 / 62
Number Grid 84 / 98
Maximum Building II 33 / 39
Stick Divisions 75 / 87
Coding Company 15 / 20
Flight Route Requests 19 / 23
Tree Isomorphism II 24 / 32
Forbidden Cities 14 / 16
Area of Rectangles 23 / 28
Creating Offices 16 / 21
Permutations II 57 / 64
New Flight Routes 12 / 26