Arithmetic mean for figure skaters#7368

Arithmetic mean for figure skaters

1 saniye
128 megabayt
Çok kolay (≈850)

In a figure skating competition, judges assign scores to the athletes. A technical official removes all maximum and minimum scores, and the average of the remaining scores is calculated. This result is considered the athlete's final score. Determine the final score for each athlete.

Giriş

The first line contains two integers: the number of judges n~(0 < n \le 10) and the number of athletes m~(0 < m \le 100). The next lines contain integers each — the scores given by all judges for each athlete.

Çıktı

Print numbers in a single line, each rounded to two decimal places, representing the final score of each athlete.

Örnekler

Örnek 1

Loading
Loading