#T563. 字符串反转
字符串反转
Description
Little C enjoys writing words backwards. Now, given a line of text written by Little C, can you reverse each word and output them?
Input Format
The input contains multiple test cases. The first line is an integer T, representing the number of test cases, followed by T test cases.
Each test case occupies one line and contains multiple words. A line can have up to 1000 characters.
Output Format
For each test case, you should output the transformed text.
3
olleh !dlrow
I ekil .bulcmca
I evol .mca
hello world!
I like acmclub.
I love acm.
译文
CodesOnline