1 条题解

  • 0
    @ 2025-1-10 17:08:05
    #include <bits/stdc++.h>
    using namespace std;
    
    
    int main() {
        string str;
        getline(cin, str);
    
        int count = 0;
        for(int i=0; i<str.size(); i++){
            if(str[i] >= '0' && str[i] <= '9'){
                count++;
            }
    
        }
        cout << count << endl;
    
        return 0;
    }
    

    信息

    ID
    121
    时间
    1000ms
    内存
    128MiB
    难度
    3
    标签
    递交数
    26
    已通过
    20
    上传者