#C. 二级202112-3过滤多余的空格

    Type: Default 1000ms 128MiB

二级202112-3过滤多余的空格

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.

二级第7轮

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
5
Start at
2023-8-1 9:30
End at
2023-8-20 3:30
Duration
450 hour(s)
Host
Partic.
8