#Z14103. 求整数的和与均值
求整数的和与均值
Description
Read in n (1 ≤ n ≤ 10000) integers and calculate their sum and average.
Input Format
The first line of input is an integer n, indicating there are n integers.
Lines 2 to n+1 each contain one integer.
The absolute value of each integer does not exceed 10000.
Output Format
Output one line, first the sum, then the average (rounded to 5 decimal places), with the two numbers separated by a single space.
4
344
222
343
222
1131 282.75000