#include <stdio.h>
#define N 1005
const double eps = 1e-6;
double p[N], sum;
int main()
{
int t, n, count;
scanf("%d", &t);
while(t--)
{
scanf("%d", &n);
sum = count = 0;
for(int i = 0; i < n; i++)
{
scanf("%lf", &p[i]);
sum += p[i];
}
sum /= n;
for(int i = 0; i < n; i++)
{
if(p[i] - sum >= eps) count++;
}
printf("%.3lf%%\n", (double) count * 100 / n);
}
return 0;
}