Run ID:120953
提交时间:2025-06-02 12:53:15
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ char m[256]; int b=0; cin.getline(m,256); int a=0; while(m[a]) { if(m[a]>='0'&&m[a]<='9') b++; a++; } cout<<b<<endl; return 0; }