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 ?
Round 948 Div 2 Solution Discussion (with Jan)