文件名称:pay
- 所属分类:
- Windows编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 232kb
- 下载次数:
- 0次
- 提 供 者:
- 井
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
最少费用购物
问题描述:
商店中每种商品都有标价。例如,一朵花的价格是2 元。一个花瓶的价格是5 元。为了吸引顾客,商店提供了一组优惠商品价。优惠商品是把一种或多种商品分成一组,并降价销售。例如,3 朵花的价格不是6 元而是5 元。2 个花瓶加1 朵花的优惠价是10 元。试设计一个算法,计算出某一顾客所购商品应付的最少费用。-At least cost to the problem Descr iption: store all kinds of commodities are denominated. For example, the price of a flower is 2. The price of a flower vase is 5 yuan. In order to attract customers, shops provides a set of preferential commodity prices. Discount merchandise is divided into one or more of a group of commodities and sale. For example, three rather than spend the price of 6 yuan but 5. Two vases of flowers plus a discounted price is 10 yuan. Try to design an algorithm to calculate a customer to buy goods to meet the minimum cost.
问题描述:
商店中每种商品都有标价。例如,一朵花的价格是2 元。一个花瓶的价格是5 元。为了吸引顾客,商店提供了一组优惠商品价。优惠商品是把一种或多种商品分成一组,并降价销售。例如,3 朵花的价格不是6 元而是5 元。2 个花瓶加1 朵花的优惠价是10 元。试设计一个算法,计算出某一顾客所购商品应付的最少费用。-At least cost to the problem Descr iption: store all kinds of commodities are denominated. For example, the price of a flower is 2. The price of a flower vase is 5 yuan. In order to attract customers, shops provides a set of preferential commodity prices. Discount merchandise is divided into one or more of a group of commodities and sale. For example, three rather than spend the price of 6 yuan but 5. Two vases of flowers plus a discounted price is 10 yuan. Try to design an algorithm to calculate a customer to buy goods to meet the minimum cost.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
最少费用购物问题
................\Debug
................\gw.cpp
................\gw.dsp
................\gw.dsw
................\gw.ncb
................\gw.opt
................\gw.plg
................\Debug
................\gw.cpp
................\gw.dsp
................\gw.dsw
................\gw.ncb
................\gw.opt
................\gw.plg