Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
111347 吴梓玄 统计数字字符个数 C++ Wrong Answer 0 MS 284 KB 213 2025-03-01 16:56:37

Tests(0/10):


Code:

#include <bits/stdc++.h> using namespace std; int main() { string s; int n=0; cin>>s; int m=s.size(); for(int i=0;i<m;i++){ if (48<=char(s[i])<=57){ n=n+1; } } cout<<n; return 0; }


Run Info:

------Input------
I have seen 3 persons over there.
------Answer-----
1
------Your output-----