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

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

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

    #include<bits/stdc++.h> using namespace std; using namespace std; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ int x; int sum; sum=0; cin>>x; while(x!=0){ sum+=x%10; x/=10; } if(sum%7==0){ cout<<"Yes"<<endl; } else cout<<"No"<<endl; } return 0; }

    userId_undefined

    智慧达达(1)

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

    #include<iostream> using namespace std; int main(){ int a,b,c; cin>>a; for(int i=1;i<=a;i++){ cin>>b; c=0; while(b!=0){ c=c+b%10; b=b/10; } if(c%7==0){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; } } return 0; }

    userId_undefined

    LS_YZY

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

    ~~ ~~

    userId_undefined

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

    7月全勤卷王秩序白银时间刺客空间掌握者循环·循环打卡人I/O·IO入门者
    21阅读
    0回复
    0点赞
  • 题解

    userId_undefined

    zsy

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

    userId_undefined

    徐面包是小笼包

    出道萌新分支·分支解题者递归·套娃学徒倔强青铜I/O·IO入门者
    7阅读
    0回复
    0点赞
  • 题解,直接复制

    #include <iostream> using namespace std; int main(){ int n; cin>>n; int a; int sum; for (int i=1;i<=n;i++){ int sum=0; cin>>a; while (a>0){ sum=sum+a%10; a=a/10; } if (sum%7==0){ cout<<"Yes"; cout<<endl; } else{ cout<<"No"; cout<<endl; } } return 0; }

    userId_undefined

    (皮皮虾)老流氓林克+跑刀的蜂医

    出道萌新小有名气空间掌握者倔强青铜格式·格式排版员I/O·IO入门者
    0阅读
    0回复
    0点赞
  • 120%AC

    userId_undefined

    李伙子ia

    9月全勤卷王10月全勤卷王时间刺客空间掌握者时空双修者倔强青铜
    0阅读
    0回复
    0点赞
暂无数据

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

首页