1790: 【CSP数组】橘子称重▅

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

Description

学校买回来一大箱橘子,有 lns="http://www.w3.org/1998/Math/MathML">m 个( lns="http://www.w3.org/1998/Math/MathML">100m1000 ),橘子大小比较均匀,学校想称一下总共有多重,发现大称坏掉了还没有修好,只有一个小的弹簧秤。学校又不想分开称,那样太慢了。

小明想了一个办法,由于橘子大小比较均匀,可以从中拿 lns="http://www.w3.org/1998/Math/MathML">n 个出来(lns="http://www.w3.org/1998/Math/MathML">5n20),这 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">m ,小明称的橘子的个数 lns="http://www.w3.org/1998/Math/MathML">n 以及这 lns="http://www.w3.org/1998/Math/MathML">n 个橘子的重量,计算出这箱橘子总共约有多重(结果保留1位小数)。

Input

第一行 lns="http://www.w3.org/1998/Math/MathML">2 个整数 lns="http://www.w3.org/1998/Math/MathML">m 和 lns="http://www.w3.org/1998/Math/MathML">n ,分别代表一箱橘子的总个数以及小明称的橘子的个数;

第二行为 lns="http://www.w3.org/1998/Math/MathML">n 个橘子的重量(整数)。

Output

一箱橘子的重量(保留1位小数)。

Sample Input Copy

100 7
84 83 82 81 80 79 79

Sample Output Copy

8114.3