BUG 题解:
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
登录后发布评论
暂无评论,来抢沙发