結果

問題 No.725 木は明らかに森である
ユーザー Lavender
提出日時 2019-09-08 19:59:53
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 215 bytes
コンパイル時間 1,846 ms
コンパイル使用メモリ 166,124 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-27 15:08:33
合計ジャッジ時間 2,169 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main()
{
    string s, t = "treeone", u = "forest";
    cin >> s;
    while (size_t i = s.find(t) != -1) s.replace(i-1, 7, u);
    cout << s << endl;
    return 0;
}
0