Monday, August 25, 2014

COJ 1219. Bounty Hunter

This task can be a little confusing because of the second parameter which is the distance from home. You may easily ignore it, there is nothing specified in task which wants us to use it, and more to that it says that who cares if we walk much, the important thing is to get paid as much as possible SO we only need to sort the array and start taking deals from the most expensive until our bullets run out.


       FULL SOURCE CODE

No comments:

Post a Comment