N, K = map(int, input().split())
A = list(map(int, input().split()))
left, right = 0, max(A)
while right - left != 1:
    mid = (left + right) // 2
    tmp = 0
    for i in A:
        tmp += i // mid - 1 if i % mid == 0 else i // mid

    if tmp > K:
        left = mid
    else:
        right = mid

print(right) N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K A = list(map(int, input().split())) A list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split left, right = 0, max(A) left 0 right max(A) max A while right - left != 1:
    mid = (left + right) // 2
    tmp = 0
    for i in A:
        tmp += i // mid - 1 if i % mid == 0 else i // mid

    if tmp > K:
        left = mid
    else:
        right = mid right - left != 1 right - left right left 1 mid = (left + right) // 2 mid (left + right) // 2 left + right left right 2 tmp = 0 tmp 0 for i in A:
        tmp += i // mid - 1 if i % mid == 0 else i // mid

     i A tmp += i // mid - 1 if i % mid == 0 else i // mid tmp i // mid - 1 if i % mid == 0 else i // mid i % mid == 0 i % mid i mid 0 i // mid - 1 i // mid i mid 1 i // mid i mid if tmp > K:
        left = mid
    else:
        right = mid tmp > K tmp K left = mid left mid right = mid right mid print(right) print right tmp += i // mid - 1 if i % mid == 0 else i // mid i // mid - 1 if i % mid == 0 else i // mid tmp left, right = 0, max(A) 0 left right = mid mid right left = mid mid left K = map(int, input().split()) map(int, input().split()) K mid = (left + right) // 2 (left + right) // 2 mid A = list(map(int, input().split())) list(map(int, input().split())) A right = 0, max(A) max(A) right N, K = map(int, input().split()) map(int, input().split()) N tmp = 0 0 tmp
N, K = map(int, input().split())
A = list(map(int, input().split()))
left, right = 0, max(A)
while right - left != 1:
    mid = (left + right) // 2
    tmp = 0
    for i in A:
        tmp += i // mid - 1 if i % mid == 0 else i // mid

    if tmp > K:
        left = mid
    else:
        right = mid

print(right)
