結果

問題 No.725 木は明らかに森である
ユーザー ei1333333ei1333333
提出日時 2018-03-29 18:38:47
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 231 bytes
コンパイル時間 2,089 ms
コンパイル使用メモリ 194,164 KB
最終ジャッジ日時 2025-01-05 09:41:41
ジャッジサーバーID
(参考情報)
judge4 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

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