Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
88526 倪士燊 统计数字字符个数 C++ Wrong Answer 1 MS 260 KB 281 2024-08-19 11:35:58

Tests(0/10):


Code:

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


Run Info:

------Input------
I have seen 3 persons over there.
------Answer-----
1
------Your output-----