結果

問題 No.725 木は明らかに森である
ユーザー NOSS
提出日時 2018-10-29 20:17:19
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 243 bytes
コンパイル時間 1,452 ms
コンパイル使用メモリ 165,836 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-19 08:10:12
合計ジャッジ時間 1,918 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
    string s;
    cin >> s;
    while(s.find("treeone") != s.npos){
        auto i = s.find("treeone");
        s.replace(i,i+7,"forest");
    }
    cout << s << endl;
    return 0;
}
0