3 条题解

  • 3
    @ 2026-8-27 11:26:55
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        string s;
        getline(cin,s);
        int count=0;
        for(int i=0;i<s.length();i++){
            if(s[i]!=' '){
                count++;
            }
        }
        cout<<count<<endl;
        return 0;
    }
    

【深基6.例5】[NOIP2018 普及组] 标题统计

信息

ID
154
时间
1000ms
内存
256MiB
难度
5
标签
递交数
161
已通过
57
上传者