Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
157604 汪明轩 统计数字字符个数 C++ Accepted 1 MS 264 KB 257 2026-08-04 14:25:36

Tests(10/10):


Code:

#include<iostream> #include<cstring> char a[260]; using namespace std; int main(){ gets(a); int s=0; int len=strlen(a); for(int i=0;i<len;i++){ if(a[i]>='0'&&a[i]<='9'){ s++; } } cout<<s; return 0; }