题解 | #[NOIP2013]记数问题#

[NOIP2013]记数问题

https://www.nowcoder.com/practice/28b2d9f2bf2c48de94a1297ed90e1732

#借助count()实现
n,x = map(int,input().split())
ls = ''.join([str(i) for i in range(1,n+1)])
print(ls.count(str(x)))


全部评论

相关推荐

1 收藏 评论
分享
牛客网
牛客企业服务