Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i=input
- s=sum
- t=[]
- for n in range(int(i())):
- m,*o=i().split(' ')
- t.append((s(float(y) for y in o)/len(o),m))
- t.sort()
- print(('{}\n'*5).format(t[-1][1],t[-1][0],t[0][1],t[0][0],s(x for x,y in t)/(n+1)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement