-
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
-
OperateAccess
VC中利用MFC进行ADO数据库编程实例(ADO database programming examples in VC using MFC)
- 2012-02-17 19:17:04下载
- 积分:1
-
rqplaletent
新编Windows API参考大全,New Windows API Reference(New Windows API reference, New Windows API Reference)
- 2018-12-01 05:37:08下载
- 积分:1
-
VC_rtspdemo
这是一个rtsp的VC++实现,希望对你有用(This is a rtsp' s in VC++, you want to be useful)
- 2011-11-15 19:48:58下载
- 积分:1
-
COOM
Visual c++串口通信工程开发实例导航,该书采用C++编写,里面包含5个综合实例,适合有一定基础的C++人员学习(Visual c++ serial communication engineering development instance navigation, using c++, the book contains five examples of comprehensive, is suitable for the staff to learn c++ has certain foundation)
- 2013-10-22 01:00:12下载
- 积分:1
-
kzcxwzck
控制其他程序成为自己的子窗体,属vb编程窗体、介面类。(Control other programs become their own child form, is a form vb programming, interface classes.)
- 2015-02-25 13:41:49下载
- 积分:1
-
EX_Database01
说明: 这是一个数据库访问技术方面的程序,是基于ODBC技术的数据库访问,显示数据库表中的所有记录。(This is a database access technical aspects of the procedure is based on ODBC database access technology, the database shows the table all records.)
- 2006-03-21 11:54:54下载
- 积分:1
-
Hanzichuli
本文在找出汉字区位码与地址码转换关系的基础上,阐述了用C语言开发的,在西文图形方式下能显示一、二级汉字库中所有汉字的处理软件的设计考虑,并给出了有关程序。(This article find the characters in the location code and address code based on the conversion relationship, described using C language development in Spanish graphics mode to display one or two Chinese characters Chinese characters library processing software and all design considerations, and to out the procedures.)
- 2010-06-05 01:00:18下载
- 积分:1
-
sobel函数用法示例
调用sobel函数 进行边缘检测 结合了高斯平滑和微分求导 是一种经典的边缘检测算子(Calling Sobel function for edge detection)
- 2017-11-21 14:01:06下载
- 积分:1
-
vendorSample
usbtrace dll c making sample
- 2015-04-25 05:06:32下载
- 积分:1