文章

326

粉丝

4

获赞

551

访问

240.0k

头像
BUG 题解:
P1299 小白赛
发布于 2026年2月
阅读数 597

while(1):
    try:
        n=int(input())
        num=list(map(int,input().split()))
        k=sorted(num)
        k1=sorted(num,reverse=True)
        if num==k:
            print("Ascending")
        elif num==k1:
            print("Descending order")
        else:
            print("The testing machine is out of order!")
    except:
        break
        
登录查看完整内容


登录后发布评论

暂无评论,来抢沙发