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

[NOIP2013]记数问题

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

n,x=map(int,input().split())
list1=[]
for i in range(1,n+1):
    if str(x) in str(i):
        list1.append(str(i).count(str(x)))
print(sum(list1))

全部评论

相关推荐

06-02 15:17
门头沟学院 Java
心爱的idea:怎么会呢 应该是打招呼有问题 问就说实习6个月全国可飞随时到岗
点赞 评论 收藏
分享
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务