wzm1233 @ 2021-10-30 20:34:44
in:0-670-82162-4
out:Right
代码:
x=input()
sum=int(x[0])+int(x[2])*2+int(x[3])*3+int(x[4])*4+int(x[6])*5+int(x[7])*6+int(x[8])*7+int(x[9])*8+int(x[10])*9
sum=int(sum)%11
if sum==10:
sum="X"
if sum==x[12]:
print("Right")
else:
print(x[0]+x[1]+x[2]+x[3]+x[4]+x[5]+x[6]+x[7]+x[8]+x[9]+x[10]+x[11]+str(sum))