結果

問題 No.1335 1337
コンテスト
ユーザー Meso Meso
提出日時 2024-04-21 14:47:20
言語 Python3
(3.14.2 + numpy 2.4.0 + scipy 1.16.3)
結果
AC  
実行時間 32 ms / 2,000 ms
コード長 166 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 193 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-10-13 13:34:06
合計ジャッジ時間 1,654 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

A = list(input())
S = list(input())

ans = ""

for s in S:
    if not s.isdigit():
        ans += s
    else:
        s = int(s)
        ans += A[s]

print(ans)
     
0