結果
問題 |
No.67 よくある棒を切る問題 (1)
|
ユーザー |
![]() |
提出日時 | 2020-12-26 15:24:48 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 303 bytes |
コンパイル時間 | 333 ms |
コンパイル使用メモリ | 12,032 KB |
実行使用メモリ | 47,104 KB |
最終ジャッジ日時 | 2025-03-03 11:46:26 |
合計ジャッジ時間 | 15,777 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 TLE * 1 -- * 13 |
ソースコード
import numpy as np eps = 1e-9 N = int(input()) L = np.array(input().split(), dtype=np.float64) K = int(input()) l = 0. r = 1e9 + eps while r - l > eps: m = (r + l) * 0.5 if (L / m + eps).astype(np.int32).sum() >= K: l = m else: r = m print("{:.10f}".format((l + r) * 0.5))