#A. 数组逆序输出

    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个数打印出来,已知整数不超过100个。也就是说,按输入相反顺序打印这n个数。

输入格式

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

输出格式

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

输入样例数据 1

5

1 2 3 4 5

输出样例数据 1

5 4 3 2 1

数据范围与提示

1<n<100

二级第3轮

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
5
Start at
2023-7-28 9:30
End at
2023-8-19 1:30
Duration
520 hour(s)
Host
Partic.
10