- 【例34.3】 统计数字字符个数
111
- 2025-3-17 17:37:28 @
#include<bits/stdc++.h>
using namespace std;
int cnt;
char c;
int main(){
while(scanf("%c",&c)!=EOF){
if(c>='0'&&c<='9') cnt++;
}
cout<<cnt;
return 0;
}
0 comments
No comments so far...
Information
- ID
- 120
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 5
- Tags
- # Submissions
- 85
- Accepted
- 35
- Uploaded By