Rosetta Problems

从1到n整数中1出现的次数

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