5015 - Average   

Description

Calculating the average is an easy work, but how many digits after decimal point need to show is an annoying problem.

SSLin is another TA of algorithm course, and his professor might want to see the average of grades with 5 digits after decimal point, and before submit grades to online system, the average of grades need to round to integer for convenience. 

SSLin do not want to calculate the average again and again. Therefore, he asks Tiyano to write a program to calculate the average grade after given x digits after decimal. However, everyone knows that Tiyano is very very lazy, he also puts this problem into execrise and waiting for your answer.

Input

The first line has a number T which is the total number of testcase

For each testcase, there are 2 values n <= 1000 represents the number of scores and 0 <= x <= 12 is the digits after decimal point of average in output. 

And the following line contains n scores range from 0 to 100.

Output

For each testcase, print the average value rounding to x digits after decimal point in a line.

Sample Input  Download

Sample Output  Download

Tags




Discuss