Reverse the list
Given n strings, you are asked to print them in reverse order.
The first line of the input contains a single integer n. The next n lines contain the n texts.
The program should output those strings in the reverse order.
Input | Output |
|---|---|
8 | Slim Shady |
Constraints
Time limit: 2 seconds
Memory limit: 512 MB
Output limit: 1 MB