import numpy as np
import math
N, K = map(int, input().split())
aaa = np.array(list(map(float, input().split())), dtype='f8')
l = 0
r = 10 ** 9
while r != l:
    mid = (r + l) // 2
    bbb = aaa / mid
    bbb -= 1
    bbb = np.ceil(bbb)
    if bbb.sum() <= K:
        r = mid
    else:
        l = mid + 1
print(l) import numpy as np numpy import math math N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K aaa = np.array(list(map(float, input().split())), dtype='f8') aaa np.array(list(map(float, input().split())), dtype='f8') np.array np array list(map(float, input().split())) list map(float, input().split()) map float input().split() ().split () input split dtype='f8' dtype 'f8' l = 0 l 0 r = 10 ** 9 r 10 ** 9 10 9 while r != l:
    mid = (r + l) // 2
    bbb = aaa / mid
    bbb -= 1
    bbb = np.ceil(bbb)
    if bbb.sum() <= K:
        r = mid
    else:
        l = mid + 1 r != l r l mid = (r + l) // 2 mid (r + l) // 2 r + l r l 2 bbb = aaa / mid bbb aaa / mid aaa mid bbb -= 1 bbb 1 bbb = np.ceil(bbb) bbb np.ceil(bbb) np.ceil np ceil bbb if bbb.sum() <= K:
        r = mid
    else:
        l = mid + 1 bbb.sum() <= K bbb.sum() bbb.sum bbb sum K r = mid r mid l = mid + 1 l mid + 1 mid 1 print(l) print l K = map(int, input().split()) map(int, input().split()) K r = 10 ** 9 10 ** 9 r r = mid mid r mid = (r + l) // 2 (r + l) // 2 mid bbb = np.ceil(bbb) np.ceil(bbb) bbb bbb -= 1 1 bbb l = 0 0 l bbb = aaa / mid aaa / mid bbb N, K = map(int, input().split()) map(int, input().split()) N l = mid + 1 mid + 1 l aaa = np.array(list(map(float, input().split())), dtype='f8') np.array(list(map(float, input().split())), dtype='f8') aaa
import numpy as np
import math
N, K = map(int, input().split())
aaa = np.array(list(map(float, input().split())), dtype='f8')
l = 0
r = 10 ** 9
while r != l:
    mid = (r + l) // 2
    bbb = aaa / mid
    bbb -= 1
    bbb = np.ceil(bbb)
    if bbb.sum() <= K:
        r = mid
    else:
        l = mid + 1
print(l)
