Run ID:82389

提交时间:2024-07-13 11:12:12

#include<bits/stdc++.h> using namespace std; int main() { strig s; getline(cin,s); int =s.length(c=0); fo(int i=0; i<b; i++) { if(s[i]==' '&&s[i+1]!=' '&&[i-1]!=0) c++; } cout<c+1; retur 0; }