Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
134171 鲁博睿 统计数字字符个数 C++ Wrong Answer 1 MS 268 KB 239 2025-10-25 21:57:25

Tests(7/10):


Code:

#include <bits/stdc++.h> using namespace std; char a[260]; int main(){ cin.getline(a,255); int sum=0; for(int i=0;i<=a[i];i++) { if(a[i]>='0' && a[i]<='9'){ sum++; } } cout<<sum; return 0; }


Run Info:

------Input------
He only watches TV for 30 minutes a day.Tom watches TV for 40 minutes a day.
------Answer-----
4
------Your output-----
2