結果
| 問題 |
No.725 木は明らかに森である
|
| コンテスト | |
| ユーザー |
bellangeldindon
|
| 提出日時 | 2019-05-08 17:39:12 |
| 言語 | Python2 (2.7.18) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 275 bytes |
| コンパイル時間 | 68 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-02 00:30:51 |
| 合計ジャッジ時間 | 834 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 WA * 6 |
ソースコード
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
bellangeldindon