結果

問題 No.725 木は明らかに森である
ユーザー treeone
提出日時 2018-03-29 18:05:45
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 287 bytes
コンパイル時間 1,064 ms
コンパイル使用メモリ 159,984 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-22 19:07:35
合計ジャッジ時間 1,495 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main(){
    string s, from = "treeone", to = "forest";
    cin >> s;
    size_t pos = s.find(from);
    while(pos != string::npos){
        s.replace(pos, from.size(), to);
        pos = s.find(from, pos);
    }
    cout << s << endl;
}
0