# -*- coding:utf-8 -*- class Solution: def NumberOf1Between1AndN_Solution(self, n): # write code here res = "".join([str(i) for i in range(1, n + 1)]) return res.count("1")
# -*- coding:utf-8 -*- class Solution: def NumberOf1Between1AndN_Solution(self, n): # write code here res = "".join([str(i) for i in range(1, n + 1)]) return res.count("1")