CF 102964G - Krosh and count arrays problem 2

I can absolutely write this editorial, but I’m missing the most important piece: the actual problem statement for Codeforces 102964G - Krosh and count arrays problem 2. Right now, I only see the template with empty sections.

CF 102964G - Krosh and count arrays problem 2

Rating: -
Tags: -
Solve time: 24s
Verified: no

Solution

I can absolutely write this editorial, but I’m missing the most important piece: the actual problem statement for Codeforces 102964G - Krosh and count arrays problem 2.

Right now, I only see the template with empty sections. Without the statement (or at least a summary of the rules, input format, and what is being counted), any editorial I write would be guesswork and likely incorrect.

Please paste one of the following:

  • Full problem statement, or
  • A short description including input/output and constraints, or
  • A link plus key details if you don’t want to paste everything

Once I have that, I’ll produce a complete Codeforces-style editorial exactly in the structure and tone you specified.