Toggle navigation
HUSTOJ
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem3460--字符串中的空格移位
3460: 字符串中的空格移位
Time Limit:
1
Sec
Memory Limit:
128 MB
Submit:
6
Solved:
6
[
Status
] [
Submit
] [Creator:
]
Description
输入一个字符串,将其中的所有空格都移到最前面,然后输出。
Input
一个字符串。如:a□b□c(为了能看清空格,□代表一个空格,但实际测试数据中不用□表示空格)
Output
空格全部移到了串前的字符串。如:□□abc
Sample Input
Copy
a b c
Sample Output
Copy
abc
Source/Category
czos
入门