12 条题解

  • 0
    @ 2024-4-11 22:55:51
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        string a; 
        string s;
        int b;cin>>b;//没用
        while(cin>>a){
            s+=a;
        }
        int number=0;
        for(int i=0;i<s.length();i++){
            if(s[i]!=' '){
            number++;
            }
        }
        cout<<number;
    }
    
    

    信息

    ID
    10
    时间
    1000ms
    内存
    256MiB
    难度
    4
    标签
    递交数
    1516
    已通过
    732
    上传者