s_a_b_e_ryyds @ 2022-04-16 14:13:34
n,m=input(),[]
ls=[str(i) for i in range(10)]
for i in n:
if i=="X":
m.append(10)
elif i in ls:
m.append(int(i))
x=0
for i in range(9):
x+=(i+1)*m[i]
x%=11
if x==m[-1]:
print("Right")
else:
n=n[:-1]
if x==10:
n+="X"
else:
n+=str(x)
print(n)
by s_a_b_e_ryyds @ 2022-04-17 22:02:45
大佬快来