#D12479. Rearranging a Sequence
Rearranging a Sequence
Rearranging a Sequence
Example
Input
5 3 4 2 5
Output
5 2 4 1 3
inputFormat
Input
5 3 4 2 5
outputFormat
Output
5 2 4 1 3
样例
5 3
4
2
5
5
2
4
1
3
</p>
Example
Input
5 3 4 2 5
Output
5 2 4 1 3
Input
5 3 4 2 5
Output
5 2 4 1 3
5 3
4
2
5
5
2
4
1
3
</p>
By signing up a OpenJudge universal account, you can submit code and join discussions in all online judging services provided by us.