Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
106482 | 胡海峰老师 | 统计数字字符个数 | C++ | Wrong Answer | 1 MS | 272 KB | 289 | 2025-01-16 11:49:26 |
#include <iostream> #include <cstdio> using namespace std; int main() { char s[1000001]; scanf("%s",s); int res=0; for(int i=0; s[i]!='\0' ; i++) { if( s[i]>='0' && s[i]<='9') res ++; } cout<<res; }
------Input------
I have seen 3 persons over there.
------Answer-----
1
------Your output-----
0