적정 값을 찾는 이분탐색. import sys input = sys.stdin.readline def is_possible(target): cnt = 0 sum_n = 0 for score in scores: sum_n += score if sum_n >= target: cnt += 1 sum_n = 0 if cnt >= K: return True return False N, K = map(int, input().split()) scores = list(map(int, input().split())) left, right = 0, int(2e6) max_score = 0 while left