結果

問題 No.725 木は明らかに森である
ユーザー bellangeldindonbellangeldindon
提出日時 2019-05-08 17:42:51
言語 Python2
(2.7.18)
結果
AC  
実行時間 13 ms / 2,000 ms
コード長 280 bytes
コンパイル時間 57 ms
コンパイル使用メモリ 6,652 KB
実行使用メモリ 6,028 KB
最終ジャッジ日時 2023-09-14 17:23:22
合計ジャッジ時間 868 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
5,872 KB
testcase_01 AC 11 ms
5,868 KB
testcase_02 AC 11 ms
5,872 KB
testcase_03 AC 12 ms
5,980 KB
testcase_04 AC 13 ms
5,888 KB
testcase_05 AC 13 ms
6,028 KB
testcase_06 AC 12 ms
6,024 KB
testcase_07 AC 13 ms
5,944 KB
testcase_08 AC 12 ms
5,976 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = raw_input()
ans = ''
i = 0
while i < len(S):
	if i <= len(S)-7:
		if S[i]=='t' and S[i+1]=='r' and S[i+2]=='e' and S[i+3]=='e' and S[i+4]=='o' and S[i+5]=='n' and S[i+6]=='e':
			ans = ans + 'forest'
			i += 6
		else: ans = ans + S[i]
	else: ans = ans + S[i]
	i += 1
print ans
0