Problem list
Log in
#r03219 · Online Judge > GoldOJ

Reverse the Order

Bronze III 2.0 s 256 MB

Given $N$ integers, print them in reverse of the input order, space-separated on one line.

Input

Line 1: $N$ ($1 \le N \le 1000$). Line 2: $N$ integers in $[-10000, 10000]$.

Output

Print the integers in reversed order.

Example 1

Input
5
3 5 1 9 2
Output
2 9 1 5 3

Example 2

Input
3
10 -5 20
Output
20 -5 10
Source
Online Judge > GoldOJ
Appears in
Not part of a ladder, contest or set yet.
Accepted 0 Submissions 0 Acceptance 0% Solvers 0

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code