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 1580 / 1675
Missing Number 1185 / 1322
Repetitions 1070 / 1161
Increasing Array 1009 / 1040
Permutations 909 / 945
Number Spiral 672 / 711
Two Knights 491 / 513
Two Sets 457 / 476
Bit Strings 403 / 416
Trailing Zeros 360 / 371
Coin Piles 317 / 349
Palindrome Reorder 291 / 304
Creating Strings I 278 / 286
Apple Division 268 / 287
Chessboard and Queens 172 / 180
Grid Paths 85 / 109

Sorting and Searching

Distinct Numbers 409 / 417
Apartments 438 / 498
Ferris Wheel 414 / 451
Concert Tickets 334 / 412
Restaurant Customers 224 / 241
Movie Festival 216 / 223
Sum of Two Values 256 / 270
Maximum Subarray Sum 250 / 252
Stick Lengths 358 / 368
Playlist 327 / 447
Towers 343 / 368
Traffic Lights 215 / 233
Room Allocation 201 / 219
Factory Machines 178 / 192
Tasks and Deadlines 156 / 158
Reading Books 132 / 148
Sum of Three Values 190 / 204
Sum of Four Values 150 / 156
Nearest Smaller Values 166 / 168
Subarray Sums I 186 / 191
Subarray Sums II 156 / 165
Subarray Divisibility 140 / 147
Array Division 205 / 223
Sliding Median 201 / 225
Sliding Cost 146 / 162
Movie Festival II 79 / 98
Maximum Subarray Sum II 96 / 104

Dynamic Programming

Dice Combinations 343 / 363
Minimizing Coins 301 / 314
Coin Combinations I 260 / 276
Coin Combinations II 203 / 248
Removing Digits 249 / 256
Grid Paths 229 / 251
Book Shop 283 / 331
Array Description 154 / 170
Edit Distance 168 / 174
Rectangle Cutting 167 / 183
Money Sums 177 / 185
Removal Game 217 / 233
Two Sets II 219 / 240
Increasing Subsequence 268 / 293
Projects 172 / 190

Graph Algorithms

Counting Rooms 344 / 360
Labyrinth 210 / 257
Building Roads 223 / 230
Message Route 186 / 194
Building Teams 171 / 180
Round Trip 135 / 147
Monsters 104 / 137
Shortest Routes I 142 / 147
Shortest Routes II 127 / 134
High Score 89 / 108
Flight Discount 125 / 151
Cycle Finding 121 / 129
Flight Routes 87 / 92
Round Trip II 79 / 82
Course Schedule 89 / 95
Longest Flight Route 78 / 83
Game Routes 75 / 80
Investigation 79 / 86
Planets Queries I 62 / 64
Planets Queries II 55 / 64
Planets Cycles 35 / 39
Road Reparation 64 / 65
Road Construction 62 / 64
Flight Routes Check 53 / 57
Planets and Kingdoms 62 / 64
Giant Pizza 37 / 40
Coin Collector 42 / 46
Mail Delivery 35 / 38
De Bruijn Sequence 26 / 28
Teleporters Path 27 / 29
Hamiltonian Flights 35 / 37
Knight's Tour 29 / 35
Download Speed 40 / 43
Police Chase 38 / 40
School Dance 39 / 44
Distinct Routes 40 / 42

Range Queries

Range Sum Queries I 215 / 222
Range Minimum Queries I 181 / 189
Range Sum Queries II 184 / 191
Range Minimum Queries II 164 / 167
Range Xor Queries 168 / 171
Range Update Queries 148 / 156
Forest Queries 120 / 125
Hotel Queries 207 / 266
List Removals 101 / 108
Salary Queries 127 / 158
Subarray Sum Queries 118 / 122
Distinct Values Queries 74 / 91
Forest Queries II 67 / 74
Range Updates and Sums 49 / 64
Polynomial Queries 46 / 53
Range Queries and Copies 34 / 36

Tree Algorithms

Subordinates 133 / 137
Tree Matching 118 / 137
Tree Diameter 167 / 180
Tree Distances I 127 / 137
Tree Distances II 110 / 115
Company Queries I 78 / 80
Company Queries II 76 / 79
Distance Queries 121 / 127
Counting Paths 88 / 93
Subtree Queries 115 / 120
Path Queries 93 / 95
Distinct Colors 107 / 117

Mathematics

Exponentiation 271 / 287
Exponentiation II 144 / 176
Counting Divisors 148 / 163
Common Divisors 140 / 156
Sum of Divisors 97 / 127
Binomial Coefficients 142 / 156
Creating Strings II 76 / 86
Distributing Apples 69 / 74
Christmas Party 61 / 66
Fibonacci Numbers 79 / 88
Throwing Dice 91 / 95
Graph Paths I 49 / 54
Graph Paths II 36 / 39
Dice Probability 49 / 52
Moving Robots 27 / 32
Candy Lottery 46 / 48
Inversion Probability 47 / 49
Stick Game 50 / 53
Nim Game I 81 / 83
Nim Game II 96 / 103
Stair Game 50 / 73

String Algorithms

Word Combinations 28 / 52
String Matching 58 / 72
Finding Borders 47 / 56
Finding Periods 33 / 40
Minimal Rotation 59 / 78
Longest Palindrome 69 / 81
Required Substring 43 / 72

Additional Problems

Shortest Subsequence 170 / 199
Counting Bits 165 / 189
Swap Game 30 / 38
Meet in the Middle 59 / 62
Prüfer Code 70 / 77
Edge Directions 48 / 51
Advertisement 148 / 158
Elevator Rides 30 / 35
Maximum Xor Subarray 38 / 41
Movie Festival Queries 24 / 30
Chess Tournament 22 / 26
Tree Traversals 22 / 23
Network Renovation 18 / 30
Graph Girth 26 / 27
Intersection Points 21 / 24
String Reorder 18 / 20
Pyramid Array 14 / 19
Increasing Subsequence II 33 / 35
String Removals 64 / 68
Bit Inversions 75 / 80
Writing Numbers 74 / 83
String Transform 34 / 44
Maximum Building I 64 / 66
Sorting Methods 55 / 59
Cyclic Array 47 / 52
Food Division 31 / 38
Bit Problem 15 / 17
Swap Round Sorting 12 / 19
Tree Isomorphism I 18 / 22
Critical Cities 10 / 16
School Excursion 21 / 23
Coin Grid 17 / 24
Robot Path 10 / 12
Course Schedule II 22 / 29
Empty String 39 / 50
Grid Paths 52 / 58
Book Shop II 50 / 59
Network Breakdown 21 / 22
Visiting Cities 40 / 57
Number Grid 72 / 84
Maximum Building II 31 / 35
Stick Divisions 66 / 77
Coding Company 12 / 17
Flight Route Requests 14 / 18
Tree Isomorphism II 16 / 21
Forbidden Cities 10 / 12
Area of Rectangles 15 / 21
Creating Offices 9 / 14
Permutations II 51 / 58
New Flight Routes 12 / 23