Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
74209 胡海峰老师 破译邮件 Python3 Wrong Answer 34 MS 3788 KB 464 2024-05-24 14:32:11

Tests(0/1):


Code:

d ={} for i in range(1,27): d[str(i)]= chr( i+64) #9#23-9-12-12#19-20-5-1-12#1-20#12-5-1-19-20#15-14-5#10-5-23-5-12 a ="9#23-9-12-12#19-20-5-1-12#1-20#12-5-1-19-20#15-14-5#10-5-23-5-12" n = int(input()) for _ in range(n): b = input().split("#") res ='' for nums in b: letts = nums.split('-') for le in letts: #print(d[le],end=' ') res = res + d[le] res = res +" " print(res[:-1])


Run Info:

------Input------
10 1#2#3#4#5#6#7#8#9#10#11#12#13#14#15#16#17#18#19#20#21#22#23#24#25#26 11-26-4-5######12-2#17-18-19-20## #9-10-11##25#26#1#2#3-1-3-1# #################### 1-2-3-4-5-6-7-8-9-10-11-12-13-14-15-16-17-18-19-20-21-22-23-24-25-26 #####23-24-25-26#1#2#3#4#5#6-7-8-9-10########1-2-3-4-5-6-7-8-9-10-11-12-13-14-15-16-17-18-19-20-21-6 ################26#################### ########1-2##3-4################# 2-24 3#23
------Answer-----
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z KZDE LB QRST IJK Y Z A B CACA ABCDEFGHIJKLMNOPQRSTUVWXYZ WXYZ A B C D E FGHIJ ABCDEFGHIJKLMNOPQRSTUF Z AB CD BX C W
------Your output-----
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z