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