#P5738. 【深基7.例4】歌唱比赛
【深基7.例4】歌唱比赛
Description
students take part in a singing contest and receive scores from judges. The score range is from to . A student’s final score is obtained by removing the highest score and the lowest score among the judges’ scores, then taking the average of the remaining scores. What is the highest final score among all students? Keep the score to decimal places.
Input Format
The first line contains two integers .
The next lines each contain integers, representing the scores.
Output Format
Output the highest final score among the students, rounded to two decimal places.
7 6
4 7 2 6 10 7
0 5 0 10 3 10
2 6 8 4 3 6
6 3 6 7 5 8
5 9 3 3 8 1
5 9 9 3 2 0
5 8 0 4 1 10
6.00
Hint
Translated by ChatGPT 5
京公网安备 11011102002149号