시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 256 MB2745781209108028640.270%

문제

대학생 새내기들의 90%는 자신이 반에서 평균은 넘는다고 생각한다. 당신은 그들에게 슬픈 진실을 알려줘야 한다.

입력

첫째 줄에는 테스트 케이스의 개수 C가 주어진다.

둘째 줄부터 각 테스트 케이스마다 학생의 수 N(1 ≤ N ≤ 1000, N은 정수)이 첫 수로 주어지고, 이어서 N명의 점수가 주어진다. 점수는 0보다 크거나 같고, 100보다 작거나 같은 정수이다.

출력

각 케이스마다 한 줄씩 평균을 넘는 학생들의 비율을 반올림하여 소수점 셋째 자리까지 출력한다. 정답과 출력값의 절대/상대 오차는 10-3이하이면 정답이다.

예제 입력 1

5
5 50 50 70 80 100
7 100 95 90 80 70 60 50
3 70 90 80
3 70 90 81
9 100 99 98 97 96 95 94 93 91

예제 출력 1

40.000%
57.143%
33.333%
66.667%
55.556%
W3sicHJvYmxlbV9pZCI6IjQzNDQiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWQzYzlcdWFkZTBcdWM3NDAgXHViMTE4XHVhY2EwXHVjOWMwIiwiZGVzY3JpcHRpb24iOiI8cD5cdWIzMDBcdWQ1NTlcdWMwZGQgXHVjMGM4XHViMGI0XHVhZTMwXHViNGU0XHVjNzU4IDkwJVx1YjI5NCBcdWM3OTBcdWMyZTBcdWM3NzQgXHViYzE4XHVjNWQwXHVjMTFjIFx1ZDNjOVx1YWRlMFx1Yzc0MCBcdWIxMThcdWIyOTRcdWIyZTRcdWFjZTAgXHVjMGRkXHVhYzAxXHVkNTVjXHViMmU0LiBcdWIyZjlcdWMyZTBcdWM3NDAgXHVhZGY4XHViNGU0XHVjNWQwXHVhYzhjIFx1YzJhY1x1ZDUwOCBcdWM5YzRcdWMyZTRcdWM3NDQgXHVjNTRjXHViODI0XHVjOTE4XHVjNTdjIFx1ZDU1Y1x1YjJlNC48XC9wPlxyXG4iLCJpbnB1dCI6IjxwPlx1Y2NhYlx1YzlmOCB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