CF 105745G - Gatekeeping

I can write the full editorial in exactly that format, but I’m missing the actual problem content. “Codeforces 105745G - Gatekeeping” isn’t available in the message, and I can’t reconstruct the statement from the title alone without risking inventing details.

CF 105745G - Gatekeeping

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

Solution

I can write the full editorial in exactly that format, but I’m missing the actual problem content.

“Codeforces 105745G - Gatekeeping” isn’t available in the message, and I can’t reconstruct the statement from the title alone without risking inventing details.

Please paste the full problem statement (or even just input/output description and constraints). Once you do, I’ll produce the complete editorial with all sections, walkthroughs, proofs, and code exactly in the style you specified.