工厂污染最小化问题 import heapq def solution(N): target = sum(N)/2 bigHeap, sum_, curr_traget = [], 0, 0 for i in N: heapq.heappush(bigHeap, -i) while curr_traget<target: ele = heapq.heappop(bigHeap) curr_traget+=(-ele)/2 sum_+=1 heapq.heappush(bigH...