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

PROGRAMMING:Real sort

Luz5年前 (2021-05-10)题库422
This problem requires programming, input n real numbers, use the pointer reference method to arrange them in the order from large to small.
###Input format:
Input the first line to give a positive integer n (2 ≤ n ≤ 10), input the second line to give n real numbers, separated by spaces.
###Output format:
Output n numbers in good order from large to small (with 2 decimal places reserved), with a space between each number and no space at the end of the line.
###Input example:
Here is a set of inputs. For example:
```in
five
3.2 5.4 6.12 2.51 4.23
```
###Output example:
The corresponding output is given here. For example:
```out
6.12 5.40 4.23 3.20 2.51
```







answer:If there is no answer, please comment