Looks like a Nice Problem
Test is over as you can see from the timer. Please help!
Codeforces Edu Round 190 (Div 2) — Solution Discussion