結果
問題 | No.67 よくある棒を切る問題 (1) |
ユーザー |
![]() |
提出日時 | 2024-02-26 20:39:29 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 1,672 ms / 5,000 ms |
コード長 | 320 bytes |
コンパイル時間 | 378 ms |
コンパイル使用メモリ | 82,300 KB |
実行使用メモリ | 117,200 KB |
最終ジャッジ日時 | 2025-03-03 12:12:17 |
合計ジャッジ時間 | 26,270 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 |
ソースコード
N = int(input()) X = 10 ** 10 L = [l*X for l in list(map(int,input().split()))] K = int(input()) lb = 0 ub = 10 ** 20 def check(x): tmp = 0 for l in L: tmp += l//x return tmp >= K while ub - lb > 1: mid = (ub + lb) // 2 if check(mid): lb = mid else: ub = mid print(lb/X)