BD. 【例69.1】 过滤多余的空格
【例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.
说明
一个句子中也许有多个连续空格,过滤掉多余的空格,只留下一个空格。
输入格式
一行,一个字符串(长度不超过 ),句子的头和尾都没有空格。
输出格式
过滤之后的句子。
样例
Hello world.This is c language.
Hello world.This is c language.
2025年夏令营新人班【查】6
- Status
- Done
- Problem
- 86
- Open Since
- 2025-7-12 0:00
- Deadline
- 2025-8-23 23:59
- Extension
- 24 hour(s)