3 ms·
One approach is to get close to the desired sum by buying a few of the more expensive toys, and then trying combinations of the cheaper ones. Just by trial and
by joshuaissac 5y ago
One approach is to get close to the desired sum by buying a few of the more expensive toys, and then trying combinations of the cheaper ones.
Just by trial and error, I tried 5*7.11 (xylophone) to get 35.55, followed by 4.77 (chequers), 2.75 (doll) and 0.87 (pinwheel). First and second were just guesses, so the only "calculated" choices were the doll and pinwheel.
There are probably many other easy solutions that one might arrive at by guessing different values to start with.
- Charon77 5y agoGood job finding it I've tried the problem myself and it seems it's possible to get exact answer without allowing repeats. I got the answer, but not the method yet :(