| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 77761 | 邓嘉瑶 | 统计数字字符个数 | C++ | Accepted | 0 MS | 268 KB | 235 | 2024-06-15 12:07:47 |
#include<bits/stdc++.h> using namespace std; int main(){ char s[257]; cin.getline(s,257); int len=strlen(s); int sum=0; for(int i=0;i<len;i++){ if(s[i]>='0'&&s[i]<='9'){ sum++; } } cout<<sum; return 0; }