Run ID:82387

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

#include<bits/stdc++.h> using namespase 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; }