-
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
-
Wavelet-Transform
基于TMS320C5502的小波变换程序,代码简洁,适合作于学习DSP开发的学习参考程序(TMS320C5502-based wavelet transform procedures, the code is simple and suitable for the development of learning to learn DSP reference program)
- 2013-07-13 21:35:12下载
- 积分:1
-
CSocket-TCP
说明: 基于CSocket的TCP多人聊天程序 平常自己练习用的!(CSocket of TCP-based chat program over usual practice their own use!)
- 2010-04-05 09:24:58下载
- 积分:1
-
9_2
VC中容器和游标的使用,一个简单的例子。。(VC cursor in the containers and the use of a simple example. .)
- 2009-05-31 23:35:52下载
- 积分:1
-
注记边长bczj
autocad插件,批量注记多边形边长,一键调整字体高度(Autocad plug-in, batch note polygon edge length, one key to adjust font height)
- 2020-06-24 09:20:01下载
- 积分:1
-
Ri230-v1
c++ 利用ADO操作数据库,供初学数据库编程的人参考(c++ to operate the database by ADO)
- 2010-12-04 20:49:35下载
- 积分:1
-
protel_increase
说明: protel99 的鼠标增强软件源码,大大方便用户的操作。(protel99 mouse enhancement software source code, greatly facilitates the user' s operation.)
- 2011-04-14 15:34:20下载
- 积分:1
-
LCD1602_时钟
使用51单片机的定时中断原理,在LCD显示时钟(The timing interrupt principle of 51 MCU is used to display the clock in LCD.)
- 2018-05-04 14:09:29下载
- 积分:1
-
base2fft
定点基2-FFT及执行时间测试代码。可以手工输入数据,也可以从文件读入。
文档中含有测试说明和代码。(sentinel-2-FFT execution time and test code. Can manually input data, but also from the file into. Documents containing descriptions and test code.)
- 2007-04-11 22:31:41下载
- 积分:1
-
2005091810100829727
C#开发的文本编辑器(C# development of the text editor )
- 2007-06-19 19:08:16下载
- 积分:1