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

PROGRAMMING:Calculate the score

Luz5年前 (2021-05-10)题库392
In some competitions, there are several judges scoring the contestants. The scoring rule is to remove the highest score and the lowest score from the scores given by the judges, and then calculate the average score for the contestants. Now let's write a program to replace this complicated work.
###Input format:
In the first line, enter an integer n (3 < = n < = 20) as the given number of fractions, and in the second line, give n real numbers greater than or equal to 0 and less than or equal to 100 as fractions.
###Output format:
Output the score, the lowest score and the highest score respectively in one line.
The two numbers are separated by a space.
The score is rounded to retain the whole part, and the lowest and highest scores retain one decimal place.
###Input example:
```in
five
67.5 43.6 56.78 89.7 99.2
```
###Output example:
```out
71 43.6 99.2
```







answer:If there is no answer, please comment