Skip to content

Commit f7babc1

Browse files
committed
add: 입국 심사/jujoo.py
1 parent ef3ec07 commit f7babc1

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

[211210] 입국 심사/jujoo.py

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
def solution(n, times):
2+
answer = 0
3+
left, right = 0, max(times) * n
4+
5+
while left < right:
6+
mid = (right + left) // 2
7+
# mid = left + (right - left) // 2
8+
9+
if sum([mid // t for t in times]) >= n:
10+
right = mid
11+
else:
12+
left = mid + 1
13+
14+
return left

0 commit comments

Comments
 (0)