Problem 870 · Medium
Sort both sides; beat the weakest opponent when possible, otherwise sacrifice against the strongest.
Open the interactive visualisation