| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 37074 | yejiaxiangBMT | 统计数字字符个数 | C++ | Accepted | 0 MS | 248 KB | 229 | 2024-01-19 15:00:09 |
#include<bits/stdc++.h> using namespace std; int main() { char s1[256]; cin.getline(s1,255); int S=0; for(int i=0;i<strlen(s1);i++){ if('0'<=int(s1[i])&&int(s1[i])<='9'){ S++; } } cout<<S; return 0; }