結果

問題 No.993 青色
ユーザー HagianHagian
提出日時 2021-06-22 12:36:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 25 ms / 2,000 ms
コード長 205 bytes
コンパイル時間 335 ms
コンパイル使用メモリ 10,436 KB
実行使用メモリ 9,028 KB
最終ジャッジ日時 2023-09-05 12:58:07
合計ジャッジ時間 1,353 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
8,872 KB
testcase_01 AC 25 ms
8,868 KB
testcase_02 AC 25 ms
8,964 KB
testcase_03 AC 25 ms
8,916 KB
testcase_04 AC 24 ms
8,944 KB
testcase_05 AC 24 ms
9,028 KB
testcase_06 AC 24 ms
8,832 KB
testcase_07 AC 25 ms
8,968 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import re
S = input().rstrip()
S_ = [m.span() for m in re.finditer("ao",S)]
if len(S_) == 0:
    print(S) 
else:
    for i in range(len(S_)):
        s, e = S_[i]
        S = S[0:s]+"ki"+S[e:]
    print(S)
0