#25795: <python> some errors, but couldn't find


changminhsun (cmh0624)

學校 : 國立東華大學
編號 : 82839
來源 : [134.208.32.246]
最後登入時間 :
2022-10-24 16:28:01
c381. 聖經密碼 -- 板橋高中教學題 | From: [123.194.181.37] | 發表日期 : 2021-06-23 11:38

while True:

    try:

        a, b = map(int, input().split())

        w = ""

        for i in range(a):

            w += input()

        n = list(map(int, input().split()))

        #print(n)

        #print(w)

        for i in n:

            print(w[i-1], end="")

        print()

        x = input()

        

        

        

    except:

        break

 
ZeroJudge Forum