1 solutions
-
0
Guest MOD
- 1
Information
- ID
- 438
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 4
- Tags
- (None)
- # Submissions
- 44
- Accepted
- 23
- Uploaded By
#include<bits/stdc++.h>
typedef long long ll;
using namespace std;
const int N=10010;
string a;
int cnt;
int main(){
cin.sync_with_stdio(false);
ios::sync_with_stdio(0);
getline(cin,a);
for(int i=0;i<a.size();i++){
if(a[i]!=' '){
cnt++;
}
}
cout<<cnt;
return 0;
}
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.