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 ?
AtCoder Beginner Contest 483 discussion
ICPC NA North Central and South Division