Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
7511 吴承熹 统计数字字符个数 C++ Wrong Answer 0 MS 264 KB 445 2025-05-03 09:16:19

Tests(0/10):


Code:

#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=0; while(a[i]!='\0'){ if(isdigit(a[i])){ b=b+1; } i++; } cout<<b; return 0; }


Run Info:

------Input------
This building is 400 meters high.
------Answer-----
3
------Your output-----
0