//%%输出百分号
#include<stdio.h>
#include<stdlib.h>
int main()
{
int times,n,*p,i,count;
double aver;
scanf("%d",×);
while(times--){
scanf("%d",&n);
p = (int *)malloc(n*sizeof(int));
aver = 0;
for(i = 0;i<n;i++){
scanf("%d",&p[i]);
aver += p[i];
}
aver = aver *1.0 / n;
count = 0;
for(i = 0;i<n;i++)
if(p[i]>aver) count++;
printf("%.3lf%%\n",count*1.0/n*100);
}
return 0;
}