Run ID:120951

提交时间:2025-06-02 12:49:30

#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 a=0; int b=0; cin.getline(m,256) while(m[a]) { if(m[a]>='0'&&m[a]<='9') b++; a++; } cout<<b<<endl; return 0; }