1 solutions

  • 0
    @ 2024-11-13 20:18:43
    #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;
    }
    
    
    • 1

    Information

    ID
    438
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    4
    Tags
    (None)
    # Submissions
    44
    Accepted
    23
    Uploaded By