-->
当前位置:首页 > 题库

PROGRAMMING:Are you in line?

Luz5年前 (2021-05-10)题库421
This problem requires writing a program to store the input $$n $$integers into the array $$a $, and judge whether they are arranged in the order from large to small?
###Input format:
Enter a positive integer $$n $$($$1 / Le n / Le 100 $$) on line 1 and $$n $$integers separated by spaces on line 2. The topic guarantees that the data does not exceed the range of long integers.
###Output format:
If the $$n $$integers are arranged in descending order, "yes" is output in one line; otherwise, "no" is output in one line.
###Input sample 1:
```in
six
1 3 6 40 12 50
```
###Output sample 1:
```out
No
```
###Input sample 2:
```in
five
10 8 8 3 1
```
###Output sample 2:
```out
Yes
```






answer:If there is no answer, please comment