結果

問題 No.993 青色
ユーザー yakkiyakki
提出日時 2020-02-22 15:05:22
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 945 bytes
コンパイル時間 1,229 ms
コンパイル使用メモリ 120,720 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-17 23:10:12
合計ジャッジ時間 1,760 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 2 ms
5,376 KB
testcase_04 AC 2 ms
5,376 KB
testcase_05 AC 2 ms
5,376 KB
testcase_06 AC 2 ms
5,376 KB
testcase_07 AC 2 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<bitset>
#include<set>
#include<map>
#include<stack>
#include<queue>
#include<deque>
#include<list>
#include<iomanip>
#include<cmath>
#include<cstring>
#include<functional>
using namespace std;

#define repr(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define rep(i, n) repr(i, 0, n)
#define INF 2e9
#define MOD 1000000007
//#define MOD 998244353
#define LINF (long long)4e18
#define jck 3.141592

using ll = long long;
using Pi = pair<int,int>;
using Pl = pair<ll,ll>;

vector<ll> divisor(ll n){
    vector<ll> s;
    for(ll i = 2; i*i <= n; i++){
        if(n % i == 0){
            s.push_back(i);
            s.push_back(n/i);
        }
    }
    return s;
}


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

    

0