Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
109281 陈铎文 统计数字字符个数 C++ Accepted 1 MS 276 KB 212 2025-02-08 09:30:46

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ char ch[1000000]; cin.getline(ch,256); int n=0,s=0; while(ch[n]!='\0'){ if(ch[n]>='0' and ch[n]<='9'){ s++; } n++; } cout<<s; }