文件名称:qianbi
- 所属分类:
- 其他小程序
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 166kb
- 下载次数:
- 0次
- 提 供 者:
- l**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
最小钱币数:这是一个古老而又经典的问题。用给定的几种钱币凑成某个钱数,一般而言有多种方式。例如:给定了6种钱币面值为2、5、10、20、50、100,用来凑 15元,可以用5个2元、1个5元,或者3个5元,或者1个5元、1个10元,等等。显然,最少需要2个钱币才能凑成15元。
你的任务就是,给定若干个互不相同的钱币面值,编程计算,最少需要多少个钱币才能凑成某个给出的钱数。
-The smallest coin: This is an old and classic. Given some coins to make up a certain amount of money, in general, have a variety of ways. For example: to set a six kinds of coins the nominal value of 2,5,10,20,50,100, used to scrape together $ 15, you can use $ 5, a five yuan, or $ 3, or a yuan, a-10 yuan, and so on. Clearly, at least two coins to make up 15 yuan.
Your task is, to set a number of distinct nominal value of the coin, programming calculation, and requires a minimum number of coins to make up a given amount of money.
你的任务就是,给定若干个互不相同的钱币面值,编程计算,最少需要多少个钱币才能凑成某个给出的钱数。
-The smallest coin: This is an old and classic. Given some coins to make up a certain amount of money, in general, have a variety of ways. For example: to set a six kinds of coins the nominal value of 2,5,10,20,50,100, used to scrape together $ 15, you can use $ 5, a five yuan, or $ 3, or a yuan, a-10 yuan, and so on. Clearly, at least two coins to make up 15 yuan.
Your task is, to set a number of distinct nominal value of the coin, programming calculation, and requires a minimum number of coins to make up a given amount of money.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
qianbi\Debug\qianbi.exe
......\.....\qianbi.ilk
......\.....\qianbi.obj
......\.....\qianbi.pch
......\.....\qianbi.pdb
......\.....\vc60.idb
......\.....\vc60.pdb
......\qianbi.cpp
......\qianbi.dsp
......\qianbi.dsw
......\qianbi.in
......\qianbi.ncb
......\qianbi.opt
......\qianbi.plg
......\Debug
qianbi
......\.....\qianbi.ilk
......\.....\qianbi.obj
......\.....\qianbi.pch
......\.....\qianbi.pdb
......\.....\vc60.idb
......\.....\vc60.pdb
......\qianbi.cpp
......\qianbi.dsp
......\qianbi.dsw
......\qianbi.in
......\qianbi.ncb
......\qianbi.opt
......\qianbi.plg
......\Debug
qianbi