結果

問題 No.993 青色
ユーザー ysystem7
提出日時 2020-04-18 11:37:08
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 295 bytes
コンパイル時間 858 ms
コンパイル使用メモリ 69,816 KB
最終ジャッジ日時 2025-01-09 21:07:28
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
#include<string>
using namespace std;

int main(){
    string s;
    cin>>s;
    int k=0;
    while(k<7){
        if(k<6&&s[k]=='a'&&s[k+1]=='o'){
            s[k]='k';
            s[k+1]='i';
            k+=2;
        }else k++;
    }
    cout<<s<<endl;
}
0