結果
| 問題 |
No.993 青色
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-12 00:26:21 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 411 bytes |
| コンパイル時間 | 518 ms |
| コンパイル使用メモリ | 65,988 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-19 18:20:00 |
| 合計ジャッジ時間 | 978 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 7 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
void replace_all(string s, string from, string to) {
int start_pos = 0;
while ((start_pos = s.find(from, start_pos)) != string::npos) {
s.replace(start_pos, from.length(), to);
start_pos += to.length();
}
}
int main() {
string s;
cin >> s;
replace_all(s, "ao", "ki");
cout << s << endl;
return 0;
}