#31755: python可以幫我看看嗎?


yuxuan0912 (李毓萱Laura)

學校 : 不指定學校
編號 : 197335
來源 : [1.34.135.237]
最後登入時間 :
2023-12-07 21:47:26
c381. 聖經密碼 -- 板橋高中教學題 | From: [1.34.135.237] | 發表日期 : 2022-08-17 19:33

while True:
    try:
        t,n=list(map(int,input().split()))
        stri=""
        for i in range(t):
            stri=(stri+input())
        x=list(map(int,input().split()))
        for j in x:
            print(stri[j-1],end='')
        k=input()
    except EOFError:
        break

 
#31804: Re: python可以幫我看看嗎?


cges30901 (cges30901)

學校 : 不指定學校
編號 : 30877
來源 : [101.136.203.77]
最後登入時間 :
2024-04-07 15:34:14
c381. 聖經密碼 -- 板橋高中教學題 | From: [39.8.167.128] | 發表日期 : 2022-08-20 16:09


  1.         for j in x:
                print(stri[j-1],end='')

  2.         k=input()

  1. 全部輸出完要換行
  2. 這行刪掉
 
#32228: Re: python可以幫我看看嗎?


yuxuan0912 (李毓萱Laura)

學校 : 不指定學校
編號 : 197335
來源 : [1.34.135.237]
最後登入時間 :
2023-12-07 21:47:26
c381. 聖經密碼 -- 板橋高中教學題 | From: [1.34.135.237] | 發表日期 : 2022-09-23 17:22


  1.         for j in x:
                print(stri[j-1],end='')

  2.         k=input()

  1. 全部輸出完要換行
  2. 這行刪掉

感謝

 
ZeroJudge Forum