結果

問題 No.725 木は明らかに森である
ユーザー severrabaen
提出日時 2019-01-03 10:56:54
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 224 bytes
コンパイル時間 1,236 ms
コンパイル使用メモリ 158,684 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-23 21:37:22
合計ジャッジ時間 1,744 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main(){
string h,t="treeone",f="forest";
cin>>h;
size_t mon=h.find(t);
while(string::npos!=mon){
h.replace(mon,t.length(),f);
mon=h.find(t,mon+f.length());
}
cout<<h<<endl;
}
0