結果
問題 | No.67 よくある棒を切る問題 (1) |
ユーザー |
|
提出日時 | 2023-03-07 08:41:16 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 1,398 ms / 5,000 ms |
コード長 | 368 bytes |
コンパイル時間 | 300 ms |
コンパイル使用メモリ | 82,324 KB |
実行使用メモリ | 107,584 KB |
最終ジャッジ日時 | 2024-09-18 02:03:59 |
合計ジャッジ時間 | 20,410 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
ソースコード
N = int(input()) L = list(map(int, input().split())) K = int(input()) def calc_bou(N, L, K): low = 0 high = max(L) for _ in range(60): mid = (low + high) / 2 cnt = 0 for i in L: cnt += i // mid if cnt < K: high = mid else: low = mid return low print(calc_bou(N, L, K))