| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 75469 | 申明宇 | 统计数字字符个数 | C++ | Wrong Answer | 1 MS | 284 KB | 272 | 2024-05-26 18:20:32 |
#include<iostream> #include<cstdio> using namespace std; int main(){ char s[256]; int a=0; cin.getline(s,256); int i=0; while(s[i]!='\0'){ if(s[i]>'0'||s[i]<'9') a=a+1; i++; } cout<<a; return 0; }
------Input------
I have seen 3 persons over there.
------Answer-----
1
------Your output-----
33