結果

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

ソースコード

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,"x");
    }
    while(s.find("x") != s.npos){
        auto i = s.find("x");
        s.replace(i,i+1,"forest");
    }
    cout << s << endl;
    return 0;
}
0