結果
| 問題 |
No.725 木は明らかに森である
|
| コンテスト | |
| ユーザー |
michonz4
|
| 提出日時 | 2019-12-01 08:50:23 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 263 bytes |
| コンパイル時間 | 374 ms |
| コンパイル使用メモリ | 56,772 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-21 04:20:14 |
| 合計ジャッジ時間 | 847 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
size_t index, spos=0;
while ((index = s.find("treeone", spos))!=string::npos) {
s.replace(index, 7, "forest");
spos=index+6;
}
cout << s << endl;
}
michonz4