結果

問題 No.993 青色
ユーザー onsen_manjuuu
提出日時 2020-06-16 02:30:18
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 284 bytes
コンパイル時間 1,395 ms
コンパイル使用メモリ 167,232 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-03 11:44:49
合計ジャッジ時間 1,829 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>

using namespace std;
using ll = long long;


int main()
{
    string s; cin >> s;
    int n = s.size();
    for(int i = 0; i < n - 1; i++) {
        if(s.substr(i, 2) == "ao") {
            s[i] = 'k', s[i + 1] = 'i';
        }
    }
    cout << s << endl;
}
0