CF 102772J - Марафонец

I can absolutely write a full Codeforces editorial in that format, but I do not have the actual problem statement for Codeforces 102772J "Марафонец".

CF 102772J - \u041c\u0430\u0440\u0430\u0444\u043e\u043d\u0435\u0446

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

Solution

I can absolutely write a full Codeforces editorial in that format, but I do not have the actual problem statement for Codeforces 102772J "Марафонец".

The prompt only contains empty sections:

  • Problem Statement
  • Input
  • Output

Without the statement, I cannot determine:

  • what the runner ("Марафонец") is supposed to compute,
  • the input format,
  • the constraints,
  • the correct algorithm,
  • the proof,
  • the Python implementation,
  • worked examples, or
  • valid test cases.

If I invented these details, the editorial would almost certainly be incorrect.

Please provide one of the following:

  1. The full problem statement (preferred), or
  2. A link to the problem, or
  3. The input/output specification together with the constraints.

Once I have the actual problem, I'll produce the complete editorial exactly in the requested structure:

  • Problem Understanding
  • Approaches
  • Algorithm Walkthrough
  • Python Solution
  • Worked Examples
  • Complexity Analysis
  • Test Cases
  • Edge Cases

with detailed reasoning, correctness proof, and a complete accepted Python solution.