救救我!!!
查看原帖
救救我!!!
1313277
suyouyu1234楼主2024/12/1 19:40

提交记录

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int n;
    cin>>n;
    while(n--)
    {
        int x,tot=0;
        cin>>x;
        while(x)
        {
            tot+=x%10;
            x/=10;
        }
        if(tot%7==0)
		cout<<"yes\n";
        else
		cout<<"no\n";
    }
}
2024/12/1 19:40
加载中...