#C45. Reverse Strings

    ID: 48044 Type: Default 1000ms 256MiB

Reverse Strings

Reverse Strings

You are given a list of strings. Your task is to reverse each individual string and output them in the same order.

Task: For the given list of n strings, reverse every string. For example, if the input string is hello, the output will be olleh.

Note: The reversal must preserve the order of the strings in the list. All characters, including spaces and special characters, should be reversed.

The problem can be formulated as follows:

Given a sequence of strings \( s_1, s_2, \ldots, s_n \), produce a sequence \( r_1, r_2, \ldots, r_n \) where \( r_i \) is the reverse of \( s_i \).

inputFormat

The first line of input contains an integer n representing the number of strings. The next n lines each contain a single string.

outputFormat

Output n lines, each line containing the reversed version of the corresponding input string.

## sample
1
hello
olleh

</p>