Sponsored
Use these hints if you're stuck. Try solving on your own first.
Solve the opposite problem: start at the given score and move to 1.
It is better to use the move of the second type once we can to lose more scores fast.
Solve with full IDE support and test cases