-
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
-
GPS
《GPS应用程序设计》李洪涛著,此书对应的完整源代码,和一分清单。(" GPS application design," Li Hongtao with, the book corresponds to the full source code, and a sub-lists.)
- 2021-05-12 17:30:03下载
- 积分:1
-
VC_project_development_throughout_Record1-2
VC项目开发全程实录(书籍光盘)非常实用的资源!(VC project development throughout Record (Book CD) is very useful resource!)
- 2010-07-19 14:44:41下载
- 积分:1
-
chuanre
传热学的程序,算出温度变化过程,是一天内温度的变化,还不是很完善(Heat transfer process, calculate the temperature change process, the temperature within a day, is not perfect)
- 2010-07-01 10:10:00下载
- 积分:1
-
employee
使用vc++的MFC编程写的人事管理系统,使用SQL Server数据库,系统用户名密码默认admin(The MFC programming using vc++ written personnel management system, using SQL Server , the system default admin username and password)
- 2016-12-30 21:22:23下载
- 积分:1
-
Serial_Communication
一个用Visual C++编写的串口通信的例程,实现了一些串口属性的设置。(A use of Visual C++, prepared by serial communication routines to achieve a number of serial port property settings.)
- 2009-03-21 19:18:06下载
- 积分:1
-
VB__-__IZZ638493202002
IZZY for Visual Basic 6.0.
- 2016-01-04 21:14:25下载
- 积分:1
-
666HOTEL
vc++的课程设计,做的简单的酒店管理系统(vc++ in curriculum design, to do a simple hotel management system)
- 2009-12-17 20:07:42下载
- 积分:1
-
ClientImformationSystem
MFC的增删查改基本功能的实现,对于初学者来说还算不错(MFC s basic CRUD functionality, pretty good for beginners)
- 2020-11-07 21:49:55下载
- 积分:1
-
Day
日期计算
计算日期的天数等等等
简易的日期计算天数(day)
- 2009-11-04 21:01:36下载
- 积分:1