P is for Practical | |
PerlMonks |
Re: Calculate easiest way to 'level results'by Roy Johnson (Monsignor) |
on Sep 19, 2007 at 16:36 UTC ( [id://639927]=note: print w/replies, xml ) | Need Help?? |
Kind of an interesting math problem. Since the points are all apparently interchangeable, you can start by adding everything up: You have 60+80+31=171 points, and you need 51+107+38=196. That leaves you 25 points short. You gain 12+17+7=36 per hour. So you'll need something under an hour to gain your points. 25/36 of an hour, to be exact.
Update: I interrupt my own post to point out that there is no reason to do a shuffle if you don't have enough total points. Just figure out how long you need to wait, wait that long, and then shuffle. So shuffle your points to be 25/36 of an hour from having what you need: Update: here's some ham-handed code (updated again to optimize leftover placement):
Caution: Contents may have been coded under pressure.
In Section
Seekers of Perl Wisdom
|
|