結果

問題 No.725 木は明らかに森である
ユーザー bellangeldindonbellangeldindon
提出日時 2019-05-08 17:39:12
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 275 bytes
コンパイル時間 45 ms
コンパイル使用メモリ 6,596 KB
実行使用メモリ 6,068 KB
最終ジャッジ日時 2023-09-14 17:23:20
合計ジャッジ時間 779 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

S = raw_input()
ans = ''
for i in range(0, 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]
print ans
0