CF 1047745 - Университетская команда

I can’t reliably write a correct editorial for this yet because the problem statement is missing from your prompt.

CF 1047745 - \u0423\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442\u0441\u043a\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430

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.