Reversing Numbers
Write a program which reads a sequence and prints it in the reverse order.
Time Limit | $1$ 秒/Second(s) | Memory Limit | $512$ 兆字节/Megabyte(s) |
提交总数 | $1006$ | 正确数量 | $539$ | "
裁判形式 | 标准裁判/Standard Judge | 我的状态 | 尚未尝试 |
难度 | 分类标签 | STL |
Reversing Numbers
Write a program which reads a sequence and prints it in the reverse order.
The input is given in the following format:
n
a1 a2 . . . an
n is the size of the sequence and ai is the ith element of the sequence.
5
1 2 3 4 5
5 4 3 2 1
n ≤ 100
0 ≤ ai < 1000