1 条题解

  • 0
    @ 2026-4-25 15:51:05

    #include <bits/stdc++.h>

    using namespace std;

    int main() { string s;

    getline(cin, s);
    
    int count = 0;
    
    for (int i = 0; i < s.size(); i++) {
      
        if (s[i] >= '0' && s[i] <= '9') {
            count++;
        }
    }
    
    
    cout << count << endl;
    return 0;
    

    }

    • 1

    信息

    ID
    12070
    时间
    1000ms
    内存
    128MiB
    难度
    1
    标签
    递交数
    25
    已通过
    12
    上传者