問題一覧 > 通常問題

No.725 Trees Are Clearly a Forest

レベル : / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 532
作問者 : treeone / テスター : ei1333333
お気に入りにしたユーザー ProblemId : 2214 / 自分の提出
問題文最終更新日: 2018-08-24 22:10:11
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 198 (順位表) の他の問題:

Problem Statement

Output the string $T$ obtained by replacing every substring of the string $S$ that matches the string "treeone" with the string "forest".

Input

$S$

A string $S$ consisting only of lowercase letters is given.
It satisfies $1\leqq |S| \leqq 100$. (Here, $|S|$ is the length of the string $S$.)

Output

Output the string $T$ on one line. Print a newline at the end.

Sample

Sample 1
Input
treeone
Output
forest

Sample 2
Input
treeoneone
Output
forestone

Sample 3
Input
beet
Output
beet

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。