数字统计
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
【题目描述】
请统计某个给定范围 的所有整数中,数字 2 出现的次数。
比如给定范围 ,数字 2 在数 中出现了 次,在数 中出现 次,在数 中出现 次,在数 中出现 次,在数 中出现 次,所以数字 2 在该范围内一共出现了 次。
【输入】
输入共 行,为两个正整数 和 ,之间用一个空格隔开。
【输出】
输出共 行,表示数字 出现的次数。
【输入样例】
2 22
【输出样例】
6
【提示】
样例 #2:
2 100
样例 #2:
20
【来源】
一本通在线评测
1219签到加作业
- Status
- Done
- Rule
- IOI
- Problem
- 7
- Start at
- 2025-12-19 10:00
- End at
- 2025-12-19 12:15
- Duration
- 2.3 hour(s)
- Host
- Partic.
- 44