1812: 【CSP数组】 语文成绩▅

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:14 Solved:11

Description

给出 lns="http://www.w3.org/1998/Math/MathML">N ( lns="http://www.w3.org/1998/Math/MathML">5N150 )个人的语文成绩,求 lns="http://www.w3.org/1998/Math/MathML">N 个人的语文总分和平均分,并按成绩高低排序后输出。

Input

第 lns="http://www.w3.org/1998/Math/MathML">1 行:一个整数 lns="http://www.w3.org/1998/Math/MathML">N ;

第 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 个人的语文成绩。

Output

第 lns="http://www.w3.org/1998/Math/MathML">1 行:一个整数,为 lns="http://www.w3.org/1998/Math/MathML">N 个人的总分;

第 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">3 行: lns="http://www.w3.org/1998/Math/MathML">N 个空格隔开的整数,为从高到低输出的 lns="http://www.w3.org/1998/Math/MathML">N 个人的成绩。

Sample Input Copy

3
99 100 98

Sample Output Copy

297
99.00
100 99 98