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

PROGRAMMING:bubble sort

Luz5年前 (2021-05-10)题库449
To sort the middle 10 elements of an array with 20 elements from large to small requires bubble sorting.
###Input format:
Enter 20 integers less than 50 in a row, and only one space can be used between the data.
###Output format:
Output the changed array directly, each number takes up 4 column width.
###Input example:
```in
5 4 3 2 1 8 5 2 9 6 3 1 4 7 4 1 2 3 4 5
```
###Output example:
```out
5 4 3 2 1 9 8 7 6 5 4 4 3 2 1 1 2 3 4 5
```






answer:If there is no answer, please comment