fork download
  1. a = int(input())
  2. y = 0
  3. for i in range(a):
  4. b = list(map(int, input().split()))
  5. score = 0
  6. x = 0
  7. for j in b[1:]:
  8. score += j
  9. for j in b[1:]:
  10. if j > score/b[0]:
  11. x += 1
  12. y = x/b[0]*100
  13. print("%.3f%%" %y)
Success #stdin #stdout 0.02s 9284KB
stdin
2
9 100 99 98 97 96 95 94 93 91
1 1
stdout
55.556%
55.556%