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

PROGRAMMING:New rules of campus singer competition

Luz5年前 (2021-05-10)题库403
Contestant No. 8 participated in the campus singer competition, programmed to read in 20 integers (between 0-100) and stored them in the array as judges' scores. The final score calculation rule: first calculate the average score of 20 numbers, then remove all the scores that are more than 10 points different from the average score, and finally take the average of the remaining scores as the final score. If there is no score left, the score is invalid.
###Input example:
```in
86 87 83 70 99 94 78 89 86 80 97 84 90 87 95 87 84 99 84 95
```
###Output example:
```out
Average score of all judges: 87.700
Disqualification score: 70 99
The final score: 87.412
```
###Input example:
```in
72 72 73 71 71 72 73 71 71 72 98 98 97 100 99 97 97 99 99 99
```
###Output example:
```out
The average score of all judges: 85.050
The score of disqualification: 72 72 73 71 71 72 98 97 100 99 97 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99
No qualified score
```






answer:If there is no answer, please comment