I've stumbled on something in Problem A that feels right intuitively, but I don’t have a proof of its validity yet …
If someone can help to explain :
https://mirror.codeforces.com/contest/2144/submission/338745804
why does it work ?
I've stumbled on something in Problem A that feels right intuitively, but I don’t have a proof of its validity yet …
If someone can help to explain :
https://mirror.codeforces.com/contest/2144/submission/338745804