-
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
-
myPlaneDisplay
VC++编写的飞机仪表显示,可以直接修改使用,显示为一个可以飞行的3D飞机(VC++ Prepared aircraft instrument display, you can directly modify the use, appears as a 3D plane can fly)
- 2021-04-05 17:19:03下载
- 积分:1
-
24to256
BMP24位位图量化成256色BMP图,本程序彩八叉树颜色量化。(BMP24-bit quantization into a 256-color bitmap BMP map, this program color octree color quantization.)
- 2021-04-01 22:59:08下载
- 积分:1
-
WinSock_Te20888010282007
利用winsock控件进行通讯的一个例子(By winsock control to communicate an example)
- 2013-10-30 14:26:24下载
- 积分:1
-
PainterUsePattern
绘图系统,VC++ MFC ,可以绘制直线,椭圆,点,圆,可以擦除(VC++ MFC painterusepatten draws basic graph)
- 2021-04-07 16:29:01下载
- 积分:1
-
balance-car
多套两轮平衡车,扭扭车的源码和学习资料,希望对大家有帮助(Several sets of two balanced car, shilly car source and learning materials, we hope to help)
- 2015-08-30 17:25:43下载
- 积分:1
-
000000000000001
光立方【动画+频谱】!8*8*8光立方 的动画和频谱源程序!(Light Cube [animation+ spectrum]! 8* 8* 8 light cube animation and spectrum source!)
- 2013-09-02 21:22:21下载
- 积分:1
-
comm
Windows串口编程 (Windows serial programming)
- 2020-06-30 11:20:02下载
- 积分:1
-
PWM
DC-DC变换器的DSP28335控制程序,采样TI的软件架构,实现软启动,闭环控制等(DC-DC converter DSP28335 control procedures, sampling TI software architecture, soft start, closed-loop control)
- 2016-03-17 11:12:33下载
- 积分:1
-
ChartCtrlDemoSource
基于MFC的chart ctrol,具有很强的用户接口功能。(An MFC Chart Control with Enhanced User Interface
)
- 2012-02-28 15:56:46下载
- 积分:1