题解 | #[NOIP2010]数字统计#
[NOIP2010]数字统计
https://www.nowcoder.com/practice/179d9754eeaf48a1b9a49dc1d438525a
m,n=map(int,input().split()) s='' for i in range(m,n+1): s+=str(i) count1=s.count('2') print(count1)
[NOIP2010]数字统计
https://www.nowcoder.com/practice/179d9754eeaf48a1b9a49dc1d438525a
m,n=map(int,input().split()) s='' for i in range(m,n+1): s+=str(i) count1=s.count('2') print(count1)
相关推荐