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