시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 26175 9763 8591 39.151%

문제

대학생 새내기들의 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%
W3sicHJvYmxlbV9pZCI6IjQzNDQiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWQzYzlcdWFkZTBcdWM3NDAgXHViMTE4XHVhY2EwXHVjOWMwIiwiZGVzY3JpcHRpb24iOiI8cD5cdWIzMDBcdWQ1NTlcdWMwZGQgXHVjMGM4XHViMGI0XHVhZTMwXHViNGU0XHVjNzU4IDkwJVx1YjI5NCZuYnNwO1x1Yzc5MFx1YzJlMFx1Yzc3NCBcdWJjMThcdWM1ZDBcdWMxMWMgXHVkM2M5XHVhZGUwXHVjNzQwIFx1YjExOFx1YjI5NFx1YjJlNFx1YWNlMCBcdWMwZGRcdWFjMDFcdWQ1NWNcdWIyZTQuIFx1YjJmOVx1YzJlMFx1Yzc0MCBcdWFkZjhcdWI0ZTRcdWM1ZDBcdWFjOGMmbmJzcDtcdWMyYWNcdWQ1MDgmbmJzcDtcdWM5YzRcdWMyZTRcdWM3NDQgXHVjNTRjXHViODI0XHVjOTE4XHVjNTdjIFx1ZDU1Y1x1YjJlNC48XC9wPlxyXG4iLCJpbnB1dCI6IjxwPlx1Y2NhYlx1YzlmO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