Problem T: 8-数组-数字归类 Problem T: 8-数组-数字归类
Time Limit: 1 Sec Memory Limit: 128 MB
Submit: 94 Solved: 38
[Submit] [Status] [Web Board] [Creator:]Description
一个数里面若含有数字1,则归类到1字类,含有数字2,则归类到2字类,所以一个数可能同时归类到不同的数字类。对于0、1、2、3、4、5、6、7、8、9这十个数字类,因研究需要,急于想知道某一堆数中,究竟归类到这些数字类的个数。
Sample Input
123 456 175 2 61 9998 12 5053 382
Sample Output
0: 1
1: 4
2: 4
3: 3
4: 1
5: 3
6: 2
7: 1
8: 2
9: 1
[Submit][Status]