2 solutions
- 1
Information
- ID
- 4022
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 1
- Tags
- # Submissions
- 54
- Accepted
- 39
- Uploaded By
#include #include using namespace std; string s; int ans=0; int main(){ getline(cin,s); for (int i=0;i<s.length();i++) if(s[i]!=' ') ans++; cout<<ans<<endl; }
By signing up a HFOJ universal account, you can submit code and join discussions in all online judging services provided by us.