Puzzle 8-10-08 (answer)

Steven Schveighoffer schveiguy at yahoo.com
Mon Aug 11 10:25:46 PDT 2008


"BCS" wrote
> Reply to wyverex,
>
>> The Abbott's Puzzle
>>
>> "If 100 bushels of corn were distributed among 100 people in such a
>> manner that each man received three bushels, each woman two, and each
>> child half a bushel, how many men, women, and children were there?"
>>
>
> <M, W, C> = <17,5,78> + i*<-3,5,-2>  for i in [0,5]
>
>

You missed <20, 0, 80>

Of course, this assumes that it's possible to have 0 women (unlikely :) )

And what's with the non-D code?  It should be a requirement that you have to 
solve it with D ;)

-Steve 




More information about the Digitalmars-d-learn mailing list