#include <bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
string str;
getline(cin,str);
for(int i = 0; i < str.size();i++){
if((str[i] == ' ' && str[i + 1] != ' ') || str[i] != ' '){
cout << str[i];
}
}
return 0;
}#include <bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
string s;
while(cin >> s){
cout << s << " ";
}
return 0;
}
0 回复
0 转发
0 喜欢
2 阅读



