#39609: 求救 NA92%


76075charlie@gmail.com (大蛋餅加冰塊)

學校 : 不指定學校
編號 : 265739
來源 : [116.241.53.40]
最後登入時間 :
2024-03-16 22:53:18
a020. 身分證檢驗 | From: [110.30.17.255] | 發表日期 : 2024-03-11 11:01

dict1={'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':24,'Q':24,'R':25,'S':26,'T':27,'U':28,'V':29,'W':32,'X':30,'Y':31,'Z':33}

n=input()

out=0

num10=dict1[n[0]]//10

num1=dict1[n[0]]%10

halftotal=(num1*9)+(num10)+int(n[9])

for i in range (1,9):

 out+=int(n[i])*(9-i)

output=halftotal+out

if output %10==0:

 print("real")

else:

 print("fake")

 
#39726: Re: 求救 NA92%


cges30901 (cges30901)

學校 : 不指定學校
編號 : 30877
來源 : [39.15.1.195]
最後登入時間 :
2024-12-23 09:25:32
a020. 身分證檢驗 | From: [101.136.241.180] | 發表日期 : 2024-03-23 14:43

dict1={'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':24,'Q':24,'R':25,'S':26,'T':27,'U':28,'V':29,'W':32,'X':30,'Y':31,'Z':33}

n=input()

out=0

num10=dict1[n[0]]//10

num1=dict1[n[0]]%10

halftotal=(num1*9)+(num10)+int(n[9])

for i in range (1,9):

 out+=int(n[i])*(9-i)

output=halftotal+out

if output %10==0:

 print("real")

else:

 print("fake")


P是23

 
ZeroJudge Forum