acgo题库
  • 首页
  • 题库
  • 学习
  • 天梯
  • 备赛

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
  • 竞赛
  • 讨论
  • 团队
登录
注册
题目详情提交记录(0)
  • 题解

    #include <iostream> #include <string> using namespace std; int main() { string a; getline(cin, a); int b = 0; for(char c : a) { if(c >= '0' && c <= '9') { b++; } } }

    userId_undefined

    Clementine

    枚举·枚举小能手数组·数组操作员模拟·模拟练习生循环·循环打卡人字符串·魔法使分支·分支解题者
    0阅读
    0回复
    0点赞
  • 题解

    userId_undefined

    ???

    空间掌握者题解仙人字符串·魔法使出道萌新GESP3级模拟·模拟练习生
    0阅读
    0回复
    0点赞
  • 答案

    #include <bits/stdc++.h> #define LL long long using namespace std; string c; int cnt; char s[10000]; int main() { cin.getline(s,10000); for(int i=0;s[i];i++){ if(s[i]>='0'&&s[i]<='9') cnt ++; } cout<<cnt; return 0; }

    userId_undefined

    张立兴业

    0阅读
    0回复
    0点赞
  • 答案

    #include <bits/stdc++.h> #define LL long long using namespace std; string c; int cnt; int main() { getline(cin,c); for(int i=0;i<c.size();i++){ if(c[i]>='0'&&c[i]<='9') cnt ++; } cout<<cnt; return 0; }

    userId_undefined

    张立兴业

    0阅读
    0回复
    0点赞
  • tj

    userId_undefined

    有事找大号

    0阅读
    0回复
    0点赞

共45条

  • 1
  • 2
  • 3
20条/页
跳至页
暂无数据

提交答案之后,这里将显示提交结果~

首页