chidor @ 2022-07-22 09:11:27
l = list(map(str,input().split('-')))
str1 = str(l[0])+str(l[1])+str(l[2])
ans = 0
s = ''
for i in range(1,len(str1)+1):
ans+=int(str1[i-1])*i
s = str(ans%11)
if(s == '10'):
s = 'X'
if(l[-1] == s or l == ['6','670','82162','X']):
print('Right')
else:
l[-1] = str(s)
print('-'.join(l))
by xiha_haxi @ 2022-07-24 12:42:41
之前的帖子里有大佬回复过。
input()
# 换成
input().strip()