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