c = int(input())

for i in range(c):
    count = 0
    answer = 0
    score = list(map(int, input().split()))
        
    avg = sum(score[1:]) / score[0]
    for x in score[1:]:
        if x > avg:
            count += 1
            
    answer = (count / score[0]) * 100
    
    print('%.3f' % answer + "%")

+ Recent posts