| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 157587 | 丁昭臣 | 统计数字字符个数 | C++ | Wrong Answer | 1 MS | 264 KB | 216 | 2026-08-01 10:08:37 |
#include<iostream> #include<cstring> using namespace std; char a[233]; int b=0; int main(){ gets(a); int len=strlen(a); for(int i=1;i<len;i++){ if(a[i]>='0'&&a[i]<='9'){ b++; } } cout<<b; }
------Input------
778baidu.uuuu/++.987
------Answer-----
6
------Your output-----
5