问题1263--Super Girls

1263: Super Girls

[命题人 : ]
时间限制 : 1.000 sec  内存限制 : 64 MB

题目描述

Super girls is well-known to young men. But how to choose the super girls? We can see from the Hunan TV that there are many judges mark to the girls. If a girl gets marks of 95 ,100,85 and 95. Her score is 95---(95+95)/2--- because the top mark 100 and the bottommost 85 should take out.

输入

This problem contains multiple test cases! Each test case one line starts with an integer n( the number of judges,3<=n<=100) and then n marks(between 0 and 100).

输出

For each test case output on a single line with the last score of the girl. You should reserve the score 2 decimal digits.

样例输入 Copy

3 99 98 97
4 100 99 98 97

样例输出 Copy

98.00
98.50

来源/分类

yehr