#50511: python


21422@chc.edu.tw (殷沒牙)

學校 : 不指定學校
編號 : 313278
來源 : [118.232.20.104]
最後登入時間 :
2025-09-26 18:37:40

import sys CODE = {'A':10, 'B':11, 'C':12, 'D':13, 'E':14, 'F':15, 'G':16, 'H':17, 'I':34, 'J':18, 'K':19, 'L':20, 'M':21, 'N':22, 'O':35, 'P':23, 'Q':24, 'R':25, 'S':26, 'T':27, 'U':28, 'V':29, 'W':32, 'X':30, 'Y':31, 'Z':33}

code_string = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' codeSum = []

set x1+x2

for i in range(26): x1 = int(CODE[code_string[i]]/10) x2 = CODE[code_string[i]]%10*9 codeSum.append( x1+x2 ) #start for s in sys.stdin: testID = list(s) checkSum = int(testID[8]) xN = 0 for i in range(7+1): xN += int(testID[i])*(8-i) for x in range(26): if (codeSum[x]+xN+checkSum)%10 == 0: word = code_string[x] print(word, end='') print()