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

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

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

    #include<bits/stdc++.h> using namespace std; int main(){ int m,n,cnt=0; cin>>n>>m; int a[n+1][n+1]={0}; for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ cin>>a[i][j]; if(a[i][j]%m==0){ cnt++; } } } cout<<cnt; }

    userId_undefined

    やがみ ライト

    出道萌新空间掌握者递归·套娃学徒贪心·贪心尝试者秩序白银快乐小狗
    9阅读
    1回复
    1点赞
  • # 官方题解|欢乐赛#41 T3

    T3.寻找倍数 题目思路 本题主要考查二维数组和双重循环这些语法知识,先开一个二维数组存A数组里面具体的值,然后再对整个数组里面的所有的元素看能不能被 mmm 整除即可。 参考代码

    userId_undefined

    桌子乱的反义词

    23阅读
    0回复
    0点赞
  • 坚决不用数组

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

    userId_undefined

    AAA忘川秋库的秋裤批发哥

    出道萌新时间刺客空间掌握者时空双修者荣耀黄金GESP4级
    9阅读
    0回复
    1点赞
  • 题解

    userId_undefined

    zsy

    题解仙人时空双修者BUG超度大师秩序白银快乐小狗
    6阅读
    0回复
    0点赞
  • 题解

    userId_undefined

    喵仔牛奶

    8月全勤卷王9月全勤卷王小有名气题解仙人荣耀黄金GESP5级
    3阅读
    0回复
    0点赞
  • 不想用数组

    #include<iostream> using namespace std; int main(){ int a,b,c,d=0; cin>>a>>b; for(int i=1;i<=a*a;i++){ cin>>c; if(c%b==0){ d++; } } cout<<d; return 0; }

    userId_undefined

    LS_YZY

    出道萌新题解仙人倔强青铜时空双修者模拟·模拟练习生快乐小狗
    1阅读
    0回复
    0点赞
暂无数据

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

首页