Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
127896 唐诗阳 统计数字字符个数 C++ Wrong Answer 0 MS 276 KB 395 2025-07-29 19:51:50

Tests(0/10):


Code:

#include<iostream> #include<cstdio> //scanf()\printf() #include<cstring> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ char s[226]; int x=0,a=0; cin>>s; for(int i=0;s[i]!='\0';i++) x++; for(int i=0;i<x;i++){ if(s[i]>='0' && s[i]<='9') a++; } cout<<a; return 0; }


Run Info:

------Input------
I have seen 3 persons over there.
------Answer-----
1
------Your output-----
0