結果
| 問題 | No.67 よくある棒を切る問題 (1) | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2022-10-10 09:40:26 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 1,209 ms / 5,000 ms | 
| コード長 | 544 bytes | 
| コンパイル時間 | 323 ms | 
| コンパイル使用メモリ | 82,340 KB | 
| 実行使用メモリ | 105,632 KB | 
| 最終ジャッジ日時 | 2025-03-03 12:03:22 | 
| 合計ジャッジ時間 | 21,897 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 30 | 
ソースコード
# import pypyjit
# pypyjit.set_param('max_unroll_recursion=-1')
from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math
input = sys.stdin.readline
N = int(input())
L = list(map(int,input().split()))
K = int(input())
def is_ok(x):
    if x==0:
        return True
    tmp = 0
    for l in L:
        tmp += l//x
        
    return tmp>=K
    
x = 0
y = 10**9 + 1
INF = 10**9+100
for _ in range(100):
    mid = (y+x)/2
    if is_ok(mid):
        x = mid
    else:
        y = mid
print(x)
            
            
            
        