https://www.acmicpc.net/problem/4344
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner s=new Scanner(System.in);
int n=s.nextInt();
for(int i=0;i<n;i++){
int m=s.nextInt();
int sum=0;
int count=0;
int arr[]=new int[m];
for(int j=0;j<m;j++){
arr[j]=s.nextInt();
sum+=arr[j];
}
double ave=(double)sum/m;
for(int j=0;j<m;j++){
if(arr[j]>ave) count++;
}
System.out.format("%.3f%c\n",(double)count*100/m,'%');
}
}
}