1178: 过滤空格
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:208
Solved:165
Description
输入一段长度不超过200的字符串(包含空格),一句话中有可能出现多余的空格,将多余的空格进行过滤,只保留一个空格。
Input
一行,一个字符串,句子的头和尾都没有空格。
Output
一行,输出过滤后的句子。
Sample Input Copy
Hello world.
Sample Output Copy
Hello world.
HINT
1 ≤ 字符串长度 ≤ 200