1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| n = int ( input ()) for i in range (n): line = input () score = list (line.split()) su = 0 for j in score: su + = int (j) aver = (su - int (score[ 0 ])) / ( len (score) - 1 ) cnt = 0 for j in range ( 1 , len (score)): if int (score[j]) > aver: cnt + = 1 print ( "%.3f%%" % ((cnt * 100 ) / ( len (score) - 1 ))) |