Approach hintTry it first, then revealHide
With only ten kicks, try every way of filling the ? marks (at most 2^10) and simulate each one, stopping as soon as one team can no longer be caught with the kicks that remain.
With only ten kicks, try every way of filling the ? marks (at most 2^10) and simulate each one, stopping as soon as one team can no longer be caught with the kicks that remain.