|
[原创]最近微博里很热的1000瓶子10小白鼠找毒药问题
编号是1-1000 只要1-1000循环一次就够了 每次把编号取出来, 与上0x0001,判断一次,可知该瓶是否有第一只老鼠测试。 与上0x0002,判断一次,可知该瓶是否有第二只老鼠测试。 以此类推。 算法可以有多种,上面只是随便写写 |
|
[原创]最近微博里很热的1000瓶子10小白鼠找毒药问题
老鼠1喝:4,5,2 老鼠2喝:2,3 老鼠3喝:1,3,5; 0表示活,1表示死 000 不可能 001 1号有毒 010 不可能 011 3号有毒 100 4号有毒 101 5号有毒 110 2号有毒 111 不可能 事实上1000个瓶子 编号未必一定要1-1000,应该可以在1-1024中任意无序不重复地选取编号。 另外1000个瓶子,测试999个应该也可以。 |
|
[原创]最近微博里很热的1000瓶子10小白鼠找毒药问题
举个例子: 共5瓶(编号1-5) 老鼠1喝:4,5 老鼠2喝:2,3 老鼠3喝:1,3,5; 或者 老鼠1喝:4,5,2 老鼠2喝:2,3 老鼠3喝:1,3,5; 随便写的,应该不错吧 |
|
[原创]最近微博里很热的1000瓶子10小白鼠找毒药问题
既然只要2^10=1024种老鼠状态中的1000种无冗余的代表1000种瓶子的可能结果(一一对应),检验方法肯定不是唯一的。 那么共有多少种检验方法? ???????????????????????????????????????????? |
|
|
|
[活动结束]Kx币换QQ公仔,限量30只
木有kx啊,木有啊 |
|
[注意]测试你的肺活量,按住键盘0,憋气,看你能有多少行,男人不做假!
这和键盘设置有关系吧。 |
|
[超级大合集]各大资源合集,一次性吐血大放送,必须收藏的视频合集!
资料确实多。谢谢分享 |
|
[下载]魔方高级玩法
要是能用代码实现就更好了。 |
|
[调查]最近论坛是不是有点卡?
一般一两秒就打开了 |
|
|
|
[求助]Help!界面变成英文的了!
主页左下角可直接选简体中文 |
|
[推荐]最优秀的PDF压缩工具
有没有测试数据? |
|
|
|
[原创][看雪安全论坛]会员每日签到帖!
祝大家新年快乐! |
|
[原创]给个东西大家玩...不要做坏事就行
那个.img文件是什么 |
|
[求助]为什么软键盘可以防盗号呢?
键盘是硬中断,很容易截获 |
|
[求助]关于卸载Visual Studio 2010
360卸载不彻底吧。 |
|
[求助] 结果不对
至少得贴出想要的结果啊。 |
|
|
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值