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 Hi! My name is What? My name is Who? My name is Chika-chika Slim Shady | Slim Shady Chika-chika My name is Who? My name is What? My name is Hi! |
Constraints
Time limit: 2 seconds
Memory limit: 512 MB
Output limit: 1 MB