last digit sum-confusion

please can anyone help me understand the editorial of the problem : last digit sum

link: http://discuss.codechef.com/questions/4079/lastdig-editorial

1 Like