
์ ๊ตญ์ฌ์ฌ๋ฅผ ๋ฐ์์ผ ํ๋ n๋ช ์ ์ฌ๋์ด ์์ ๋ ์ฌ์ฌ๊ด๋ค์ ์ฌ์ฌํ ๋ ๊ฐ๊ฐ ์ฃผ์ด์ง times์ ๊ฐ์ ์๊ฐ์ด ์์๋๋ค. ์ด n๋ช ์ ์ฌ๋์ด ์ ๋ถ ๊ฒ์ฌ๋ฅผ ๋ฐ๋๋ฐ ๊ฑธ๋ฆฌ๋ ์ต์์ ์๊ฐ์ ๊ตฌํ๋ ๋ฌธ์ ์๋ค. ์ผ๋จ n๋ช ์ ์ฌ๋์ด ๊ฒ์ฌ๋ฐ๋๋ฐ ๊ฑธ๋ฆฌ๋ ์ต์ ์ ์๊ฐ์ ๊ฐ์ฅ ์ค๋ ์๊ฐ์ด ์์๋๋ ์ฌ์ฌ๊ด์๊ฒ ๋ชจ๋ ์ฌ๋์ด ๊ฒ์ฌ๋ฅผ ๋ฐ๋ ๊ฒฝ์ฐ์ด๋ค. ์ด์ง ํ์์ ์ด์ฉํด left = 0 right= ์ต์ ์ ์๊ฐ์ผ๋ก ํ์ฌ ๊ฐ์ฅ ์ต์๋ก ๊ฑธ๋ฆฌ๋ ์๊ฐ์ ์ฐพ๋๋ค. left = 0 right = max(time_list) * n # ๋ชจ๋ ์ฌ๋์ด ๋ค ๋ฐ์ ๋ ๋๋๋ ์๊ฐ์ ์ต์ ์ ๊ฒฝ์ฐ while left = n: answer = mid right = mid - 1 elif people < n: left = mid + 1 print(answer) ๋๋ ์ด์ง..