-
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
-
VbUpdate
说明: 自动更新程序
用于开发自动更新程序!
为方便开发自动更新的朋友参考!(Automatic Update for the development of auto-update procedure! To facilitate the development of auto-update friends reference!)
- 2008-09-27 00:57:23下载
- 积分:1
-
bofangqi
vb编的播放器,充分运用了多种控件,功能强大!(vb series player,full use of a variety of controls,powerful!)
- 2011-11-28 12:35:15下载
- 积分:1
-
wvm
这是一个2D程序,用DIRECTX9.0写的,请大家一定要注意.(This is a 2D program, using DIRECTX9.0 write, please be aware that.)
- 2009-11-02 15:16:19下载
- 积分:1
-
VC++Delaunay
采用序列化对象CArchive读入原始数据构建Delaunay三角网的VC++代码。可以鼠标点击加新点进行构网,包括二维、三维。还可以进行设色、光照等。(Serializing objects using CArchive read the raw data to build Delaunay triangulation VC++ Code. Mouse clicks can add new points structure network, including the two-dimensional, three-dimensional. Can also be used for colors, light and so on.)
- 2021-04-08 12:49:01下载
- 积分:1
-
FileBillParsor
说明: 在文件系统中,FileBillParsor利用重叠IO,分块、分行处理数据(in the file system, using overlapping FileBillParsor IO, block, the branch data processing)
- 2006-05-11 13:52:04下载
- 积分:1
-
Addressbook
C++,在Dos中实现,用命令完成。代码简单明了!(C++)
- 2010-12-05 11:25:50下载
- 积分:1
-
coal gasification
fluent软件中关于模拟煤粉气化的udf代码。(Fluent software on the simulation of coal gasification UDF code)
- 2020-10-21 17:37:24下载
- 积分:1
-
tlbb3
<天龙八部>游戏外挂必备的一些知识.API,SP++等等.刚开始学习一定要学的东西.也可以直接更新一下基值直接用.(< Dragon> Games plug some of the necessary knowledge. APIs, SP++, just beginning to learn certain things to learn. You can also directly update the direct use of the base value.)
- 2012-05-24 14:25:55下载
- 积分:1
-
P2P_UDP
点到点通信代码,其中包括客户端程序和服务器端程序。(Code point-to-point communications, including client and server-side program.)
- 2007-10-30 16:26:26下载
- 积分:1