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

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
登录
注册
题目详情题解(0)讨论(0)提交记录(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月全勤卷王秩序白银
    18阅读
    2回复
    0点赞
  • 题解

    #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

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

    ~~ ~~

    userId_undefined

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

    时间刺客空间掌握者出道萌新I/O·IO入门者循环·循环打卡人荣耀黄金
    4阅读
    0回复
    0点赞
首页