Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
7501 | 吴承熹 | 统计数字字符个数 | C++ | Wrong Answer | 0 MS | 260 KB | 445 | 2025-05-03 07:46:01 |
#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 a[226]; int b=0; cin>>a; int i=1; while(a[i]!='\0'){ if(isdigit(a[i])){ b=b+1; } i++; } cout<<b; return 0; }
------Input------
This building is 400 meters high.
------Answer-----
3
------Your output-----
0