結果
| 問題 | No.67 よくある棒を切る問題 (1) | 
| コンテスト | |
| ユーザー |  rkyiolklo | 
| 提出日時 | 2020-04-20 22:30:21 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2,810 ms / 5,000 ms | 
| コード長 | 257 bytes | 
| コンパイル時間 | 892 ms | 
| コンパイル使用メモリ | 11,776 KB | 
| 実行使用メモリ | 32,704 KB | 
| 最終ジャッジ日時 | 2025-03-03 11:36:36 | 
| 合計ジャッジ時間 | 64,649 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 30 | 
ソースコード
n=int(input())
ls=list(map(int,input().split()))
k=int(input())
low=0
high=max(ls)
for i in range(61):
    mid= (high+low)/2
    ct=0
    for l in ls:
        ct+=l//mid 
    if ct>=k:
        low=mid 
    else:
        high=mid
print('{:.20f}'.format(mid))
            
            
            
        