1 solutions

  • -1
    @ 2024-3-18 15:59:41

    #include #include

    using namespace std;

    string s;

    int main(){ // cin >> s; getline(cin,s); int ans = 0; for (int i=0;i<s.length();i++) if (s[i]>='0'&&s[i]<='9') ans++; cout << ans;

    }

    • 1

    Information

    ID
    6924
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    1
    Tags
    # Submissions
    58
    Accepted
    32
    Uploaded By