- xinjiangoa(ppt) 这一部分的工作中
- processBar 一个很好的进度条实例
- LSSVR 基于最小二乘支持向量回归机的无线传感器网络目标定位法
- 64234 gui based weekday predictor in matlab The following Matlab project contains the source code and Matlab examples used for gui based weekday predictor. Error warnings concerning bad input for months and date have been included so that user cant calculate while around with mistakes.Input for month should be in numbers. The source code and files included in this project are listed in the project files section
- cxbyvkqn 单径或多径瑞利衰落信道仿真
- VPN路由表局部完善版 vpn源码
文件名称:badCoin
-
所属分类:
- 标签属性:
- 上传时间:2013-04-25
-
文件大小:525byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
给定一组硬币,共N枚,其中N-1枚是好的,1枚是坏的。所有好的硬币都有同样的重量,坏的硬币的重量与好的硬币不同,且有一枚好的硬币被做上标记。
编写一个程序,对于给定N和K,确定能否用最多K次的天平,找出那个坏的硬币。如果可以输出"POSSIBLE" ,否则输出"IMPOSSIBLE"。
-Given a set of coins, a total of N pieces, N-1 pieces is good, one bad. All the good coins have the same weight, the weight of bad coin with good coin, and there is a good coin flag. Write a program to determine whether to use a maximum of K times the balance for a given n and k, identify the bad coin. If the output " Possible" , otherwise output " Impossible" .
编写一个程序,对于给定N和K,确定能否用最多K次的天平,找出那个坏的硬币。如果可以输出"POSSIBLE" ,否则输出"IMPOSSIBLE"。
-Given a set of coins, a total of N pieces, N-1 pieces is good, one bad. All the good coins have the same weight, the weight of bad coin with good coin, and there is a good coin flag. Write a program to determine whether to use a maximum of K times the balance for a given n and k, identify the bad coin. If the output " Possible" , otherwise output " Impossible" .
(系统自动生成,下载前可以参看下载内容)
下载文件列表
data.out
badCoin.c
data.in
badCoin.c
data.in
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
