题解 | #[NOIP2013]记数问题#
[NOIP2013]记数问题
http://www.nowcoder.com/practice/28b2d9f2bf2c48de94a1297ed90e1732
a, b = map(int, input().split())
c = []
for i in range(1, a + 1):
c += list(str(i))
print(c.count(str(b)))
[NOIP2013]记数问题
http://www.nowcoder.com/practice/28b2d9f2bf2c48de94a1297ed90e1732
a, b = map(int, input().split())
c = []
for i in range(1, a + 1):
c += list(str(i))
print(c.count(str(b)))
相关推荐