1 solutions

  • 0
    @ 2024-10-25 17:49:37

    #include <stdio.h> #include <string.h> int main() { int sum=0; int i; char s[1000]; fgets(s,1000,stdin); for(i=0;s[i]!='\0';i++){ if(s[i]>='0'&&s[i]<='9'){ sum++; } } printf("%d",sum); return 0; }

    Information

    ID
    6786
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    7
    Tags
    (None)
    # Submissions
    180
    Accepted
    36
    Uploaded By