Toggle navigation
编绘童年
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem3628--周周练-第8周:桶计数(1-10的次数)
3628: 周周练-第8周:桶计数(1-10的次数)
Time Limit:
1
Sec
Memory Limit:
128 MB
Submit:
44
Solved:
40
[
Status
] [
Submit
] [Creator:
]
Description
输入一个数字n,然后输入n个整数(每个整数都在1-10之间),请输出1-10分别出现了多少次。
Input
输入2行,第一行包括1个整数 n(1 ≤ n ≤ 100)。
第二行包括n个整数。
Output
输出一行,包括10个整数,分别表示1-10这十个数字分别出现的次数。
Sample Input
Copy
5 1 8 6 10 3
Sample Output
Copy
1 0 1 0 0 1 0 1 0 1
Source/Category
周周练-基础B