1. JAVA, Till Fischer

/*

 ============================================================================

 Name            : Main.java

 Author            : Till Fischer

 Description    : 10370 - Above average

 Accepted        : Accepted

 Time            : 0.400

 ============================================================================

 */

import java.io.BufferedReader;

import java.io.BufferedWriter;

import java.io.IOException;

import java.io.InputStreamReader;

import java.io.OutputStreamWriter;

import java.util.Locale;

import java.util.Scanner;



public class Main {

    public static void main(String[] args) throws IOException {

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(System.out));

        Scanner scanner = new Scanner(reader);

        int cases = scanner.nextInt();

        int i,j, students, above;

        String formatString = "%.3f";

        float average, percentage;

        int[] studentsArray;

    

        for (i = 1; i <= cases; i++) {

            students = scanner.nextInt();

            studentsArray = new int[students];

            average = 0;

            above = 0;

            for(j = 0; j < students; j++) {

                studentsArray[j] = scanner.nextInt();

                average += studentsArray[j];

            }

            average /= (float)students;

            for(j = 0; j < students; j++) {

                if(studentsArray[j] > average) {

                    above++;

                }

            }

            percentage = (float)above/(float)students;

            percentage *= 100;

            writer.append(String.format(Locale.US,formatString,percentage) + "%\n");

        }

        //always be nice to streams!

        reader.close();

        writer.flush();

        writer.close();

    }

}