| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 83827 | sh25_huangse | 统计数字字符个数 | C++ | 通过 | 0 MS | 252 KB | 220 | 2026-02-02 21:17:42 |
#include<bits/stdc++.h> using namespace std; int main(){ string s; getline(cin,s); int k=0; for(int i=0;i<s.size();++i){ if(s[i]>='0'&&s[i]<='9') ++k; } cout<<k; return 0; }