CSES Construction Problems Editorial

Revision en7, by BaoCoder613, 2026-02-25 23:18:54

As of Feb 26, 2026. I am not aware of an editorial on this section. So I decided to write it here. If you see any mistake or have an alternative solution, I'd be glad if you tell me in the comments.

Notes (2026-02-26):

  1. The codes given are my AC codes on CSES. They are written at very different times. Therefore, you might expect some jumps in coding style among the solutions.

  2. I am not good at implementing. Sometimes I make solutions harder to understand in exchange for them being easier to implement. If you can't understand the solution, feel free to ask.

  3. I haven't been able to AC Grid Path Construction yet. I do have a solution in mind though. (Therefore the solution is not checked by AC, if you find any mistake please tell me).

Inverse Inversions

Hint 1
Hint 2
Hint 3
Solution
Code

Monotone Subsequences

Hint 1
Hint 2
Hint 3
Solution
Code

Third Permutation

Hint 1
Hint 2
Solution
Code

Permutation Prime Sums

Hint 1
Hint 2
Solution
Code
Proof

Chess Tournament

Hint 1
Hint 2
Hint 3
Solution
Code

Distinct Sums Grid

Hint 1
Hint 2
Solution
Code

Filling Trominos

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Solution
Code

Grid Path Construction

If you want the solution now, read this
TBD

That's it for now. Tell me in the comment if there's anything you want to point out. I would update later.

Tags cses, construction

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en7 English BaoCoder613 2026-02-25 23:18:54 0 (published)
en6 English BaoCoder613 2026-02-25 23:18:42 134
en5 English BaoCoder613 2026-02-25 23:17:12 8461
en4 English BaoCoder613 2026-02-25 22:42:43 5246
en3 English BaoCoder613 2026-02-25 22:15:25 4256
en2 English BaoCoder613 2026-02-25 21:44:51 1330 Tiny change: 'Inversions (2214)](https://' -> 'Inversions](https://'
en1 English BaoCoder613 2026-02-25 21:31:40 2219 Initial revision (saved to drafts)