简简单单
2026-07-30 18:20:18
发布于:广东
8阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,a[105];
cin>>n;
while(n--){ //正片开始
int b,cut=0;
cin>>b;
while(b!=0){
cut=cut+b%10; //数位之和
b=b/10;
}
if(cut%7==0) cout<<"Yes"<<endl; //判断与输出
else cout<<"No"<<endl;
}
return 0;
}
这里空空如也








有帮助,赞一个