- 【例34.3】 统计数字字符个数
111
- 2025-3-17 17:37:26 @
#include<bits/stdc++.h>
using namespace std;
int main(){
char c;
int len,cnt;
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