You are viewing a single comment's thread. Return to all comments →
There can be multiple wands of the same power and age but of different cost.
Yes, but the problem never mentioned to look for the minimum among the different combinations of power and age. It is ill-posed.
Finally I know why my code doesn't work... Thank you.