Type: Default 1000ms 256MiB

数组逆序重存放

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

【题目描述】

将一个数组中的值按逆序重新存放。例如,原来的顺序为8,6,5,4,1。要求改为1,4,5,6,8。

【输入】

输入为两行:第一行数组中元素的个数n(1<n<100),第二行是n个整数,每两个整数之间用空格分隔。

【输出】

输出为一行:输出逆序后数组的整数,每两个整数之间用空格分隔。

【输入样例】

5
8 6 5 4 1

【输出样例】

1 4 5 6 8

【来源】

一本通在线评测

B班第五天测试

Not Attended
Status
Done
Rule
Ledo
Problem
11
Start at
2025-7-26 7:45
End at
2025-7-26 7:57
Duration
0.2 hour(s)
Host
Partic.
8