Gentoo Archives: gentoo-user

From: Marcus Wanner <marcusw@×××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] program to solve assignment problem?
Date: Mon, 02 Nov 2009 22:48:29
Message-Id: 4AEF61BA.7040405@cox.net
In Reply to: [gentoo-user] program to solve assignment problem? by Erik
1 On 11/2/2009 3:49 PM, Erik wrote:
2 > Is there some simple little program to solve assignment problems?
3 > Suppose that someone bought k meat (160), m fish (30) and n milk (15)
4 > for 700. So it should solve the equation k * 160 + m * 30 + n * 15 =
5 > 700. (A solution happens to be k = 4, m = 2, n = 0. An additional
6 > condition could be that he bought at most 6 items; k + m + n <= 6. That
7 > would eliminate solutions like k = 4, m = 0, n = 4.)
8 >
9 What?

Replies

Subject Author
Re: [gentoo-user] program to solve assignment problem? Michael Sullivan <msulli1355@×××××.com>