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 1319 / 1405
Missing Number 978 / 1102
Repetitions 884 / 969
Increasing Array 844 / 870
Permutations 752 / 783
Number Spiral 556 / 584
Two Knights 411 / 428
Two Sets 361 / 376
Bit Strings 285 / 292
Trailing Zeros 258 / 265
Coin Piles 232 / 254
Palindrome Reorder 224 / 231
Creating Strings I 211 / 213
Apple Division 201 / 213
Chessboard and Queens 138 / 143
Grid Paths 63 / 80

Sorting and Searching

Distinct Numbers 279 / 283
Apartments 366 / 422
Ferris Wheel 346 / 381
Concert Tickets 284 / 350
Restaurant Customers 171 / 175
Movie Festival 167 / 172
Sum of Two Values 197 / 210
Maximum Subarray Sum 192 / 194
Stick Lengths 316 / 324
Playlist 285 / 402
Towers 300 / 322
Traffic Lights 185 / 200
Room Allocation 174 / 186
Factory Machines 146 / 155
Tasks and Deadlines 123 / 123
Reading Books 99 / 111
Sum of Three Values 144 / 152
Sum of Four Values 116 / 121
Nearest Smaller Values 124 / 124
Subarray Sums I 139 / 143
Subarray Sums II 119 / 125
Subarray Divisibility 111 / 114
Array Division 181 / 194
Sliding Median 174 / 192
Sliding Cost 125 / 138
Movie Festival II 63 / 82
Maximum Subarray Sum II 81 / 86

Dynamic Programming

Dice Combinations 245 / 257
Minimizing Coins 210 / 221
Coin Combinations I 182 / 193
Coin Combinations II 141 / 173
Removing Digits 177 / 178
Grid Paths 156 / 177
Book Shop 241 / 281
Array Description 114 / 126
Edit Distance 127 / 130
Rectangle Cutting 129 / 138
Money Sums 129 / 134
Removal Game 181 / 195
Two Sets II 187 / 200
Increasing Subsequence 225 / 248
Projects 145 / 160

Graph Algorithms

Counting Rooms 247 / 256
Labyrinth 167 / 203
Building Roads 132 / 135
Message Route 120 / 124
Building Teams 108 / 114
Round Trip 90 / 96
Monsters 85 / 118
Shortest Routes I 99 / 102
Shortest Routes II 88 / 90
High Score 68 / 77
Flight Discount 104 / 125
Cycle Finding 100 / 109
Flight Routes 76 / 81
Round Trip II 59 / 60
Course Schedule 63 / 66
Longest Flight Route 61 / 63
Game Routes 59 / 60
Investigation 69 / 76
Planets Queries I 52 / 53
Planets Queries II 49 / 57
Planets Cycles 30 / 32
Road Reparation 49 / 49
Road Construction 48 / 48
Flight Routes Check 39 / 42
Planets and Kingdoms 48 / 49
Giant Pizza 29 / 30
Coin Collector 36 / 38
Mail Delivery 31 / 33
De Bruijn Sequence 22 / 23
Teleporters Path 23 / 24
Hamiltonian Flights 29 / 29
Knight's Tour 26 / 29
Download Speed 30 / 32
Police Chase 30 / 30
School Dance 33 / 34
Distinct Routes 31 / 31

Range Queries

Range Sum Queries I 159 / 160
Range Minimum Queries I 134 / 136
Range Sum Queries II 138 / 142
Range Minimum Queries II 126 / 127
Range Xor Queries 124 / 125
Range Update Queries 110 / 115
Forest Queries 95 / 97
Hotel Queries 181 / 239
List Removals 78 / 83
Salary Queries 125 / 139
Subarray Sum Queries 104 / 108
Distinct Values Queries 59 / 68
Forest Queries II 55 / 60
Range Updates and Sums 40 / 54
Polynomial Queries 37 / 42
Range Queries and Copies 24 / 25

Tree Algorithms

Subordinates 99 / 102
Tree Matching 103 / 119
Tree Diameter 143 / 156
Tree Distances I 106 / 115
Tree Distances II 92 / 98
Company Queries I 60 / 61
Company Queries II 59 / 60
Distance Queries 105 / 112
Counting Paths 71 / 75
Subtree Queries 100 / 104
Path Queries 78 / 80
Distinct Colors 92 / 98

Mathematics

Exponentiation 223 / 235
Exponentiation II 103 / 122
Counting Divisors 107 / 116
Common Divisors 112 / 123
Sum of Divisors 75 / 100
Binomial Coefficients 114 / 127
Creating Strings II 50 / 56
Distributing Apples 45 / 48
Christmas Party 43 / 46
Fibonacci Numbers 55 / 59
Throwing Dice 78 / 81
Graph Paths I 36 / 38
Graph Paths II 26 / 27
Dice Probability 35 / 36
Moving Robots 18 / 21
Candy Lottery 32 / 33
Inversion Probability 31 / 31
Stick Game 38 / 40
Nim Game I 66 / 67
Nim Game II 81 / 88
Stair Game 41 / 64

String Algorithms

Word Combinations 17 / 34
String Matching 35 / 46
Finding Borders 31 / 39
Finding Periods 18 / 21
Minimal Rotation 46 / 64
Longest Palindrome 57 / 68
Required Substring 36 / 61

Additional Problems

Shortest Subsequence 162 / 188
Counting Bits 153 / 174
Swap Game 22 / 26
Meet in the Middle 40 / 41
Prüfer Code 66 / 72
Edge Directions 37 / 39
Advertisement 138 / 148
Elevator Rides 18 / 22
Maximum Xor Subarray 26 / 27
Movie Festival Queries 15 / 22
Chess Tournament 14 / 16
Tree Traversals 13 / 13
Network Renovation 12 / 21
Graph Girth 18 / 18
Intersection Points 15 / 15
String Reorder 15 / 16
Pyramid Array 11 / 13
Increasing Subsequence II 25 / 26
String Removals 57 / 61
Bit Inversions 73 / 77
Writing Numbers 72 / 80
String Transform 31 / 41
Maximum Building I 60 / 62
Sorting Methods 52 / 56
Cyclic Array 43 / 50
Food Division 29 / 37
Bit Problem 10 / 11
Swap Round Sorting 9 / 13
Tree Isomorphism I 18 / 20
Critical Cities 10 / 13
School Excursion 18 / 20
Coin Grid 12 / 15
Robot Path 7 / 7
Course Schedule II 21 / 25
Empty String 37 / 47
Grid Paths 45 / 52
Book Shop II 46 / 55
Network Breakdown 17 / 17
Visiting Cities 38 / 55
Number Grid 65 / 77
Maximum Building II 30 / 34
Stick Divisions 60 / 69
Coding Company 9 / 10
Flight Route Requests 11 / 13
Tree Isomorphism II 14 / 16
Forbidden Cities 9 / 11
Area of Rectangles 11 / 16
Creating Offices 7 / 10
Permutations II 46 / 53
New Flight Routes 11 / 18