Comments

Codeforces contribution is a tricky business

Can anyone explain problem D. I didn't understand the solution in editorial.