搜索资源列表
accepted1
- 解决时钟问题,acm竞赛题 A weird clock marked from 0 to 59 has only a minute hand. It won t move until a special coin is thrown into its box. There are different kinds of coins as your options. However once you make your choice, you cannot use any other kind.
设计一个用最少硬币找钱m的方法
- 设有n种不同面值的硬币,各硬币的面值存于数组T[1:n]中。现要用这些面值的硬币来找钱。可以使用的各种面值的硬币个数存于数组Coins[1:n]中。对任意钱数0≤m≤20001,设计一个用最少硬币找钱m的方法。-With n different coins, the face value of the coins stored in the array T [1: n] in the. Now use these coins to find the money. You can use the
AutoChangeMoney
- 使用VC++编写的自动找币机的控制程序。 有sql2000数据库,用于存储记录。 使用控件实现对找币机串口的控制。-The use of VC++ Prepared automatically find coin machine control procedures. There SQL2000 database, used to store records. The use of controls to achieve coin machine to find the serial c
findmoney
- 10. 设有n种不同面值的硬币,各硬币的面值存在于数足T[n]中。现要用这些面值的硬币来找钱。可以使用的各种面值的硬币个数存于数组Coins[n]中。对任意钱数0<=m<=20009,设计一个用最少硬币找钱m的方法。-10. There are n different denominations of coins, each coin with a face value exists in the number of adequate T [n] Medium. Is to use
stamp_seller
- 一个自动售邮票的控制电路。 用两个发光二极管分别模拟售出面值为六角和八角的邮票,购买者可以通过开关选择一种面值的邮票,灯亮时表示邮票售出。用开关分别模拟一角、五角和一元硬币投入。用发光二极管分别代表找回剩余的硬币。 要求:每次只能售出一枚邮票;当所投硬币达到或超过购买者所选面值时,售出一枚邮票,并找回剩余的硬币回到初始状态;当所投硬币值不足面值时,可以通过一个复位键退回所投硬币,回到初始状态。-An automatic control circuit sell stamps. With
zuishaoyingbi
- 设有n种不同面值的硬币,各硬币的面值存于数组T[1:n]中。现要用这些面值的硬币来找钱。可以使用的各种面值的硬币个数存于数组Coins[1:n]中。 对任意钱数0<=m<=20001,设计一个用最少硬币找钱m的方法。 -N has a different face value coins, the face value of the coins stored in the array T [1: n] in. Is to use these coins to find the
FakeCoin
- 有一大堆金币其中有一枚假币在一堆金币中找出一个价币来。-Have a lot of these, a counterfeit gold coin in the pile of coins to find a price.
lesscoins
- 设有n 种不同面值的硬币,各硬币的面值存于数组T〔1:n 〕中。现要用这些面值的硬币来找钱。可以使用的各种面值的硬币个数存于数组Coins〔1:n 〕中。 对任意钱数0≤m≤20001,设计一个用最少硬币找钱m 的方法。-With n different coins, the face value of the coins stored in the array of T 〔1: n〕 in. Now use these coins to find the money. You can us
zidongshouhuo
- 设计一个简易的自动售货机,它能够完成钱数处理、找零、显示、退币等功能。 (1)用3个键表示3种钱,再用3个键表示3种物品。 (2)用2个数码管显示输入的钱数,再用2个数码管显示所找的钱数,以元为单位 -Design a simple vending machine, the amount of money that it can complete the treatment, give change, display, coin and other functions. (1) wi
4.3
- 硬币找钱问题的解决方案,时间复杂度小,方法十分方便-Coin find money solution to the problem
At-least-the-issue-of-coins
- 有n种不同面值的硬币,各硬币面值存于数组T[1:n] 现用这些面值的钱来找钱;各面值的个数存在数组Coins[1:n]中。 对于给定的1<=n<=10,硬币面值数组、各面值的个数及钱数m,0<=m<=2001,编程计算找钱m的最少硬币数。 -There are n different denominations of coins, each coin denomination stored in the array T [1: n] current face v
yinbiwenti
- 在n个银币中有一个是不合格的,不合格的银币比合格银币要轻。 现用天平秤银币,找出不合格的银币,且在最坏情况下秤银币的次数最少 -In n silver in one is unqualified, not qualified silver qualified to light than silver. Now in the balance scale, and find out the unqualified silver coin, and in the worst c
sfdfsa
- 解决8枚硬币问题。在8枚硬币中有一枚是假硬币,把这个假硬币找出来。-Solve the eight coins problem. In the eight coins in a coin is fake, fake coins to find this out.
324
- 算法实现题3-1 最少硬币问题 问题描述:设有n种不同面值的硬币,各硬币的面值存于数组T[1:n]中。现要用这些面值的硬币来找钱。可以使用的各种面值的硬币个数存于数组Coins[1:n]中。对任意钱数0≤m≤20001,设计一个用最少硬币找钱m的方法。 算法设计:对于给定的1≤n≤10,硬币面值数组T和可以使用的各种面值的硬币个数数组Coins,以及钱数m,0≤m≤20001,计算找钱m的最少硬币数。 数据输入:由文件input.txt 提供输入数据,文件的第一行中只有1 个整数给出
zi-dong-shou-yin-liao-ji-
- 自动售出饮料机系统。该饮料机有五种饮料出售,其价钱分别为1元、1.5元、2元、2.5元和3元;系统可接受五种钱币类型,分别为硬币5角、硬币1元、纸币1元、纸币5元和纸币10元;基本要求:第一,每次可以购置一瓶饮料;第二,每次购置饮料可以接受多次钱币的投入;第三,可以找钱;-Automatic beverage machine systems sold. Five drinks in the beverage machine sale, its price is 1 yuan, 1.5 yuan,
dianzixiaomifeng
- 本设计采用实验专用小车,以AT89S52单片机为控制核心,加以超声波测距仪、探测电路、通信部分、液晶显示、电源电路以及其他电路构成。系统由89S52通过IO口控制小车的前进后退以及转向。超声波测距仪用来测量小车在封闭的场地里的具体坐标。探测电路用来探测硬币,经通信系统将第一辆小车测得的硬币位置传给第二辆小车,后一辆小车将根据收到的数据自动找到该硬币。同时本系统将测得各项数据通过液晶显示出来。-This design USES the special car to AT89S52 single c
CoinChange
- 硬币找零算法(动态规划):有一堆不同面值的硬币,需要找到一个硬币数最少的组合来组成某一个数值。-Coin change algorithm (dynamic programming): There are a bunch of different denominations of coins, need to find a combination of the number of coins to form at least one value.
money
- 有一个找伪币的问题,说给你一个装有16个硬币的袋子,16个硬币中有一个是伪造的,并且那个伪造的硬币比真的硬币要轻一些。你的任务是找出这个伪造的硬币。为了帮助你完成这一任务,将提供一台可用来比较两组硬币重量的仪器,利用这台仪器,可以知道两组硬币的重量是否相同。-请键入文字或网站地址,或者上传文档。 取消 Yǒu yīgè zhǎo wèi bì de wèntí, shuō gěi nǐ yīgè zhuāng yǒu 16 gè yìngbì de dàizi,16 gè yìngbì
coin
- 硬币找钱问题 设有6种不同面值的硬币,各硬币的面值分别为5分、1角、2角、5角、1元和2元。现在要用这些面值的硬币来购物和找钱。购物时可以使用的各种面值的硬币个数存于数组Coins[1:6]中,假设商店里各面值的硬币有足够多。对于给定的付款金额,计算使用硬币个数最少的交易方案。输入数据的每一行有6个整数和一个有2位小数的实数,分别表示可以使用的各种面值的硬币个数和付款金额。输出为交易所需要的最少硬币个数,如果不可能完成交易,则输出“impossible”。-Coins give change
find fake coin
- 有N个硬币,含 1 枚伪币 (伪币质量与真币质量不一样,真币质量都相同),此程序可以花费平均最少的时间找到伪币(There are N coins, 1 counterfeit coins (coins and coin quality really different quality, the quality of real coins are the same), this program can spend the least time to find the average)