n=input() c1=list(map(int,input().split())) op=input() if op==1: print(' '.join(sorted([str(i)for i in c1],reverse=True))) else: print(' '.join(sorted([str(i)for i in c1])))
点赞

相关推荐

点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务