結果

問題 No.1335 1337
ユーザー へくちゃんへくちゃん
提出日時 2021-02-03 18:53:37
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 27 ms / 2,000 ms
コード長 194 bytes
コンパイル時間 73 ms
コンパイル使用メモリ 10,676 KB
実行使用メモリ 9,228 KB
最終ジャッジ日時 2023-09-12 15:31:47
合計ジャッジ時間 1,543 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
9,168 KB
testcase_01 AC 26 ms
9,016 KB
testcase_02 AC 25 ms
9,208 KB
testcase_03 AC 25 ms
8,888 KB
testcase_04 AC 24 ms
9,228 KB
testcase_05 AC 24 ms
9,048 KB
testcase_06 AC 24 ms
9,200 KB
testcase_07 AC 25 ms
9,044 KB
testcase_08 AC 25 ms
9,084 KB
testcase_09 AC 25 ms
9,020 KB
testcase_10 AC 24 ms
9,052 KB
testcase_11 AC 24 ms
9,044 KB
testcase_12 AC 24 ms
9,204 KB
testcase_13 AC 25 ms
9,104 KB
testcase_14 AC 24 ms
9,036 KB
testcase_15 AC 24 ms
9,200 KB
testcase_16 AC 24 ms
9,220 KB
testcase_17 AC 25 ms
9,040 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import re
AllList = [str(x) for x in str(input())]
answer = str(input())
numbers = re.sub("\\D", "", answer)

for i in numbers:
    answer = answer.replace(str(i),AllList[int(i)])

print(answer)
0