Home => ProblemSet => 1.7-27:单词翻转
Problem1148--1.7-27:单词翻转

1148: 1.7-27:单词翻转

Time Limit: 1 Sec  Memory Limit: 128 MB  Submit: 0  Solved: 3
[ Submit ] [ Status ] [ Creator: ][ 参考程序 ]

Description

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

Input

只有一行,为一个字符串,不超过500个字符。单词之间以空格隔开。

Output

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

Sample Input Copy

hello world

Sample Output Copy

olleh dlrow

Source/Category