题解 | 排序

排序

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

n = int(input())
l = [int(i) for i in input().split()]
if input() == "0":
    l.sort()
else:
    l.sort(reverse=True)
print(" ".join(map(str,l)))

全部评论

相关推荐

Aaso:挺好的,早挂早超生
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务