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

PROGRAMMING:Array element exchange

Luz5年前 (2021-05-10)题库363
Array element exchange, requirements: (1) the largest element and the first element exchange (2) the smallest element and the last element exchange.
###Input format:
Enter a line of string (composed of different integers separated by spaces)
###Output format:
First, output the initial string in the form of array (one number per line), and then output the exchanged string in the form of array (one number per line).
###Input example:
```in
2 9 0 10
```
###Output example:
```out
two
nine
0
ten
ten
nine
two
0
```







answer:If there is no answer, please comment