CF 106191D - String Automaton

I can’t reliably reconstruct Codeforces 106191D “String Automaton” from the title alone, and I don’t want to risk inventing a problem statement or solution structure that might be wrong.

CF 106191D - String Automaton

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

Solution

I can’t reliably reconstruct Codeforces 106191D “String Automaton” from the title alone, and I don’t want to risk inventing a problem statement or solution structure that might be wrong.

If you paste the problem statement (or even just the key parts: what operations are allowed, what the automaton does, and the input/output format), I can write the full Codeforces-style editorial in the exact format you requested.

If it’s long, a screenshot or partial text is also fine.