#include<bits/stdc++.h> using namespace std; int main() { int n; string strl; scanf("%d",&n); for(int i=1;i<=n;i++) { cin>>strl; int s1=0,s2=0; for(int j=0;j<strl.size();j++) { if(j%20) s1+=strl[j]-'0'; else s2+=strl[j]-'0'; } if(s1%11s2%11) { cout<<"Yes"<<endl; } else cout<<"No"<<endl; } return 0; }

0 comments

No comments so far...

Information

ID
1709
Time
1000ms
Memory
256MiB
Difficulty
10
Tags
# Submissions
2
Accepted
0
Uploaded By