No.725 Trees Are Clearly a Forest
問題文最終更新日: 2018-08-24 22:10:11
English (AI translation)
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もしくは右上の雲マークをクリックしてアカウントを作成してください。
treeone
ei1333333