tests = int(input()) for test in range(tests): [students, *score] = map(lambda s: int(s), input().split(' ')) avg = sum(score) / students higher = len(list(filter(lambda x: x > avg, score))) print("{:.3f}%".format(higher/students * 100))