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

PROGRAMMING:There are two columns

Luz5年前 (2021-05-10)题库404
A column in class will cause great trouble, physical education teachers commonly used method is to let students 1, 2 report, and then report 2 students back one step. Now that we know the student number distribution of students in one column, can you output the student number of students in two columns?
###Input format:
The first line contains a number n, which means that there are n students in the class, and the class size is at least 1, not more than 100. The second line contains n numbers, representing the student number of each student in a column.
###Output format:
Please output the student number of each student in the last two columns in order, separated by spaces. The students in each column occupy two lines, and the students who report 1 are in the first line.
###Input example:
```in
five
2 1 3 5 4
```
###Output example:
```out
2 3 4
1 5
```







answer:If there is no answer, please comment