#30 Digital targets
set by Peter Rowlett
You are playing a game in which you have to arrange 10 random single-digit numbers (which can include 0) to form five two-digit numbers, aiming for five targets: 10, 20, 30, 40 and 50.
If you match a target exactly, you score that number. If you get within 5 of a target, you score half the value of the target. Otherwise you score zero for that target.
For example, if you are given the numbers 1, 2, 2, 3, 3, 5, 5, 7, 8 and 9, you can arrange them to get a…