結果
問題 | No.993 青色 |
ユーザー |
|
提出日時 | 2020-02-22 00:03:23 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 1,102 bytes |
コンパイル時間 | 2,302 ms |
コンパイル使用メモリ | 192,032 KB |
最終ジャッジ日時 | 2025-01-09 01:44:22 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using P = pair<ll, ll>; using Vec = vector<ll>; template <typename T> using Vec1 = vector<T>; template <typename T> using Vec2 = vector<Vec1<T> >; #define all(s) (s).begin(), (s).end() #define pb push_back #define mp make_pair #define fs first #define sc second template <typename T> bool chmax(T &a, const T b){if(a < b){a = b; return true;} return false;} template <typename T> bool chmin(T &a, const T b){if(a > b){a = b; return true;} return false;} template <typename T> ll pow2(const T n){return (1LL << n);} void sonic(){ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);} void setp(const ll n){cout << fixed << setprecision(n);} const ll INF = 1e9+1; const ll LINF = 1e18+1; const ll MOD = 1e9+7; //const ll MOD = 998244353; const ld PI = acos(-1); const ld EPS = 1e-11; int main(void){ string s; cin >> s; for(ll i = 0; i < s.size()-1; i++){ if(s[i] == 'a' && s[i+1] == 'o'){ s[i] = 'k'; s[i+1] = 'i'; } } cout << s << endl; return 0; }