这都能上黄???
2025-07-10 22:38:29
发布于:江苏
13阅读
0回复
0点赞
说白了
#include<bits/stdc++.h>
using namespace std;
int main(){
string a;
getline(cin,a);
a.erase(remove_if(a.begin(),a.end(),[](char c){return c==' ';}),a.end());
cout << a.length();
return 0;
}
这里空空如也
有帮助,赞一个