文章

311

粉丝

4

获赞

434

访问

52.8k

头像
BUG 题解:
P1299 小白赛
发布于2026年2月5日 19:47
阅读数 112

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
        
登录查看完整内容


登录后发布评论

暂无评论,来抢沙发