题目描述
删去多余的空格
样例
in:
hello Ruined. This is my wrold.But you can see me.
out:
hello Ruined. This is my wrold.But you can see me.
算法
(string 技巧) $O(n)$
时间复杂度
参考文献
C++ 代码
#include<bits/stdc++.h>
using namespace std;
int main(){
string s;
while(cin >> s)
cout << s << " ";
return 0;
}