Grade Point Average
题号:NC221176
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

As soon as Moca entered the university last year as a freshman, she was told that the competition is fierce and everyone was desperately trying to improve their grades. As a result, in the last academic term, Moca studied just as hard as she did in high school.

The college will award scholarships based on the average score of the previous academic term. Unfortunately, someone has the same average score as Moca because the average score is calculated rounding down to only 1 decimal places. For example, Ran's average score is and Moca's average score is , but apparently Moca's average score is higher.

Can you help Moca calculate her average score rounding down to k decimal places?

输入描述:

The first line contains two integers n,k  -- the number of courses and the number of decimal places.

The second line contains  integers   -- the score of each course.

输出描述:

Print one real number in a line that denotes Moca's average score. Notice that your answer must contain k decimal places.
示例1

输入

复制
3 10
94 100 99

输出

复制
97.6666666666