結果
| 問題 |
No.1335 1337
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-01-15 21:21:38 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 2,000 ms |
| コード長 | 346 bytes |
| コンパイル時間 | 314 ms |
| コンパイル使用メモリ | 81,920 KB |
| 実行使用メモリ | 51,968 KB |
| 最終ジャッジ日時 | 2024-11-26 13:01:48 |
| 合計ジャッジ時間 | 1,527 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 14 |
ソースコード
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))