Rosetta Problems

小明的幸运数

https://www.acwing.com/problem/content/6221