Flamire's blog

By Flamire, history, 6 months ago, In English

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
Tutorial (Hall-dp)
Solution
Solution (Hall-dp)

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

Full text and comments »

  • Vote: I like it
  • +203
  • Vote: I do not like it

By Flamire, history, 6 months ago, In English

Hello, Codeforces! We're glad to invite you to take part in Codeforces Round 1064 (Div. 1) and Codeforces Round 1064 (Div. 2), which will start on Nov/16/2025 17:35 (Moscow time). You will be given 6 problems and 2 hours to solve them in both divisions.

The problems were authored and prepared by le0n and me.

We would like to thank:

Score distribution:

  • Div. 1: $$$500-1000-1500-2500-3000-4000$$$
  • Div. 2: $$$500-750-1000-1500-2000-3000$$$

We hope you'll enjoy the problems!

UPD: Congratulations to top $$$5$$$ in Div. 1 and Div. 2.

Div. 1:

  1. maroonrk, achieving perfect score at an astonishing 01:18:30!
  2. JDScript0117, with an outstanding comeback at 01:55:46!
  3. Benq
  4. ksun48
  5. Nachia

Div. 2:

  1. __lucailie, with a final solve at 01:59:15!
  2. weertyu
  3. su_da
  4. Axiom_
  5. WangYuanyi

First solves:

Div. 1:

A: ksun48
B: Benq
C: OrangeEye
D: Benq
E: Benq
F: maroonrk

Div. 2:

A: f___off
B: Animesh--__--
C: lemmec0de
D: Doraemon-_-
E: Shakhzod_Toshpulatov
F: kyUUKoU

UPD: Editorial is out!

Full text and comments »

  • Vote: I like it
  • +298
  • Vote: I do not like it

By Flamire, history, 21 month(s) ago, In English

2002A — Distanced Coloring

idea & solution: xcyle

Hint 1
Hint 2
Tutorial
Solution

2002B — Removals Game

idea & solution: xcyle

Hint
Tutorial
Solution

2002C — Black Circles

idea: Flamire, solution: le0n

Hint
Tutorial
Solution

2002D1 — DFS Checker (Easy Version) and 2002D2 — DFS Checker (Hard Version)

idea & solution: xcyle

Hint
Tutorial
Solution (Check 1)
Solution (Check 2, LipArcanjo)

2002E — Cosmic Rays

idea: le0n, solution: Flamire

Hint 1
Hint 2
Tutorial
Solution
Solution (priority_queue)

2002F1 — Court Blue (Easy Version)

idea: Flamire, solution: le0n

Hint 1
Hint 2
Tutorial
Solution

2002F2 — Court Blue (Hard Version)

idea: le0n, solution: xcyle

Hint
Hint (alternate version)
Tutorial
Solution
Solution (dfs)

2002G — Lattice Optimizing

idea & solution: xcyle

We apologize for unintended solutions passing, and intended solutions failing with large constants. Brute force runs very fast on $$$n=18$$$, which forced us to increase constraints.

Hint 1
Hint 2
Tutorial
Solution
Solution (trie, LipArcanjo)

2002H — Counting 101

idea: le0n, xcyle, solution: le0n, xcyle

Hint 1
Hint 2
Hint 3
Tutorial
Solution (orzdevinwang)

Full text and comments »

  • Vote: I like it
  • +125
  • Vote: I do not like it