CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 数值算法/人工智能

文件名称:acm

介绍说明--下载内容来自于网络,使用问题请自行百度

ACM题目:蒙特卡洛算法。帕秋莉大人总是足不出户呢,这样怎么能行呢?于是咲夜找到帕秋莉大人,希望她能每天外出锻炼一段时间。当然,帕秋莉大人断然拒绝了。在咲夜的再三劝说下,帕秋莉大人答应了接下来接近一个月时间的训练计划,但是——帕秋莉大人怎么可能认真执行呢?帕秋莉大人每天会扔n次色子,只有当扔出了至少m次连续的大于3的数时,她才会真正执行训练计划。那么,现在告诉你每天帕秋莉大人扔色子的次数n,和最少连续的大于3数的次数m,你能算出帕秋莉大人每天外出运动的概率么?

注意:色子的点数是1~6,假设每次扔色子出现每种点数的概率都是相等的。 -Pa autumn Li adults always stay at home then, so how can do it? So Misaki autumn night to find Pa Li adults, I want her to go out every day forging

Refining for some time. Of course, Pa Li adults fall flatly refused. Misaki s repeated persuasion in the night, the adults agreed to par next autumn Li received

Nearly a month training program, but- how could adults Li Pa fall seriously enforced? Pa Li adults fall n times a day will throw color

Son, throw only when at least 3 m times greater than the number of consecutive time, she will really implement the training program. Well, now tell you every

Li Pa autumn days the number of adults throwing dice n, and the minimum number of consecutive times greater than 3 m, you can calculate the daily par Qiu Li adults go for sports

The probability of it?

Note: The dice is 1 to 6 points, assuming that each appeared to throw the dice the probability of each point are equal.
(系统自动生成,下载前可以参看下载内容)

下载文件列表

O(n).cpp
O(nm).cpp
坚持不懈.cpp
蒙特卡洛.cpp
2^n.cpp

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com