G. 【例69.1】 过滤多余的空格

    Type: RemoteJudge 1000ms 64MiB

【例69.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.

说明

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

输入格式

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

输出格式

过滤之后的句子。

样例

Hello      world.This is    c language.
Hello world.This is c language.

2026-4-26递推练习

Not Attended
Status
Done
Rule
XCPC
Problem
9
Start at
2026-4-26 13:30
End at
2026-4-26 16:30
Duration
3 hour(s)
Host
Partic.
8