-
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
-
EffectiveCPP
Effctive C++,一本不错的书,值得一看(Effctive C++, a good book, worth a visit)
- 2012-11-10 10:27:38下载
- 积分:1
-
usb
communication usb embedded c
- 2013-08-03 20:20:26下载
- 积分:1
-
934567
使用ADO执行SQL命令,VC++精选编程学习源码,很好的参考资料。(Use the ADO SQL command, VC++ select learning programming source code, a good reference.)
- 2013-11-28 17:23:15下载
- 积分:1
-
HVPM_Sensored
dsp 28335 空间矢量脉冲宽度调制(dsp 28335 space vector pluse wide modulation)
- 2016-03-02 09:59:12下载
- 积分:1
-
keyboardold
STC12C5A60S2的单IO通过自带AD控制多个按键,自己已经测试,用于项目中。(STC12C5A60S2 single IO AD through its own control multiple keys themselves have been tested for the project.)
- 2014-03-21 15:51:46下载
- 积分:1
-
jiyuzujianqiuyuanguanlixitong
基于组件球员管理系统,运用GIS技术,结合的“基于组件的工作流管理信息系统“(Component-based player management systems, using GIS technology, combined with the " component-based workflow management information system" )
- 2010-05-21 15:49:13下载
- 积分:1
-
chat
网络聊天室,实现类似QQ的功能,通过链表对客户管理(sockeg programming)
- 2011-01-24 01:46:22下载
- 积分:1
-
果云esp8266开发板原理图
【实例简介】果云开发板底板原理图.pdf
- 2021-10-06 00:30:58下载
- 积分:1
-
TCPhit
WINDOW的打孔程序源代码,还有作者的说明,不错,想做病毒、外挂的学学,教你怎么样穿透防火墙(WINDOW perforated the source code, as well as the author s note, yes, we want to do viruses, plug-in to learn, teach you how to penetrate the firewall)
- 2007-11-29 16:27:01下载
- 积分:1