Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
144370 万骏博 统计数字字符个数 C++ Wrong Answer 0 MS 268 KB 226 2026-01-21 20:58:13

Tests(2/10):


Code:

#include <bits/stdc++.h> using namespace std; string s,c; int i,kk; int main(){ getline(cin,c); i=c.size(); for(int j=0;j<i-1;j++){ if(c[j]>='0'&&c[j]<='9'){ kk++; } } cout<<kk; return 0; }


Run Info:

------Input------
778baidu.uuuu/++.987
------Answer-----
6
------Your output-----
5