結果
問題 |
No.67 よくある棒を切る問題 (1)
|
ユーザー |
![]() |
提出日時 | 2015-08-03 03:41:40 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 388 bytes |
コンパイル時間 | 289 ms |
コンパイル使用メモリ | 12,160 KB |
実行使用メモリ | 40,984 KB |
最終ジャッジ日時 | 2025-03-03 10:21:53 |
合計ジャッジ時間 | 32,706 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 16 TLE * 1 -- * 13 |
ソースコード
def solve(): N = int(input()) L = list(map(int, input().split())) K = int(input()) a = 0 b = max(L) d = 5 * 10 ** -10 while b - a > d: c = (a + b) / 2 n = sum(int(l / c) for l in L) if n >= K: a = c else: b = c print((b - a) / 2) def main(): solve() if __name__ == '__main__': main()