• 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;
}

1 条评论

  • @ 2026-3-18 19:55:42

    题目:#P398. 【例69.1】 过滤多余的空格

    • 1