https://www.acmicpc.net/problem/4344
using System;
class Program
{
static void Main() {
string s=Console.ReadLine();
int n=int.Parse(s);
for(int i=0;i<n;i++){
string[] s1=Console.ReadLine().Split(' ');
int m=int.Parse(s1[0]);
int sum=0;
int count=0;
int[] arr=new int[m];
for(int j=0;j<m;j++){
arr[j]=int.Parse(s1[j+1]);
sum+=arr[j];
}
double ave=(double)sum/m;
for(int j=0;j<m;j++){
if(arr[j]>ave) count++;
}
Console.WriteLine("{0:F3}%",(double)count*100/m);
}
}
}