結果
| 問題 | No.725 木は明らかに森である |
| コンテスト | |
| ユーザー |
Haruki0804S
|
| 提出日時 | 2018-10-20 16:39:20 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 21 ms / 2,000 ms |
| + 214µs | |
| コード長 | 367 bytes |
| 記録 | |
| コンパイル時間 | 54 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2026-09-26 11:24:41 |
| 合計ジャッジ時間 | 1,754 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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