Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
82035 何思佳 统计数字字符个数 C++ Accepted 1 MS 268 KB 231 2024-07-12 16:49:39

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; char s[256]; int main() { int sum=0; cin.getline(s,256); int len=strlen(s); for(int i=0;i<len;i++){ if(s[i]>=48&&s[i]<=57){ sum++; } } cout<<sum; return 0; }