1855: 【例5.16】过滤空格
Memory Limit:64 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
过滤多余的空格。一个句子中也许有多个连续空格,过滤掉多余的空格,只留下一个空格。
Input
一行,一个字符串(长度不超过$200$),句子的头和尾都没有空格。
Output
过滤之后的句子。
Sample Input Copy
Hello world.This is c language.
Sample Output Copy
Hello world.This is c language.