CF 1055174 - Квадратный торт

I’m missing the actual problem statement for “Квадратный торт” (Codeforces 1055174), so I can’t reliably reconstruct the logic or write a correct editorial without guessing.

CF 1055174 - \u041a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0439 \u0442\u043e\u0440\u0442

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

Solution

I’m missing the actual problem statement for “Квадратный торт” (Codeforces 1055174), so I can’t reliably reconstruct the logic or write a correct editorial without guessing.

Please paste the full statement (input, output, constraints, and samples if available). Once you do, I’ll produce the complete Codeforces-style editorial in the format you specified.