LADDER
Home
ProblemSet
Source/Category
Contest
Status
Ranklist
F.A.Qs
参考答案
Login
Register
1724: 单词倒序
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:1
Solved:1
Submit
Submit Record
Statistics
ShowOff!
Description
输入单行英文句子,里面包含英文字母,空格以及.? 三种标点符号,请将句子内每个单词进行倒序,并输出倒序后的语句
Input
输入字符串S,S的长度1≤N≤100
Output
输出逆序后的字符串
补充说明:
标点符号左右的空格>=0,单词间空格 >0
Sample Input
Copy
yM eman si boB.
Sample Output
Copy
My name is Bob.
Source/Category
信息学奥赛一本通
for语句
洛谷
Submit
Submit Record
Statistics
ShowOff!