Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
155043 李沐阳 统计数字字符个数 C++ Accepted 1 MS 272 KB 232 2026-05-31 12:29:23

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main() { char a[256]={}; int sum=0,c=0; cin.getline(a,256); while(a[c]!='\0'){ if(a[c]<='9'&&a[c]>='0'){ sum++; } c++; } cout<<sum<<endl; return 0; }