Del revés


Submit solution

Points: 10
Time limit: 5.0s
Memory limit: 256M

Author:
Problem types
Allowed languages
C#, Go, Java

Donada una seqüència de números, mostrar-la en ordre invers.

Input Format

El primer número indica la quantitat de números que hi ha en la seqüència.

A continuació venen els números de la seqüència.

Constraints

-

Output Format

La seqüència de números en ordre invers, separats per espais.

Sample Input 0

5 
100 200 300 400 500

Sample Output 0

500 400 300 200 100

Sample Input 1

3 
23 56 45

Sample Output 1

45 56 23

Sample Input 2

1 
1000

Sample Output 2

1000

Sample Input 3

10 
3 1 4 2 6 5 4 7 6 9

Sample Output 3

9 6 7 4 5 6 2 4 1 3

Autoria: Gerard Falcó


Authorship: Gerard Falcó

CC BY-NC-SA 4.0