結果

問題 No.1335 1337
ユーザー shotoyooshotoyoo
提出日時 2021-01-15 21:21:38
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 346 bytes
コンパイル時間 376 ms
コンパイル使用メモリ 86,936 KB
実行使用メモリ 71,464 KB
最終ジャッジ日時 2023-08-17 15:47:37
合計ジャッジ時間 3,708 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,308 KB
testcase_01 AC 68 ms
71,352 KB
testcase_02 AC 68 ms
71,404 KB
testcase_03 AC 68 ms
71,352 KB
testcase_04 AC 67 ms
71,440 KB
testcase_05 AC 66 ms
70,996 KB
testcase_06 AC 67 ms
71,192 KB
testcase_07 AC 67 ms
71,380 KB
testcase_08 AC 67 ms
71,464 KB
testcase_09 AC 70 ms
71,288 KB
testcase_10 AC 69 ms
71,304 KB
testcase_11 AC 68 ms
71,356 KB
testcase_12 AC 69 ms
71,156 KB
testcase_13 AC 70 ms
71,196 KB
testcase_14 AC 68 ms
71,400 KB
testcase_15 AC 69 ms
71,380 KB
testcase_16 AC 68 ms
71,344 KB
testcase_17 AC 66 ms
71,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda : sys.stdin.readline().rstrip()

sys.setrecursionlimit(2*10**5+10)
write = lambda x: sys.stdout.write(x+"\n")
_print = lambda *x: print(*x, file=sys.stderr)

a = input()
s = input()
d = {}
for i in range(10):
    d[str(i)] = a[i]
ans = []
for c in s:
    if c in d:
        c = d[c]
    ans.append(c)
print("".join(ans))
0