Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
155100 杨金卓 统计数字字符个数 C++ Accepted 1 MS 268 KB 240 2026-05-31 14:24:36

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; char s[257]; int main(){ cin.getline(s,255); int cnt=0; for(int i=0;s[i]!='\0';i++){ if(s[i]>='0'&&s[i]<='9'){ cnt++; } } cout<<cnt; return 0; }