結果
問題 |
No.67 よくある棒を切る問題 (1)
|
ユーザー |
![]() |
提出日時 | 2020-12-26 15:20:48 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 312 bytes |
コンパイル時間 | 247 ms |
コンパイル使用メモリ | 82,244 KB |
実行使用メモリ | 109,088 KB |
最終ジャッジ日時 | 2025-03-03 11:46:22 |
合計ジャッジ時間 | 12,587 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 TLE * 1 -- * 20 |
ソースコード
eps = 1e-10 N = int(input()) L = list(map(int, input().split())) K = int(input()) def C(x): cnt = 0 for a in L: cnt += int(a // x + eps) return cnt >= K l = 0 r = 10**9 while r - l > eps: m = (r + l) * 0.5 if C(m): l = m else: r = m print("{:.10f}".format(r))