SPOJ problem PICAD
I have been trying to solve This problem unable to do it i looked at the solution but can't understand how this why is taking a factor of 2 helping ?
Codeforces Round 946 Solution Discussion