1800: 【CSP数组】摘苹果②█

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:7 Solved:5

Description

小红来到苹果园,帮园长摘苹果,园长请小红把摘完的苹果的最小的那个去掉(如果有多个最小的苹果,那么都要去掉),剩余的苹果算一下平均一个苹果有多重?(平均重量请保留 lns="http://www.w3.org/1998/Math/MathML">1 位小数)

Input

输入有 lns="http://www.w3.org/1998/Math/MathML">2 行:

第一行:一个整数 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">3n100 );

第二行: 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">n 个苹果一样重的情况)。

Output

去掉最小的苹果后,摘到的苹果的平均重量!

Sample Input Copy

5
3 1 2 1 3

Sample Output Copy

2.7