Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
134119 王丞杰 统计数字字符个数 C++ Wrong Answer 1 MS 272 KB 222 2025-10-25 17:32:24

Tests(1/10):


Code:

#include<bits/stdc++.h> using namespace std; char str1[255]; int main(){ cin>>str1; int a=0; int len=strlen(str1); for(int i=0;i<len;i++){ if(str1[i]>='0' || str1[i]<='9'){ a++; } } cout<<a; }


Run Info:

------Input------
This building is 400 meters high.
------Answer-----
3
------Your output-----
4