結果

問題 No.725 木は明らかに森である
ユーザー m
提出日時 2020-07-31 18:58:08
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 277 bytes
コンパイル時間 592 ms
コンパイル使用メモリ 65,432 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-06 14:12:58
合計ジャッジ時間 1,234 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>

using namespace std;

int main() {
  string s;
  cin >> s;
  string befo = "treeone";
  int pos;
  int len = befo.length();
  while ((pos = s.find(befo)) != -1) {
    s.replace(pos, len, "forest");
  }
  cout << s << endl;

  return 0;
}
0