3074: Text Reverse 1062
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:admin
Submit:2
Solved:1
Description
伊格内修斯喜欢以相反的方式写字。给定由 Ignatius 编写的单行文本,您应该反转所有单词然后输出它们。
Input
输入包含几个测试用例。输入的第一行是一个整数 T,它是测试用例的数量。T 测试用例如下。
每个测试用例包含一个包含多个单词的单行。一行最多有 1000 个字符。
Output
对于每个测试用例,您应该输出已处理的文本。
Sample Input Copy
3
olleh !dlrow
m'I morf .udh
I ekil .mca
Sample Output Copy
hello world!
I'm from hdu.
I like acm.
HINT
Click to View Spoiler