-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathp9.cpp
34 lines (31 loc) · 798 Bytes
/
p9.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/************************************************************************/
/* Name: Towfiqul Islam */
/* uva id: 448714 */
/* email id: towfiq.106@gmail.com */
/* institute: IIUC */
/* address: Chittagong, Bangladesh */
/* */
/************************************************************************/
#include<iostream>
#include<cstdio>
#include<string>
#include<stdlib.h>
#include<algorithm>
using namespace std;
int main ()
{
int t,a[10000],s,n,i;
scanf("%d",&t);
while(t--)
{
scanf("%d",&n);
s=0;
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
s=s+a[i];
}
printf("%.2lf\n",s*1.0/n);
}
return 0;
}