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

PROGRAMMING:Statistical score 2

Luz5年前 (2021-05-10)题库414
Statistics of student performance (large data scale, efficient input and efficient algorithm, mainly card time)
This problem requires the preparation of procedures to read n students' percentile score, statistical distribution of five point score. The conversion rules from the hundred mark system to the five mark system are as follows:
A score greater than or equal to 90;
B is less than 90 and greater than or equal to 80;
C is less than 80 and greater than or equal to 70;
D is less than 70 and greater than or equal to 60;
E is less than 60.
###Input format:
Enter a positive integer n (≤ 6000000) in the first line, that is, the number of students; The second line gives the percentile scores (non negative integers) of n students separated by spaces.
###Output format:
Output the number distribution of five point scores corresponding to a, B, C, D and E in one line. The numbers are separated by spaces, and there should be no extra spaces at the end of the line.
###Input example:
Here is a set of inputs. For example:
```in
seven
77 54 92 73 60 65 69
```
###Output example:
The corresponding output is given here. For example:
```out
1 0 2 3 1
```







answer:If there is no answer, please comment