come_int = int(input())
result_list = []
a = 0
for i in range(come_int):
score_list = list(map(int, input().split(' ')))
sudent_count = score_list[0]
mean = float((sum(score_list) - sudent_count) / sudent_count)
for x in score_list[1:]:
if x > mean:
a += 1
result_list.append(float(a / sudent_count * 100))
a = 0
for y in result_list:
print(f'{round(y, 3):.3f}%')
'알고리즘 > 심화1' 카테고리의 다른 글
백준 25206 python (0) | 2023.06.16 |
---|---|
백준 1316 python (0) | 2023.06.16 |
백준 1157 python (0) | 2023.06.15 |
백준 10988 python (0) | 2023.06.15 |
백준 2444 python (0) | 2023.06.15 |