結果
問題 |
No.67 よくある棒を切る問題 (1)
|
ユーザー |
|
提出日時 | 2023-03-07 08:30:27 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 369 bytes |
コンパイル時間 | 349 ms |
コンパイル使用メモリ | 82,108 KB |
実行使用メモリ | 108,100 KB |
最終ジャッジ日時 | 2025-03-03 12:07:29 |
合計ジャッジ時間 | 9,180 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 WA * 23 |
ソースコード
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(70): 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))