Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
79820 sh25_wuyy 统计数字字符个数 C++ 通过 0 MS 236 KB 238 2026-01-04 14:45:22

Tests(1/1):


#include<iostream> #include<cstring> using namespace std; int main(){ char s1[256]; cin.getline(s1,255); int S=0; for(int i=0;i<strlen(s1);i++){ if('0'<=int(s1[i])&&int(s1[i])<='9'){ S++; } }cout<<S; return 0; }


测评信息: