Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
78934 石依灵 统计数字字符个数 C++ Time Limit Exceeded 1000 MS 264 KB 252 2024-06-29 14:01:04

Tests(0/10):


Code:

# include<iostream> using namespace std; char a[255]; int main(){ cin.getline(a,255); int x=0; int i=0; while(a[i]!='\0'){ if(a[i]>='0'&&a[i]<='9'){ x++; } } cout<<x; return 0; }