Read an array of n integers and print the same array in reverse order.
The first line contains n.
The second line contains n integers.
Print the reversed array on one line, separated by spaces.
Write your solution, test it against custom input, then submit for a real verdict.
Your submissions, verdicts, drafts and contest score are tied to your account. Registration is free.
1 <= n <= 200000
5 1 2 3 4 5
5 4 3 2 1