結果
| 問題 |
No.1335 1337
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-01-28 19:12:46 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 480 bytes |
| コンパイル時間 | 103 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-12-29 22:47:26 |
| 合計ジャッジ時間 | 1,394 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 14 |
ソースコード
def main():
a = input()
s = input()
dic = {}
others = {}
for i in range(len(a)):
others = {str(i):a[i]}
dic.update(others)
#print(dic)
s2 = []
for j in s:
if j in dic:
s2.append(dic[j])
else:
s2.append(j)
print(s2)
#Aを辞書(key:アルファベット、value:0からの数字)
#for文でsがvalueに含まれる場合、keyと変換
if __name__ == '__main__':
main()