Beautiful numbers CodeForces - 55D(数位DP)

NoSuchKey