2021级《程序设计原理及C语言》练习题

J. Replace blanks

单点时限: 2.0 sec

内存限制: 512 MB

Write a program to copy its input to its output, replacing each string of one or more blanks by a single blank.

You can assume that the input string does not exceed $100$, only contains letters of both cases, digits, and white space.

样例

Input
a          a
Output
a a
Input
     a     a     
Output
 a a