| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 111349 | 吴梓玄 | 统计数字字符个数 | C++ | Wrong Answer | 0 MS | 296 KB | 281 | 2025-03-01 17:08:26 |
#include <bits/stdc++.h> using namespace std; int main() { //string s; char s[300]; int n=0; //cin>>s; gets(s); //cout<<s; //int m=s.size(); int m=strlen(s); for(int i=0;i<m;i++){ if ('0'<=s[i] && s[i]<='9'){ n=n+1; } } cout<<n; return 0; }
------Input------
I have seen 3 persons over there.
------Answer-----
1
------Your output-----