Granary

The miller needs exactly ? kg of grain. Pick sacks whose weights add up to exactly that — no more, no less. Fewer sacks than par beats par; every extra sack costs points.