結果
| 問題 | 
                            No.725 木は明らかに森である
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2019-07-28 23:03:25 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 335 bytes | 
| コンパイル時間 | 2,144 ms | 
| コンパイル使用メモリ | 195,096 KB | 
| 最終ジャッジ日時 | 2025-01-07 09:50:56 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 2 WA * 7 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
    string s;
    cin >> s;
    string ans;
    for (int i = 0; i+6 < s.size(); i++) {
        if (s.substr(i, 7) == "treeone") {
            ans += "forest";
            i += 6;
        } else ans += s[i];
    }
    cout << ans << endl;
    return 0;
}