| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 72226 | 胡海峰老师 | 破译邮件 | Python3 | Wrong Answer | 33 MS | 3788 KB | 790 | 2024-05-04 14:40:06 |
""" 4 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 1-14-4#12-5-1-22-5#20-8-5#13-21-19-5-21-13#9-14#20#13-9-14-21-20-5-19 1-6-20-5-18#20-8-5#15-16-5-14-9-14-7#15-6#20-8-5#5-24-8-9-2-9-20-9-15-14 7-15-15-4#12-21-3-11 """ n = int(input()) d ={} for i in range(1,27): d[str(i)]= chr( i+64) for _ in range(n): words = input().split('-') for i in range(len(words)): if '#' in words[i]: words[i] = words[i].split('#') for j in range( len(words[i])): words[i][j] = d[ words[i][j]] res ='' for ele in words: if type(ele)==type([]): res = res + ' '.join(ele) else: res = res + d[ele] # res = " ".join(words) print(res) # # print(d)
------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