結果
問題 | No.993 青色 |
ユーザー |
![]() |
提出日時 | 2020-02-22 19:57:53 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 557 bytes |
コンパイル時間 | 1,747 ms |
コンパイル使用メモリ | 170,572 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-09 20:46:36 |
合計ジャッジ時間 | 2,507 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<int,int>; #define rep(i,n) for(int i=0;i<n;i++) const ll mod = ll(1e9) + 7; const int INF = 1<<29; int main(){ string s; cin >> s; vector<char> t; rep(i,s.size()){ if (i<s.size()-1 && s[i]=='a' && s[i+1]=='o'){ t.push_back('k'); } else if (s[i-1]=='a' && s[i]=='o'){ t.push_back('i'); } else { t.push_back(s[i]); } } rep(i,t.size()) cout << t[i]; cout << endl; return 0; }