-
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
-
4637354
Windows音频音量控制实例VB代码,有需要的下。(Windows VB code, audio volume control instance in need.)
- 2013-08-19 08:37:33下载
- 积分:1
-
mymapp
用C++中的MFC编程实现正轴等角割圆柱投影,实现以下要求:
取克拉索夫斯基椭球
(1)制图区域: Bs=0°, BN=25°
LE=105°, LE=125°
(2)经纬线间隔: ΔB=ΔL=5°
(3)制图比例尺: 1:M0=1:1000 000
(4)标准纬线: Bk=±15°
计算经纬网格点的 x, y,m,n, p
(With C++ Of MFC programming is cutting Conformal cylindrical projection axis to achieve the following requirements: check克拉索Malinowski ellipsoid (1) mapping the region: Bs = 0 °, BN = 25 ° LE = 105 °, LE = 125 ° (2) latitude and longitude line spacing: ΔB = ΔL = 5 ° (3) Drawing scale: 1: M0 = 1:1000 000 (4) the standard parallels: Bk = ± 15 ° latitude and longitude grid computing point x , y, m, n, p)
- 2007-12-03 03:36:43下载
- 积分:1
-
GridViewgroup
gridviewhelpervb cla
- 2007-12-18 09:14:14下载
- 积分:1
-
4637354
Windows音频音量控制实例VB代码,有需要的下。(Windows VB code, audio volume control instance in need.)
- 2013-08-19 08:37:33下载
- 积分:1
-
4754757
使应用程序支持网页浏览,VC++精选学习源码,很好的参考资料。(The application supports webpage browsing, select learning VC++ source code, a good reference.)
- 2013-11-20 14:46:29下载
- 积分:1
-
Effective-CPP
Effective C++ 非常经典的C++书籍,基本上学C++的人没有不知道这本书的。书中介绍了55个准则,每一条准则描述一个编写出更好的C++的方式。(Effective C++ is the classic C++ books, basically learning C++, people do not know this book. The book describes 55 guidelines, each guideline describes a write better C++ way.)
- 2011-05-16 23:56:33下载
- 积分:1
-
LdoubleBall20o
双色球分析系统及源代码完整版,不仅可以帮助你有效分析双色球的特点点,给你提高有价值的参考信息;同时,程序代码也是你编程学习的导师!
(Color ball analysis system and the full version of the source code, can not only help you to effectively analyze the color ball characteristics point to give you to raise valuable reference information same time, the program code you programmed learning mentor!)
- 2012-09-30 19:31:52下载
- 积分:1
-
maketshouyin
超市前台收银系统用 c++ 和达梦数据库,包含数据库文件和源代码。(Supermarket front cash register system with c++ and dream up database that contains the database files and source code.)
- 2012-12-03 20:35:52下载
- 积分:1
-
DUNK!!!
能对输入的两个数进行任意的四则运算,输入数字和符号即可(to the importation of two arbitrary number of the four operations, the importation of figures and symbols can be)
- 2006-10-30 23:24:29下载
- 积分:1