You are viewing a single comment's thread. Return to all comments →
Yet another ill-described problem. The minimum cost for each wand is the cost of the wand, right? join to filter evil ones and sort and we're done. Yet, my answer is "incorrect". As I encounter more and more poorly worded problems, the less interested in this site I become. :(
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.
Welcome to industry ;)
I agree. If the quality continues to be this uneven I'll abandon the site.