Problem E of yesterdays contest
Can anyone explain me how binary search will lead to answer.
https://codeforces.me/problemset/problem/1100/E
ICPC NA North Central and South Division