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

PROGRAMMING:The cognitive order of little Y Series

Luz5年前 (2021-05-10)题库384
It's the new semester again. The new primary school girls are coming again. The wolves in little Y's dormitory are ready to move again. All these new primary school girls are very beautiful. The wolves are dazzled, but they don't forget their "business". That is to score every passing primary school girl. Every primary school girl has a score n (1 < = n < = 100), But how can we look at such a mess? We'd better sort them from small to large. As a child who has learned C language, we can't help it.
###Input format:
First, enter a number T to indicate that there are t primary school girls.
Then enter t numbers to represent the scores of T primary school girls.
###Output format:
Output the scores of the T primary school girls in descending order.
###Input example:
```in
ten
30 56 48 27 13 85 79 68 42 57
```
###Output example:
```out
13 27 30 42 48 56 57 68 79 85
```
###Tips
Little y science popularization @:
There are many ways to sort, each of which has its own advantages and disadvantages,
Here are three simple sorting methods, http://10.7.0.39 :8080/acmhome/topicListAction.do?method=topicDetail&id=40288102414d74c4014155045e49046c
Besides, the running speed of these three sorting methods is different. Guess which one is the fastest and which one is the slowest. You can run it for a try_ ∩)O~






answer:If there is no answer, please comment