k,n=map(int,input().split())
a=[]
for _ in range(k):
a.append(int(input()))
end=max(a)
start=1
while start<=end:
cnt=0
mid=(start+end)//2
for i in range(k):
cnt+=a[i]//mid
if cnt>=n:
start=mid+1
else:
end = mid-1
print(end)
'백준 풀이' 카테고리의 다른 글
백준 1011번 파이썬 (0) | 2022.08.31 |
---|---|
백준 1011번 파이썬 (0) | 2022.08.31 |
백준 14502번 파이썬 (0) | 2022.08.31 |
백준 9020번 파이썬 소수찾기 (0) | 2022.08.31 |
백준 9663번 파이썬 (백트래킹 기초) (0) | 2022.08.30 |