-->
当前位置:首页 > 题库

PROGRAMMING:Word flipping

Luz5年前 (2021-05-10)题库383
###Problem description
Input a sentence (one line), flip each word in the sentence and output it.
###Enter a description
Only one line, a string, no more than 500 characters. Words are separated by spaces.
###Output description
Flip the string after each word, and the space between words should be consistent with the original.
###Sample input
```in
hello world
```
###Sample output
```out
olleh dlrow
```
###Sample input
```in
li hai la wo de guo
```
###Sample output
```out
il iah al ow ed oug
```






answer:If there is no answer, please comment