-
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
-
vcPPbczn
VC++ 编程指南,入门教程,初学者必读(VC++ Programming Guide, Tutorial)
- 2011-07-13 14:32:41下载
- 积分:1
-
papers2
journals papers for research
- 2017-01-31 21:59:01下载
- 积分:1
-
speedhack
knight online mmorpg - speedhack source for an earlier version of the game.
- 2014-03-19 05:19:46下载
- 积分:1
-
Windows下的ICMP封装
Windows下的ICMP封装-Clcmp class which can echo
- 2022-02-15 15:10:32下载
- 积分:1
-
changeable-mirror-windows-phone
windows phone app
百变魔镜,实现动态跟静态对图片进行各种搞笑变形,多种哈哈镜功能(windows phone app Variety Mirror, dynamic static pictures with various funny deformation features a variety of fun-house mirror)
- 2014-01-26 22:29:53下载
- 积分:1
-
TestTimeApplication
用delphi写的时间测试小程序,供初学者参考(used the time to write a small test procedures for beginners reference)
- 2006-07-24 14:34:52下载
- 积分:1
-
HTTP principle and source
断点续传原理及源程序-HTTP principle and source
- 2022-01-25 23:35:18下载
- 积分:1
-
similarity
count the distance of word net
- 2013-09-21 06:20:55下载
- 积分:1
-
wordedit
c#的写字版程序我自己写的.本文探讨了使用C#从底层开发一个带格式的文本编辑器的任务,深入探讨了其中的文档对象模型的设计,图形化用户界面的处理和用户操作的响应,说明了其中的某些技术问题和解决之道。 (version of the writing process I wrote it myself. This paper discusses the use of C# development from the ground up with a format of the text editor's mandate, in-depth study of the document object model design, graphical user interface processing and user response shows some of these technical problems and solution.)
- 2006-06-20 20:32:18下载
- 积分:1