Toggle navigation
万里ACM
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
[
ProblemSet
Status
Ranklist
OI Ranklist
Statistics
]
Login
Problem M: 字符串逆序输出
Problem M: 字符串逆序输出
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
605
Solved:
368
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
输入一个字符串,以换行符号作为结束(字符串长度不超过50)将输入内容倒序输出。
注意:字符串中可能有空格。
Sample Input
Copy
flow up
Sample Output
Copy
pu wolf
HINT
用gets或者getchar输入字符串