Can anyone help me to understand the solve of this problem? http://codeforces.com/contest/304/problem/D I am new to this type of problem. So easy explanation will be very helpful.
Can anyone help me to understand the solve of this problem? http://codeforces.com/contest/304/problem/D I am new to this type of problem. So easy explanation will be very helpful.