CF 1029353 - Изменённая ДНК

I can’t write a correct Codeforces editorial for this yet because the actual problem statement is missing. Right now I only see the title “Изменённая ДНК” (“Modified DNA”), but no definition of the input, operations, or what needs to be computed.

CF 1029353 - \u0418\u0437\u043c\u0435\u043d\u0451\u043d\u043d\u0430\u044f \u0414\u041d\u041a

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

Solution

I can’t write a correct Codeforces editorial for this yet because the actual problem statement is missing.

Right now I only see the title “Изменённая ДНК” (“Modified DNA”), but no definition of the input, operations, or what needs to be computed. Any attempt to reconstruct it would be guessing, and that would produce a fake editorial rather than a reliable one.

Paste the full statement (or even just the key parts: input format, operations on the DNA string/sequence, and the required output). Once you send it, I’ll produce the complete editorial in the exact structure you requested, including the algorithm walkthrough, proofs, and full Python solution.