Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
7515 邓小龙 统计数字字符个数 C++ Wrong Answer 0 MS 252 KB 470 2025-05-03 09:23:10

Tests(5/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[225]; int b=0; cin>>a; int i=0; cin.getline(a,225); while(a[i]!='\0'){ if(isdigit(a[i])){ b=b+1; } i++; } cout<<b; return 0; }


Run Info:

------Input------
hhhkjfhsi7738n00.uujd.com
------Answer-----
6
------Your output-----
0