| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 37073 | 张予馨 | 统计数字字符个数 | C++ | Accepted | 0 MS | 248 KB | 270 | 2024-01-19 14:59:34 |
#include<iostream> #include<cstring> #include<cstdio> #include<cstdlib> using namespace std; int main() { char s[260]; cin.getline(s,255); int cnt=0; for(int i=0;i<strlen(s);i++){ if(s[i]>='0'&&s[i]<='9'){ cnt++; } } cout<<cnt; return 0; }