| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 111348 | 吴梓玄 | 统计数字字符个数 | C++ | Wrong Answer | 0 MS | 292 KB | 222 | 2025-03-01 16:56:58 |
#include<iostream> using namespace std; int main(){ char a[260]; cin.getline(a,255); int sum=0; for(int i=0;a[i]!='\0';i++) { if(a[i]>='0' && a[i]<='9'){ sum++; } } cout<<sum; return 0; }
------Input------
I have seen 3 persons over there.
------Answer-----
1
------Your output-----