题解 | #争夺前五名#pythonnumberone
争夺前五名
http://www.nowcoder.com/practice/cd052308a1c44a88ad00255f312c3e14
不愧是python,两行代码搞定
n = int(input())
print(" ".join(str(i) for i in sorted(list(map(int,input().split())),reverse=1)[0:5] ))
争夺前五名
http://www.nowcoder.com/practice/cd052308a1c44a88ad00255f312c3e14
不愧是python,两行代码搞定
n = int(input())
print(" ".join(str(i) for i in sorted(list(map(int,input().split())),reverse=1)[0:5] ))
相关推荐