题解 | #争夺前五名#

争夺前五名

https://www.nowcoder.com/practice/cd052308a1c44a88ad00255f312c3e14

num_cnt = input()
num_list = list(map(int, input().split()))
num_list.sort()
num_list.reverse()

for num in num_list[:5]:
    print(num, end = " ")

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务