Type: Default 1000ms 128MiB

过滤多余的空格(1)

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

说明

一个句子中也许有多个连续空格,过滤掉多余的空格,两个单词间只留下一个空格。

输入格式

一行,一个字符串(长度不超过 200),句子的头和尾都没有空格。

输出格式

过滤之后的句子。
Hello       world.This is             c language.
Hello world.This is c language.

来源

字符串

字符和字符串

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
12
Start at
2025-12-16 14:30
End at
2025-12-24 22:30
Duration
200 hour(s)
Host
Partic.
39