結果
問題 |
No.993 青色
|
ユーザー |
|
提出日時 | 2020-02-21 21:21:56 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 366 bytes |
コンパイル時間 | 1,537 ms |
コンパイル使用メモリ | 165,644 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-08 20:29:25 |
合計ジャッジ時間 | 1,953 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 WA * 1 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll=long long; int main(){ string s; cin>>s; for (int i = 0; i < s.size(); ++i) { if(s[i]=='a'){ ++i; if(i>=s.size())break; if(s[i]=='o'){ s[i-1]='k'; s[i]='i'; } } } cout<<s<<endl; return 0; }