文件名称:acm
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.74kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
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.
注意:色子的点数是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
O(nm).cpp
坚持不懈.cpp
蒙特卡洛.cpp
2^n.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.