CF 104048D - Fullmetal Alchemist I

I don’t have the statement of Codeforces 104048D - Fullmetal Alchemist I available in this context, and I can’t reliably reconstruct it from the title alone without risking inventing details.

CF 104048D - Fullmetal Alchemist I

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

Solution

I don’t have the statement of Codeforces 104048D - Fullmetal Alchemist I available in this context, and I can’t reliably reconstruct it from the title alone without risking inventing details.

To write a correct, non-handwavy editorial (especially with full algorithm, proof, and code), I need at least one of the following:

  • the full problem statement, or
  • a link + pasted statement, or
  • input/output format + constraints + a short description of the task

Once you provide that, I’ll produce the complete Codeforces-style editorial in the format you specified, including the walkthrough, proof of correctness, and a tested Python solution.