| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 62528 | 张江鹏 | 统计数字字符个数 | C++ | Accepted | 1 MS | 264 KB | 269 | 2023-12-24 11:31:47 |
#include <iostream> #include <cstdio> #include <string> #include <cstring> using namespace std; int main() { int ans=0,m=0; char s[256]; gets(s); for(int i=0;i<strlen(s);i++) { if(s[i]>='0'&&s[i]<='9') ans++; } cout<<ans<<endl; return 0; }