結果
問題 | No.67 よくある棒を切る問題 (1) |
ユーザー |
|
提出日時 | 2020-09-01 21:16:49 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 574 ms / 5,000 ms |
コード長 | 290 bytes |
コンパイル時間 | 246 ms |
コンパイル使用メモリ | 82,332 KB |
実行使用メモリ | 108,276 KB |
最終ジャッジ日時 | 2025-03-03 11:44:09 |
合計ジャッジ時間 | 11,759 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 |
ソースコード
N = int(input()) L = list(map(int, input().split())) x = 0 y = 10 ** 9 K = int(input()) while x * (1 + 10 ** (-10)) < y: z = (x + y) / 2 k = 0 for l in L: k += l // z if k >= K: x = z else: y = z print(x)