提交时间:2023-06-10 15:40:04
运行 ID: 105169
#include<bits/stdc++.h> using namespace std; int main() { string st; getline(cin,st); int j=0; for(int i=1;i<=st.size();i++){ if(st[i]!=' ')j++; } cout<<j; return 0; }