fork download
  1. for _ in range(int(input())):
  2. l = list(map(int, input().split()))
  3. up = len(list(filter(lambda x: x > sum(l[1:])/l[0], l)))
  4. print("{:.3%}".format(up/len(l[1:])))
Success #stdin #stdout 0.02s 9496KB
stdin
1
1 0
stdout
100.000%