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 1085 / 1172
Missing Number 800 / 917
Repetitions 724 / 806
Increasing Array 697 / 719
Permutations 620 / 645
Number Spiral 461 / 484
Two Knights 339 / 354
Two Sets 277 / 290
Bit Strings 185 / 190
Trailing Zeros 163 / 168
Coin Piles 145 / 159
Palindrome Reorder 146 / 153
Creating Strings I 138 / 139
Apple Division 139 / 142
Chessboard and Queens 88 / 90
Grid Paths 45 / 53

Sorting and Searching

Distinct Numbers 191 / 193
Apartments 305 / 357
Ferris Wheel 293 / 329
Concert Tickets 238 / 302
Restaurant Customers 115 / 118
Movie Festival 112 / 115
Sum of Two Values 129 / 138
Maximum Subarray Sum 128 / 128
Stick Lengths 263 / 272
Playlist 240 / 355
Towers 255 / 273
Traffic Lights 147 / 162
Room Allocation 141 / 150
Factory Machines 97 / 100
Tasks and Deadlines 74 / 74
Reading Books 60 / 69
Sum of Three Values 90 / 96
Sum of Four Values 78 / 85
Nearest Smaller Values 72 / 72
Subarray Sums I 89 / 90
Subarray Sums II 81 / 84
Subarray Divisibility 77 / 80
Array Division 158 / 167
Sliding Median 150 / 166
Sliding Cost 110 / 122
Movie Festival II 43 / 52
Maximum Subarray Sum II 50 / 55

Dynamic Programming

Dice Combinations 160 / 164
Minimizing Coins 131 / 139
Coin Combinations I 117 / 125
Coin Combinations II 90 / 111
Removing Digits 114 / 116
Grid Paths 109 / 110
Book Shop 193 / 226
Array Description 75 / 82
Edit Distance 81 / 82
Rectangle Cutting 89 / 90
Money Sums 87 / 90
Removal Game 145 / 159
Two Sets II 151 / 161
Increasing Subsequence 184 / 203
Projects 126 / 136

Graph Algorithms

Counting Rooms 188 / 197
Labyrinth 149 / 166
Building Roads 78 / 82
Message Route 73 / 77
Building Teams 67 / 70
Round Trip 56 / 62
Monsters 90 / 93
Shortest Routes I 61 / 62
Shortest Routes II 54 / 59
High Score 39 / 46
Flight Discount 78 / 92
Cycle Finding 79 / 87
Flight Routes 55 / 60
Round Trip II 36 / 37
Course Schedule 36 / 37
Longest Flight Route 33 / 34
Game Routes 33 / 33
Investigation 55 / 57
Planets Queries I 28 / 29
Planets Queries II 40 / 46
Planets Cycles 20 / 20
Road Reparation 28 / 28
Road Construction 28 / 28
Flight Routes Check 23 / 25
Planets and Kingdoms 27 / 28
Giant Pizza 14 / 14
Coin Collector 21 / 22
Mail Delivery 14 / 16
De Bruijn Sequence 12 / 12
Teleporters Path 12 / 13
Hamiltonian Flights 14 / 14
Knight's Tour 14 / 14
Download Speed 18 / 18
Police Chase 16 / 17
School Dance 20 / 21
Distinct Routes 16 / 16

Range Queries

Range Sum Queries I 102 / 103
Range Minimum Queries I 82 / 84
Range Sum Queries II 87 / 90
Range Minimum Queries II 76 / 76
Range Xor Queries 74 / 75
Range Update Queries 63 / 64
Forest Queries 55 / 55
Hotel Queries 158 / 198
List Removals 39 / 43
Salary Queries 94 / 103
Subarray Sum Queries 76 / 79
Distinct Values Queries 29 / 35
Forest Queries II 34 / 37
Range Updates and Sums 26 / 30
Polynomial Queries 21 / 23
Range Queries and Copies 14 / 15

Tree Algorithms

Subordinates 61 / 63
Tree Matching 87 / 99
Tree Diameter 112 / 125
Tree Distances I 83 / 91
Tree Distances II 74 / 79
Company Queries I 37 / 37
Company Queries II 38 / 39
Distance Queries 82 / 89
Counting Paths 60 / 64
Subtree Queries 83 / 86
Path Queries 60 / 62
Distinct Colors 72 / 79

Mathematics

Exponentiation 180 / 189
Exponentiation II 66 / 77
Counting Divisors 69 / 79
Common Divisors 98 / 106
Sum of Divisors 65 / 86
Binomial Coefficients 99 / 110
Creating Strings II 37 / 38
Distributing Apples 31 / 33
Christmas Party 28 / 29
Fibonacci Numbers 34 / 38
Throwing Dice 67 / 69
Graph Paths I 24 / 25
Graph Paths II 18 / 19
Dice Probability 25 / 25
Moving Robots 11 / 13
Candy Lottery 25 / 25
Inversion Probability 21 / 21
Stick Game 21 / 21
Nim Game I 40 / 40
Nim Game II 65 / 70
Stair Game 31 / 54

String Algorithms

Word Combinations 15 / 19
String Matching 23 / 26
Finding Borders 22 / 24
Finding Periods 11 / 12
Minimal Rotation 48 / 56
Longest Palindrome 54 / 61
Required Substring 31 / 54

Additional Problems

Shortest Subsequence 151 / 176
Counting Bits 142 / 163
Swap Game 11 / 13
Meet in the Middle 23 / 24
Prüfer Code 58 / 64
Edge Directions 26 / 27
Advertisement 125 / 137
Elevator Rides 7 / 8
Maximum Xor Subarray 12 / 12
Movie Festival Queries 6 / 6
Chess Tournament 8 / 9
Tree Traversals 9 / 9
Network Renovation 8 / 13
Graph Girth 11 / 11
Intersection Points 8 / 8
String Reorder 9 / 9
Pyramid Array 6 / 7
Increasing Subsequence II 12 / 13
String Removals 52 / 56
Bit Inversions 66 / 70
Writing Numbers 67 / 75
String Transform 29 / 38
Maximum Building I 55 / 57
Sorting Methods 47 / 51
Cyclic Array 41 / 47
Food Division 26 / 34
Bit Problem 7 / 8
Swap Round Sorting 5 / 6
Tree Isomorphism I 9 / 10
Critical Cities 5 / 6
School Excursion 10 / 10
Coin Grid 9 / 9
Robot Path 5 / 5
Course Schedule II 9 / 11
Empty String 29 / 38
Grid Paths 39 / 46
Book Shop II 42 / 51
Network Breakdown 11 / 11
Visiting Cities 34 / 49
Number Grid 57 / 66
Maximum Building II 29 / 32
Stick Divisions 49 / 57
Coding Company 6 / 7
Flight Route Requests 6 / 7
Tree Isomorphism II 8 / 8
Forbidden Cities 6 / 6
Area of Rectangles 7 / 9
Creating Offices 4 / 6
Permutations II 37 / 44
New Flight Routes 5 / 11