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

PROGRAMMING:Sorting exercise 2

Luz5年前 (2021-05-10)题库461
Enter n data. Output results in descending order
###Input format:
Each test contains two lines, which are integer n (0 < n < 100) and N original data.
###Output format:
Output sorted results (1 space between data, no extra space at the end).
###Input example:
```in
six
3 15 31 2 8 26
four
9 8 7 6
five
4 3 2 9 7
```
###Output example:
```out
31 26 15 8 3 2
9 8 7 6
9 7 4 3 2
```







answer:If there is no answer, please comment