1615: 求n个同学的总分和平均分

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

Description

 输入n个同学的成绩,求他们的总成绩和平均成绩!



Input

第一行,输入一个整数n          (2<n<100)

第二行,共n个整数a          (0<=a<=100)

Output

输出有2行,

第一是总分,

第二行是平均分。(保留1位小数)

Sample Input Copy

5 
100 90 84 100 100

Sample Output Copy

474 
94.8 

Source/Category