結果
| 問題 | No.725 木は明らかに森である |
| コンテスト | |
| ユーザー |
bellangeldindon
|
| 提出日時 | 2019-05-08 17:42:51 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 82 ms / 2,000 ms |
| コード長 | 280 bytes |
| 記録 | |
| コンパイル時間 | 137 ms |
| コンパイル使用メモリ | 77,496 KB |
| 最終ジャッジ日時 | 2025-12-04 01:39:30 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
ソースコード
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
bellangeldindon