#Z14109. 整数的个数
整数的个数
Description
Given k (1 < k < 100) positive integers, where each number is between 1 and 10 (inclusive). Write a program to count the occurrences of 1, 5, and 10 among the given k positive integers.
Input Format
The input consists of two lines:
- The first line contains a positive integer
k. - The second line contains
kpositive integers, separated by spaces.
Output Format
The output consists of three lines:
- The first line shows the count of 1s.
- The second line shows the count of 5s.
- The third line shows the count of 10s.
5
1 5 8 10 5
1
2
1