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