|
[原创]一道真正难倒亿人的智力题,这是微软的面试题
少发了一个,如果用纯概率的角度分析,假设一次为:a1,a2,a3,a4,a5 等于求:p(ai)=max(a1,a2,...a5)||min(a1,a2...a5)简化一下,只求最大: 等效于求:p(ai)=max(a1,a2,...a5) 条件是:a1在0和100之间,a2在0和100-a1之间,依次类推。 这个只是从完全随机的角度去思考。要计算上面的概率,我晕,看起来很复杂的样子啊。不过可以枚举出来。也可以编程计算,这个是可以编程计算出来滴,用脑子去想,会想死的。这只是假设纯随机状况下的死亡概率。 下面一步,a1足够聪明,他可以计算条件死亡概率,也就是它选择每一个数的时候的自己死亡的概率,这个也可以用计算机编程算出来。那么这个条件死亡概率,就是它真正的死亡概率。 呵呵,很满意,算是用条件概率加计算机计算,解决掉了这个问题。 |
|
[原创]一道真正难倒亿人的智力题,这是微软的面试题
这个问题有点头痛啊 |
|
[求助]汇编返c
楼主进一步求写程序实现汇编返c |
|
[原创]ADB编译全攻略
非常感谢楼主,敬佩的泪流不止,一塌糊涂。 |
操作理由
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 }}
勋章
兑换勋章
证书
证书查询 >
能力值