一、题目要求
二、参考代码
sheet={0:'1',1:'0',2:'X',3:'9',4:'8',5:'7',6:'6',7:'5',8:'4',9:'3',10:'2'}
w=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2]
n=int(input())
c=0
for i in range(n):
add=0
s=input()
try:
t=int(s[:-1])
except:
print(s)
c+=1
continue
for i in range(len(s)-1):
add+=int(s[i])*w[i]
if sheet[add%11]!=s[-1]:
print(s)
c+=1
if c==0:
print('All passed')