시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 23016 8666 7674 39.657%

문제

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

입력

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

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

출력

각 케이스마다 한 줄씩 평균을 넘는 학생들의 비율을 반올림하여 소수점 셋째자리까지 출력한다.

예제 입력 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%
W3sicHJvYmxlbV9pZCI6IjQzNDQiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWQzYzlcdWFkZTBcdWM3NDAgXHViMTE4XHVhY2EwXHVjOWMwIiwiZGVzY3JpcHRpb24iOiI8cD5cdWIzMDBcdWQ1NTlcdWMwZGQgXHVjMGM4XHViMGI0XHVhZTMwXHViNGU0XHVjNzU4IDkwJVx1YjI5NCZuYnNwO1x1Yzc5MFx1YzJlMFx1Yzc3NCBcdWJjMThcdWM1ZDBcdWMxMWMgXHVkM2M5XHVhZGUwXHVjNzQwIFx1YjExOFx1YjI5NFx1YjJlNFx1YWNlMCBcdWMwZGRcdWFjMDFcdWQ1NWNcdWIyZTQuIFx1YjJmOVx1YzJlMFx1Yzc0MCBcdWFkZjhcdWI0ZTRcdWM1ZDBcdWFjOGMmbmJzcDtcdWMyYWNcdWQ1MDgmbmJzcDtcdWM5YzRcdWMyZTRcdWM3NDQgXHVjNTRjXHViODI0XHVjOTE4XHVjNTdjIFx1ZDU1Y1x1YjJlNC48XC9wPlxyXG4iLCJpbnB1dCI6IjxwPlx1Y2NhYlx1YzlmOCBc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