Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
157585 王润中 统计数字字符个数 C++ Accepted 1 MS 268 KB 221 2026-08-01 10:07:54

Tests(10/10):


Code:

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