题解 | #统计成绩#
统计成绩
http://www.nowcoder.com/practice/cad8d946adf64ab3b17a555d68dc0bba
直接用max,min,sum即可
while True:
try:
n = int(input())
arr = list(map(float, input().split()))
print('{:.2f} {:.2f} {:.2f}'.format(max(arr), min(arr), sum(arr) / n))
except:
break