D. 梦中统计

    Type: Default 1000ms 256MiB

梦中统计

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.

Description

Bessie 处于半梦半醒的状态。过了一会儿,她意识到她在数数,不能入睡。

Bessie的大脑反应灵敏,仿佛真实地看到了她数过的一个又一个数。她开始注意每一个数码($0 \ldots 9$):每一个数码在计数的过程中出现过多少次?

给出两个整数 $M$ 和 $N$ ($1 \leq M \leq N \leq 2 \times 10^9$ 以及 $N-M \leq 5 \times 10^5$),求每一个数码出现了多少次。

Input Format

第 $1$ 行: 两个用空格分开的整数 $M$ 和 $N$。

Output Format

第 $1$ 行: 十个用空格分开的整数,分别表示数码 $0 \ldots 9$ 在序列中出现的次数。

129 137
1 10 2 9 1 1 1 1 0 1

2025-10-25-课堂循环结构

Not Attended
Status
Done
Rule
XCPC
Problem
4
Start at
2025-10-25 11:15
End at
2025-10-25 13:15
Duration
2 hour(s)
Host
Partic.
43