acgo题库
  • 首页
  • 题库
  • 学习
  • 竞赛
  • 讨论
  • 排行
  • 团队
  • 备赛专区

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

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

    #include <iostream> using namespace std; int main() { int n; cin >> n; // 读取正整数的个数n int count = 0; // 用于统计美丽数字的数量,初始化为0 for (int i = 0; i < n; i++) { int num; cin >> num; // 依次读取每个正整数 if (num % 9 == 0 && num % 8 != 0) { // 判断是否是9的倍数且不是8的倍数 count++; // 如果是,美丽数字数量加1 } } cout << count << endl; // 输出美丽数字的数量 return 0; }

    userId_undefined

    法兰西玫瑰

    138阅读
    1回复
    4点赞
  • 123

    #include<iostream> using namespace std; int main(){ int n,s,x; cin>>n; for(int i=1;i<=n;i++){ cin>>s; if(s%9==0&&s%8!=0){ x++; } } cout<<x; return 0; }

    userId_undefined

    曹汇煦

    循环·循环打卡人
    6阅读
    1回复
    1点赞
  • 题解

    userId_undefined

    grey

    倔强青铜
    9阅读
    0回复
    1点赞
  • 题解

    #include<iostream> using namespace std; int main(){ int a,v=0,b; cin>>a; for(int i=1;i<=a;i++){ cin>>b; if(b%9==0&&b%8!=0){ v++; } } cout<<v; return 0; }

    userId_undefined

    LS_YZY

    出道萌新题解仙人倔强青铜时空双修者模拟·模拟练习生快乐小狗
    8阅读
    0回复
    0点赞
  • AC答案

    userId_undefined

    AC是最好的

    5阅读
    0回复
    0点赞
  • 题解

    userId_undefined

    zsy

    7月全勤卷王8月全勤卷王题解仙人时空双修者快乐小狗秩序白银
    3阅读
    0回复
    0点赞
  • very easy(闭眼做)

    #include<bits/stdc++.h> using namespace std; int main(){ int n,a,cnt=0; cin>>n; for(int i=1;i<=n;i++){ cin>>a; if(a%9==0&&a%8!=0){ cnt++; } } cout<<cnt; return 0; }

    userId_undefined

    智慧达达(1)

    出道萌新时间刺客空间掌握者7月全勤卷王秩序白银快乐小狗
    3阅读
    0回复
    0点赞
  • 难看数字

    userId_undefined

    智慧达达(1)

    出道萌新时间刺客空间掌握者7月全勤卷王秩序白银快乐小狗
    1阅读
    0回复
    0点赞
  • python

    userId_undefined

    无敌的鳖佬仔给老爷爷猜猜被

    7月全勤卷王时间刺客空间掌握者循环·循环打卡人I/O·IO入门者荣耀黄金
    1阅读
    0回复
    0点赞
暂无数据

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

首页