题解 | #[NOIP2013]记数问题#
[NOIP2013]记数问题
https://www.nowcoder.com/practice/28b2d9f2bf2c48de94a1297ed90e1732
n,x = input().split() n = int(n) count = 0 for i in range(1,n+1): i = str(i) for j in i: if j == x: count += 1 print(count)
[NOIP2013]记数问题
https://www.nowcoder.com/practice/28b2d9f2bf2c48de94a1297ed90e1732
n,x = input().split() n = int(n) count = 0 for i in range(1,n+1): i = str(i) for j in i: if j == x: count += 1 print(count)
相关推荐