From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1N56I6-0003Fh-ES for garchives@archives.gentoo.org; Mon, 02 Nov 2009 23:26:26 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 02311E0BFB; Mon, 2 Nov 2009 23:26:25 +0000 (UTC) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by pigeon.gentoo.org (Postfix) with ESMTP id CD994E0BFB for ; Mon, 2 Nov 2009 23:26:24 +0000 (UTC) Received: from compute2.internal (compute2.internal [10.202.2.42]) by gateway1.messagingengine.com (Postfix) with ESMTP id 9C453B5756 for ; Mon, 2 Nov 2009 18:26:24 -0500 (EST) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Mon, 02 Nov 2009 18:26:24 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:content-transfer-encoding; s=smtpout; bh=CA0o6VUEHOp3aHJEHDo/E+/cKUg=; b=CdwsLWK6OuKusYXgs9W8Us2z2LAFYqk1CxcMnBEc2CU+2ekbopTN01I2M2adoYUAiQWD+dDsTp3Ew74qQxWhTFn+By+SsdfeotXDAjG47+EWEvf7Tj2zDJA6Z4JLeroqDQvUSqpwzx9l62jjylJfjlBiaZxcULYB2/qrVfCsr4c= X-Sasl-enc: /UzmQo5Q2teh4nvFAL4oPDfZOtkJnFgcgmc2NfL6RiS8 1257204384 Received: from [192.168.31.12] (cpe-069-134-183-088.nc.res.rr.com [69.134.183.88]) by www.fastmail.fm (Postfix) with ESMTPSA id 3FC6F32AA6 for ; Mon, 2 Nov 2009 18:26:24 -0500 (EST) Subject: Re: [gentoo-user] program to solve assignment problem? From: Albert Hopkins To: gentoo-user@lists.gentoo.org In-Reply-To: <4AEF45C2.20703@gmail.com> References: <4AEF45C2.20703@gmail.com> Content-Type: text/plain; charset="UTF-8" Date: Mon, 02 Nov 2009 18:26:23 -0500 Message-ID: <1257204383.467251.0.camel@centar> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 78007769-8b33-4e4b-b329-3b3d89740235 X-Archives-Hash: 82662f21a9181684dde3899a080668c9 On Mon, 2009-11-02 at 21:49 +0100, Erik wrote: > Is there some simple little program to solve assignment problems? > Suppose that someone bought k meat (160), m fish (30) and n milk (15) > for 700. So it should solve the equation k * 160 + m * 30 + n * 15 = > 700. (A solution happens to be k = 4, m = 2, n = 0. An additional > condition could be that he bought at most 6 items; k + m + n <= 6. > That > would eliminate solutions like k = 4, m = 0, n = 4.) > You mean you want a program to do your homework assignment? -a