本文最后更新于:2025-05-25T19:26:47+08:00
无节操水三道题,加积分,找成就感。嘿嘿。。。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| #include<cstdio> int main() { int t,n; char s; scanf("%d",&t); getchar(); for(int i = 0;i < t;++i) { n = 0; while((s = getchar())!= '\n') { if(s <='9' && s>='0') ++n; } printf("%d\n",n); } return 0; }
|
hdu_2017字符串统计
https://noname007.github.io/2013/07/15/oj-hdu-2017.html