9 hardest CSES problems. Hints&solutions.

Правка en9, от Rvess, 2025-01-29 18:07:25

CSES is a well-known resource. It has many problems from a variety of topics. Solutions to almost every problem can be found online. But for some hard problems there are no editorials yet. Getting stuck on these difficult problems can lead to frustration, which is why I decided to write solutions for them.

Inversion Probability

Hint 1
Hint 2
Hint 3
Solution

Letter Pair Move Game

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Similar problem
Solution

Removing Digits II

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Hint 6
Original problem
Solution

Counting Reorders

Hint 1
Hint 2
Hint 3
Similar problem
Solution

Filling Trominos

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Hint 6
Hint 7
Solution

Functional Graph Distribution

Solution

Grid Completion

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Key observation
Similar problem
Solution

Two Stacks Sorting

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Similar problems
Solution

Grid Path Construction

Теги cses, inclusion-exclusion, dp, constructive, graphs

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en14 Английский Rvess 2025-01-29 21:27:44 3 (published)
en13 Английский Rvess 2025-01-29 21:25:05 12
en12 Английский Rvess 2025-01-29 21:21:10 21 (saved to drafts)
en11 Английский Rvess 2025-01-29 20:16:44 127
en10 Английский Rvess 2025-01-29 19:09:46 94
en9 Английский Rvess 2025-01-29 18:07:25 8
en8 Английский Rvess 2025-01-29 18:04:54 1
en7 Английский Rvess 2025-01-29 16:48:35 8
en6 Английский Rvess 2025-01-29 16:43:18 571 Added links to simular/originals problems. Searched through TLE's engine http://yuantiji.ac/en/.
en5 Английский Rvess 2025-01-29 03:24:05 20
en4 Английский Rvess 2025-01-29 02:49:30 0 (published)
en3 Английский Rvess 2025-01-29 02:47:35 13 (saved to drafts)
en2 Английский Rvess 2025-01-28 14:30:46 0 (published)
en1 Английский Rvess 2025-01-28 14:29:57 12379 Initial revision (saved to drafts)