1871: 【CSP二维数组】求各个科目成绩的平均分▅

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

Description

请从键盘读入一个整数 lns="http://www.w3.org/1998/Math/MathML">nlns="http://www.w3.org/1998/Math/MathML">n100),代表一个班级同学的人数,然后读入 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">1 位小数。

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+1 行,输入 lns="http://www.w3.org/1998/Math/MathML">n 个同学的语文、数学、英语成绩,每行输入一个同学的成绩,成绩用空格隔开!

Output

输出语文、数学、英语三科的平均成绩,分别用空格隔开,平均成绩保留 lns="http://www.w3.org/1998/Math/MathML">1 位小数!

Sample Input Copy

2
100 99 98
99 98 97

Sample Output Copy

99.5 98.5 97.5