2955: 循环入门-计算输入的 n 个整数的平均值

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

Description

先输入一个正整数 n,再输入 n 个整数,使用循环计算这 n 个整数的平均值并输出(保留 2 位小数)。

Input

第一行输入正整数 n,第二行输入 n 个整数(空格分隔)

Output

一行,平均值(保留 2 位小数)

Sample Input Copy

3
1 2 3

Sample Output Copy

2.00

HINT

1≤n≤100,输入的整数范围[−1000,1000]