> The first command-line argument to the program will be the number of adventures.
> All other arguments are the numerical values of treasures found.  You're program
> should output a fair split of the treasures, if possible, or a warning message
> if a fair split cannot be found.
>
> Examples:
>
> 	$ ruby loot.rb 3 1 2 3 4
> 	It is not possible to fairly split this treasure 3 ways.
> 	$ ruby loot.rb 2 9 12 14 17 23 32 34 40 42 49
> 	1:  9 12 32 34 49
> 	2:  14 17 23 40 42

Can one assume that the treasure values are only integers?

Aditya

-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008