Problem1584--【例70.3】 单词翻转

1584: 【例70.3】 单词翻转

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 64 MB

Submit

Description

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

Input

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

Output

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

Sample Input Copy

hello world

Sample Output Copy

olleh dlrow

HINT

[md] [/md]