Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
109274 | 陈铎文 | 统计数字字符个数 | C++ | Wrong Answer | 1 MS | 284 KB | 200 | 2025-02-08 09:23:45 |
#include<bits/stdc++.h> using namespace std; int main(){ char ch[1000000]; cin>>ch; int n=0,s=0; while(ch[n]!='\0'){ if(ch[n]>='0' and ch[n]<='9'){ s++; } n++; } cout<<s; }
------Input------
I have seen 3 persons over there.
------Answer-----
1
------Your output-----
0