結果
問題 |
No.67 よくある棒を切る問題 (1)
|
ユーザー |
|
提出日時 | 2020-04-23 11:55:17 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 221 bytes |
コンパイル時間 | 3,397 ms |
コンパイル使用メモリ | 12,032 KB |
実行使用メモリ | 32,500 KB |
最終ジャッジ日時 | 2025-03-03 11:36:46 |
合計ジャッジ時間 | 25,079 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 TLE * 1 -- * 20 |
ソースコード
N = int(input()) L = tuple(map(int, input().split())) K = int(input()) l, r = 0, 10 ** 9 while r - l > 10 ** -10: m = (l + r) / 2 if sum(int(l // m) for l in L) < K: r = m else: l = m print(l)