Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
163451 汪义罗 统计数字字符个数 C++ Accepted 1 MS 276 KB 235 2026-10-25 12:27:57

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ string n; getline(cin,n);//字符串 int i=0; int x=0; while(n[i]!='\0'){ if(n[i]>='0' and n[i]<='9'){ x++; } i++; } cout<<x; return 0; }