题解 | 排序

import sys

n = int(input())
l = list(map(int,input().split()))
op = int(input())

if op == 0:
    l=sorted(l)

elif op ==1:
    l=sorted(l,reverse=True)

for i in l:
    print(i,end = " ")

全部评论

相关推荐

点赞 评论 收藏
分享
10-10 11:38
已编辑
湖南理工大学 Java
小浪_Coding:多沟通叭, 公式简历+学历一般的话难找
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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