結果
| 問題 |
No.725 木は明らかに森である
|
| コンテスト | |
| ユーザー |
Haruki0804S
|
| 提出日時 | 2018-10-20 16:39:20 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 2,000 ms |
| コード長 | 367 bytes |
| コンパイル時間 | 510 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-19 02:38:09 |
| 合計ジャッジ時間 | 1,760 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
ソースコード
S=input()
S=list(S)
n=len(S)
#print(n)
for i in range(n-6):
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'):
S[i]='f'
S[i+1]='o'
S[i+2]='r'
S[i+3]='e'
S[i+4]='s'
S[i+5]='t'
S[i+6]=''
for i in range(n-1):
print(S[i], end='')
print(S[-1])
Haruki0804S