-->
当前位置:首页 > 题库

PROGRAMMING:Statistics

Luz5年前 (2021-05-10)题库448
Caisz has a daughter who has been to kindergarten. In kindergarten, she learned to count, but she can't do statistics yet. Now given a number string, the length is less than 100, count the number of 0, 1, 2,... 9. Well, you can help her.
###Input format:
Input multiple groups of digital string, the length is less than 100;
###Output format:
The number of each number in the number string, number statistics according to 0, 1, 2, 3.. 9 sequential output
###Input example:
Here is a set of inputs. For example:
```in
eleven thousand one hundred and twenty-two trillion and two hundred and thirty-three billion four hundred and forty-four million four hundred and forty-five thousand and seventy-eight
```
###Output example:
The corresponding output is given here. For example:
```out
0:1
1:3
2:3
3:2
4:5
5:1
6:0
7:1
8:1
9:0
```







answer:If there is no answer, please comment