题解 | #争夺前五名#
争夺前五名
http://www.nowcoder.com/practice/cd052308a1c44a88ad00255f312c3e14
此题n干扰项
while True:
try:
n=input()
scores=[]
score=input().split(" ")
scores=list(map(int,score))
scores.sort()
score_grade=scores[::-1]
for i in range(5):
print(score_grade[i],end=" ")
print()
except:
break