| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 80446 | 李雨昊 | 统计数字字符个数 | C++ | Wrong Answer | 1 MS | 276 KB | 231 | 2024-07-11 14:41:04 |
#include<cstring> #include<iostream> using namespace std; int main() { char a[1000001]; cin>>a; int b=0; b=strlen(a); int n=0; for (int i=0;i<=b;i++){ if(a[i]>=48 && a[i]<=57){ n++; } } cout<<n; }
------Input------
I have seen 3 persons over there.
------Answer-----
1
------Your output-----
0