結果
問題 |
No.1335 1337
|
ユーザー |
|
提出日時 | 2024-04-05 10:53:56 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 2,000 ms |
コード長 | 697 bytes |
コンパイル時間 | 213 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-01 01:01:04 |
合計ジャッジ時間 | 1,338 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 14 |
ソースコード
def main(): A = input() S = input() T = [] for x in S: if x == "0": T.append(A[0]) elif x == "1": T.append(A[1]) elif x == "2": T.append(A[2]) elif x == "3": T.append(A[3]) elif x == "4": T.append(A[4]) elif x == "5": T.append(A[5]) elif x == "6": T.append(A[6]) elif x == "7": T.append(A[7]) elif x == "8": T.append(A[8]) elif x == "9": T.append(A[9]) else: T.append(x) T = "".join(T) print(T) if __name__ == "__main__": main()