Codeforces Round 1087 (Div. 1, Div. 2) Editorial

Revision en1, by __baozii__, 2026-03-21 17:01:33

We hope you enjoyed the problems!

Rate the contest!

2188A - Divisible Permutation

Solution
Code (Python)
Rate the problem!

2188B - Seats

Solution
Code (C++)
Rate the problem!

2187A - Restricted Sorting

Hint 1
Hint 2
Solution
Code (Python)
Rate the problem!

2187B - Shortest Statement Ever

Hint 1
Solution
Proof of the interesting fact
Code (C++)
Rate the problem!

2187C - Jerry and Tom

Hint 1
Hint 2
Solution
Code (C++)
Bonus
Rate the problem!

2187D - Cool Problem

Solution
Code (C++)
Rate the problem!

2187E - Doors and Keys

Hint 1
Hint 2
Hint 3
Solution
Code (Python)
Bonus
Rate the problem!

2187F1 - Al Fine (Maximizing Version)

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Solution
Code (C++)
Fun Fact
Rate the problem!

2187F2 - Al Fine (Counting Version)

Solution
Code (C++)
Bonus
Rate the problem!

2187G - Many Cartesian Trees

Solution
Code (C++)
Rate the problem!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en11 English OtterZ 2026-03-25 16:26:37 0 Tiny change: 'oiler>\n\n[problem:2209A]\n\n- Idea' -> 'oiler>\n\n\n\n- Idea'
en10 English OtterZ 2026-03-22 03:47:48 0 Tiny change: 'oiler>\n\n[problem:2209F]\n\n- Idea' -> 'oiler>\n\n\n\n- Idea'
en9 English OtterZ 2026-03-22 03:17:38 0 Tiny change: '[problem:2209A]\n\n- Ide' -> '[problem:2]\n\n- Ide'
en8 English OtterZ 2026-03-21 19:58:01 8
en7 English __baozii__ 2026-03-21 19:41:21 0 (published)
en6 English OtterZ 2026-03-21 17:25:23 6
en5 English OtterZ 2026-03-21 17:24:51 564
en4 English OtterZ 2026-03-21 17:21:45 2 Tiny change: 'int n,a[100],k;\nlong' -> 'int n,a[109],k;\nlong'
en3 English __baozii__ 2026-03-21 17:16:07 0 Tiny change: 'oiler>\n\n[problem:2209A]\n\n- Idea' -> 'oiler>\n\n\n\n- Idea'
en2 English __baozii__ 2026-03-21 17:14:20 43335
en1 English __baozii__ 2026-03-21 17:01:33 41233 Initial revision (saved to drafts)