๋ฌธ์
https://www.acmicpc.net/problem/1300
ํ์ด
# ๋ฐฑ์ค 1300๋ฒ ๋ฌธ์ - K๋ฒ์งธ ์
n, k = int(input()), int(input())
start, end = 1, k
while start <= end:
mid = (start+end) // 2
cnt = 0
for i in range(1, n+1):
cnt += min(mid//i, n)
if cnt >= k:
answer = mid
end = mid - 1
else:
start = mid + 1
print(answer)