average of array


Submit solution

Points: 50 (partial)
Time limit: 1.0s
Memory limit: 64M

Authors:
Problem type

題目說明

請將以下的值放入陣列中

15.6, 12, 84.2, 546, 95.22, 45, 362.21, 555.5, 75.2

輸入正整數n,輸出前n個項目的平均值,使用decimalformat至多輸出到小數點後第二位

輸入

正整數n

輸出

前n個項目的平均值

sample input1

3

sample output1

37.27

sample input2

5

sample output2

150.6

Comments

There are no comments at the moment.