Run ID:82373

提交时间:2024-07-13 11:08:16

#include<bits/stdc++.h> using namespace std; int main(){ string s; int cl = 0,n = 0,sl =0; getline(cin,s); sl = s.size(); for(int i =0;i < sl;i++){ if(s[i] != ' '){ cl++; } } cout << cl+1; return 0; }