C. 倒着输出

    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.

题目描述

读入 n 个整数,按相反的顺序输出。

输入格式

第一行一个整数 n。 第二行 n 个整数,用空格分隔。

输出格式

一行,n 个整数,用空格分隔,结尾换行。

样例输入

5
10 20 30 40 50
50 40 30 20 10

数据范围与提示

1 ≤ n ≤ 1000 每个数满足 -1000000000 ≤ a ≤ 1000000000

数组的下标从 0 开始,最后一个元素是 a[n-1]。输出时注意每两个数之间一个空格。

限制

1s, 256MiB

test

Not Attended
Status
Done
Rule
XCPC
Problem
3
Start at
2026-11-6 14:26
End at
2026-11-6 16:26
Duration
2 hour(s)
Host
Partic.
1