提交记录
#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"; } }