Optimizing Box Weights

https://algo.monster/problems/optimizing_box_weights

asdasd

How do you even came up with the idea of a target = sum(arr)/2