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

PROGRAMMING:Segment sort

Luz5年前 (2021-05-10)题库434
Enter 10 integers in an array of 10 to sort the first 5 numbers from small to large and the last 5 numbers from large to small.
###Input format:
Enter 10 integers.
###Output format:
The sorted array is divided by spaces.
###Input example:
```in
5 9 2 4 6 7 1 3 0 8
```
###Output example:
```out
2 4 5 6 9 8 7 3 1 0
```







answer:If there is no answer, please comment