結果
| 問題 | No.67 よくある棒を切る問題 (1) | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2023-03-07 08:35:43 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 374 bytes | 
| コンパイル時間 | 208 ms | 
| コンパイル使用メモリ | 82,708 KB | 
| 実行使用メモリ | 107,936 KB | 
| 最終ジャッジ日時 | 2025-03-03 12:07:34 | 
| 合計ジャッジ時間 | 8,732 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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 int(low)
print(calc_bou(N, L, K))
            
            
            
        