結果

問題 No.725 木は明らかに森である
ユーザー michonz4
提出日時 2019-12-01 08:33:20
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 231 bytes
コンパイル時間 428 ms
コンパイル使用メモリ 54,224 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-21 04:19:49
合計ジャッジ時間 835 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>

using namespace std;

int main() {
  string s;
  cin >> s;

  size_t index;
  while ((index = s.find("treeone"))!=string::npos) {
    s.replace(index, 6, "forest");
  }

  cout << s << endl;
}
0