結果

問題 No.993 青色
ユーザー mlihua09mlihua09
提出日時 2020-08-28 00:06:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 340 bytes
コンパイル時間 287 ms
コンパイル使用メモリ 87,132 KB
実行使用メモリ 71,396 KB
最終ジャッジ日時 2023-08-08 14:41:05
合計ジャッジ時間 1,775 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,396 KB
testcase_01 AC 69 ms
71,276 KB
testcase_02 AC 71 ms
71,288 KB
testcase_03 AC 69 ms
71,288 KB
testcase_04 AC 70 ms
71,252 KB
testcase_05 AC 69 ms
71,180 KB
testcase_06 AC 70 ms
70,980 KB
testcase_07 AC 70 ms
71,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


S = input()

n = len(S)

i = 0

t = ''

while i < n:
    
    if i == n - 1:
        
        t += S[i]
    
    else:
        
        if S[i] == 'a' and S[i + 1] == 'o':
            
            t += 'ki'
            
            i += 1
            
        else:
            
            t += S[i]
            
    i += 1
    
print(t)
0