Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
88529 | 倪士燊 | 统计数字字符个数 | C++ | Wrong Answer | 1 MS | 272 KB | 314 | 2024-08-19 11:37:14 |
#include<bits/stdc++.h> using namespace std; char s[256]; int main(){ cin.getline(s,256); cin >> s; int n = strlen(s); int sum; for(int i = 0; i <= n-1; i++) { if(s[i] >= 48 && s[i] <= 57) { sum++; } } cout << sum; return 0; }
------Input------
I have seen 3 persons over there.
------Answer-----
1
------Your output-----
4195065