-
poj3941
poj 3941
Hideyuki is allowed by his father Ujisato some 1000 yen bills every month for his pocket money. In the first day of every month, the number of bills is decided as follows. Ujisato prepares n pieces of m-sided dice and declares the cutback k. Hideyuki rolls these dice. The number of bills given is the sum of the spots of the rolled dice decreased by the cutback. Fortunately to Hideyuki, Ujisato promises him to give at least one bill, even if the sum of the spots does not exceed the cutback. Each of the dice has spots of 1 through m inclusive on each side, and the probability of each side is the same.
In this problem, you are asked to write a program that finds the expected value of the number of given bills. (poj 3941 Hideyuki is allowed by his father Ujisato some 1000 yen bills every month for his pocket money. In the first day of every month, the number of bills is decided as follows. Ujisato prepares n pieces of m-sided dice and declares the cutback k. Hideyuki rolls these dice. The number of bills given is the sum of the spots of the rolled dice decreased by the cutback. Fortunately to Hideyuki, Ujisato promises him to give at least one bill, even if the sum of the spots does not exceed the cutback. Each of the dice has spots of 1 through m inclusive on each side, and the probability of each side is the same. In this problem, you are asked to write a program that finds the expected value of the number of given bills.)
- 2013-07-16 20:45:28下载
- 积分:1
-
AutoUpdater
通过客户端与服务器端文件对比,实现自动升级功能。(Through the client and server-side document comparison, automatic update feature.)
- 2009-10-27 12:22:34下载
- 积分:1
-
357486644
创建桌面图标,VC++经典编程源码,很好的参考资料。(Create a desktop icon, VC++ classic programming source code, a good reference.)
- 2013-11-14 11:42:17下载
- 积分:1
-
Andciv-Q-A-13.927
andciv 3d printer 控制板常见问题汇总(andciv 3D printer control board QA)
- 2013-10-24 09:38:32下载
- 积分:1
-
MC-reliability
基于蒙特卡洛的电力系统充裕度计算程序(matlab)(The electric power system based on monte carlo abundant degree calculation program (matlab))
- 2020-11-02 14:09:53下载
- 积分:1
-
HardwareShadowMap
NVIDIA实现硬件阴影贴图的源代码
需要硬件支持DX8.1的显卡。(NVIDIA hardware shadow mapping of the source code necessary hardware support 24x graphics.)
- 2006-07-06 15:02:58下载
- 积分:1
-
RC522_RST
RC522_RST.rar R C522_RST.rar(RC522_RST.rar R C522_RST. rar)
- 2006-07-08 15:26:24下载
- 积分:1
-
DLL_use
介绍如何在DLL中进行函数的定义,如何使用外部程序调用DLL中定义的函数。(how the DLL function for the definition, the use of external program called defined in the DLL function.)
- 2007-06-21 21:39:47下载
- 积分:1
-
blur
first blur program on VB6
- 2015-06-05 15:22:07下载
- 积分:1
-
BaseKeyDemo
基本键盘操作的vc程序源码,感兴趣的可以看看,推荐!!!(Basic keyboard operation vc program source code, can be of interest to see, recommended! ! !)
- 2011-09-21 22:20:11下载
- 积分:1