#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; }
By signing up a 追梦算法网 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 追梦算法网 universal account