#B. [NOIP2010 普及组] 数字统计

    Type: Default 1000ms 256MiB

[NOIP2010 普及组] 数字统计

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.

题目描述

请统计某个给定范围 [L,R][L, R] 的所有整数中,数字 22 出现的次数。

比如给定范围 [2,22][2, 22],数字 22 在数 22 中出现了 11 次,在数 1212 中出现 11 次,在数 2020 中出现 11 次,在数 2121 中出现 11 次,在数 2222 中出现 22 次,所以数字 22 在该范围内一共出现了 66 次。

输入格式

22 个正整数 LL 和 RR,之间用一个空格隔开。

输出格式

数字 22 出现的次数。

2 22

6

2 100
20

提示

1≤L≤R≤1000001 ≤ L ≤R≤ 100000。

王钰涵测试题目

Not Claimed
Status
Done
Problem
4
Open Since
2025-11-8 0:00
Deadline
2025-11-16 23:59
Extension
24 hour(s)