zylolk @ 2021-08-12 22:34:31
a=input()
num=0
j=1
for i in a:
if i=="-":
None
elif i=="X":
sb=10
elif int(i)>=0 and int(i)<=9:
if j<=9:
num=num+int(i)*j
j+=1
else:
sb=int(i)
if num%11==sb:
print("Right")
else:
b=""
for i in range(12):
b=b+a[i]
b+=str(num%11)
print(b)
第4个测点,输入6-670-82162-X,输出Right 自己测试输出Right,但是,洛谷却:RE
by yxpxa @ 2021-09-20 21:58:14
这是python代码吧