- C++
过滤多余的空格 邪修解法
- @ 2026-3-18 19:55:06
#include<bits/stdc++.h>
using namespace std;
int main()
{
string s;
while(cin>>s)
{
cout << s << ' ';
}
return 0;
}
4 条评论
-
tfxuxinbo LV 6 MOD @ 2026-7-6 13:22:09和我不谋而合
-
@ 2026-5-13 19:37:00getline(cin,s) -
@ 2026-5-10 16:05:226
-
@ 2026-3-18 19:55:42
题目:#P398. 【例69.1】 过滤多余的空格
- 1