🤑https://www.acmicpc.net/problem/6236 내 풀이N, M = map(int, input().split())money = [int(input()) for _ in range(N)]s, e = max(money), sum(money)ans = 0while s mid: result = 0 total += 1 result += m if result > 0: total += 1 if total > M: s = mid + 1 else: e = mid - 1 ans = midprint(ans) 코드 설명s, e = max(money), sum(money)s: 인출할 금..