#P5738. 【深基7.例4】歌唱比赛

【深基7.例4】歌唱比赛

Description

n(n100)n(n\le 100) students take part in a singing contest and receive scores from m(m20)m(m\le 20) judges. The score range is from 00 to 1010. 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 m2m-2 scores. What is the highest final score among all students? Keep the score to 22 decimal places.

Input Format

The first line contains two integers n,mn,m.
The next nn lines each contain mm 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