Problem4502--评委打分(二)

4502: 评委打分(二)

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

给定一个正整数 lns="http://www.w3.org/1998/Math/MathML">n,表示有 lns="http://www.w3.org/1998/Math/MathML">n 位评委对一名运动员的表现打出了分数。已知:

  • 如果去掉一个最高分,平均得分为 lns="http://www.w3.org/1998/Math/MathML">a
  • 如果不去掉任何分数,平均得分为 lns="http://www.w3.org/1998/Math/MathML">b
  • 如果去掉一个最低分,平均得分为 lns="http://www.w3.org/1998/Math/MathML">c

如果同时去掉一个最高分及一个最低分,平均得分应该是多少?

Input

第一行:单个整数表示 lns="http://www.w3.org/1998/Math/MathML">n
第二行:三个浮点数表示 lns="http://www.w3.org/1998/Math/MathML">alns="http://www.w3.org/1998/Math/MathML">b 与 lns="http://www.w3.org/1998/Math/MathML">c,每个浮点数的数字不超过 lns="http://www.w3.org/1998/Math/MathML">8 位。

  • lns="http://www.w3.org/1998/Math/MathML">1abc100




Output

一个浮点数:表示去掉一个最高分及一个最低分之后的平均分,四舍五入保留两位小数。

Sample Input Copy

3
40.00 60.00 85.00

Sample Output Copy

70.00

HINT

三名评委的打分为10.00, 70.00, 100.00

Source/Category