Type: Default 1000ms 256MiB

单词翻转

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

【题目描述】

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

【输入格式】

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

【输出格式】

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

【样例数据】

hello world
olleh dlrow

字符串单元小练习

Not Attended
Status
Done
Rule
OI
Problem
7
Start at
2025-11-29 17:45
End at
2025-11-29 20:45
Duration
3 hour(s)
Host
Partic.
10