結果

問題 No.725 木は明らかに森である
ユーザー mlihua09
提出日時 2020-08-28 00:47:38
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 239 bytes
コンパイル時間 359 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2024-11-09 00:57:16
合計ジャッジ時間 1,255 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #


S = input()

t = ''

i = 0

n = len(S)

while i < n:
    
    
    if S[i:min(n, i + 7)] == 'treeone':
        
        t += 'forest'
        
        i += 7
        
    else:
        
        t += S[i]
        
        i += 1

print(t)
0