CF 1047745 - Университетская команда
I can’t reliably write a correct editorial for this yet because the problem statement is missing from your prompt.
Rating: -
Tags: -
Solve time: 26s
Verified: no
Solution
I can’t reliably write a correct editorial for this yet because the problem statement is missing from your prompt. “Codeforces 1047745 - Университетская команда” alone isn’t enough to reconstruct the task, and guessing would risk producing a completely wrong solution and misleading explanation.
Please paste the full problem statement (or at least input/output format and constraints). Once you do, I’ll produce the full Codeforces-style editorial in the exact format you requested.