返回题解分享
讨论 / 题解分享/ 帖子详情

作文标题 - 题解

#include <bits/stdc++.h>
#define int long long
#define endl '\n'
using namespace std;
signed main(){
string str;
getline(cin,str);
int cut=0;
for(int i=0;i<str.length();i++){
if(str[i]!=' ')
{ cut++;}}
cout<<cut<<endl;
return 0;
}
0 回复 0 转发 0 喜欢 4 阅读
回复 (0)
默认 最新
暂无回复,快来抢沙发!