Type: Default 1000ms 256MiB

过滤空格2

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.

第16课——字符串强基

Not Claimed
Status
Done
Problem
7
Open Since
2024-2-22 0:00
Deadline
2024-7-10 23:59
Extension
24 hour(s)