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

Правка en6, от Flamire, 2025-11-18 04:24:16

2166A — Same Difference

idea & solution: le0n

Tutorial
Solution

2166B — Tab Closing

idea & solution: le0n

The problem statement arised naturally from closing tabs in any modern browser.

Tutorial
Solution

2165A — Cyclic Merging

idea & solution: le0n

Tutorial
Solution
Solution (linked lists, by Arpa)

2165B — Marble Council

idea & solution: Flamire

Tutorial
Solution (By ZhouYuHang)

2165C — Binary Wine

idea & solution: le0n

Some participants mentioned that similar ideas have appeared recently. We knew of at least one such problem, however, the problem was already proposed and accepted at that time.

I believe that the problems are not identical, though similar ideas were used, it is also a show of skill to remember and reuse ideas learnt from previous problems. Therefore, I would like to think the problem does have a place in the contest.

There was an oversight on the preparation of this problem, the tests did not include enough small tests, which allowed some codes with wrong implementation to pass. We apologize for the inconvenience.

Tutorial
Solution

2165D — Path Split

idea & solution: le0n

Some participants mentioned that similar ideas have appeared recently, we did not know of this.

This problem was initially proposed with a Hall-dp solution, also with complexity $$$O(n)$$$, but testers told us of a simpler greedy solution.

Hint 1
Hint 2
Tutorial
Solution

2165E — Rainbow Branch

idea & solution: Flamire

Our testers had vastly different opinions on the difficulty on this problems, some were able to solve within 20mins, and others failed to solve within a sufficiently long time. We eventually decided to put it at E, and it seems to have did its work.

Hint 1
Hint 2
Hint 3
Hint 4
Tutorial
Solution

2165F — Arctic Acquisition

idea & solution: Flamire

No, we did not propose a paper problem. We knew of the paper on permutation pattern matching in advance, but we assumed the paper would not help much in solving the problem, either due to coding complexity, or constants hidden by the notation that would make it impractical. I'll admit that I did not read the paper in full (procrastination), but from what I gathered, it seemed that understanding the paper would be harder than solving the problem in itself.

If I am mistaken, please let me know.

Hint 1
Hint 2
Hint 3
Hint 4
Tutorial
Solution

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en7 Английский Flamire 2025-11-18 04:33:44 3317
en6 Английский Flamire 2025-11-18 04:24:16 3394 Tiny change: 'n $a_{x+1}\sim a_i$ into ' -> 'n $a_{x+1},a_{x+2},\cdots,a_i$ into '
en5 Английский Flamire 2025-11-17 13:16:32 8 Tiny change: 'odes with bad implement' -> 'odes with wrong implement'
en4 Английский Flamire 2025-11-17 12:26:52 2 Tiny change: 'ash; Path split](http' -> 'ash; Path Split](http'
en3 Английский Flamire 2025-11-17 12:21:55 57
en2 Английский Flamire 2025-11-17 12:18:45 13 Tiny change: 'F)\n\nidea: [user:Fl' -> 'F)\n\nidea & solution: [user:Fl'
en1 Английский Flamire 2025-11-17 12:12:53 21046 Initial revision (published)