Little Fermat and digits sums

Problem Name:
Little Fermat and digits sums
Site:CodeForces
Links:
Tags: