5181: 【70课】【3408】单词翻转

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:100 Solved:28

Description

输入一个句子(一行),将句子中的每一个单词翻转后输出。

Input

只有一行,为一个字符串,不超过 500个字符。单词之间以空格隔开(可能不止一个)。注意字符串开头和结尾可能有空格。

Output

翻转每一个单词后的字符串,单词之间的空格需与原文一致。

Sample Input Copy

hello world

Sample Output Copy

olleh dlrow