登录
首页 » Visual C++ » poj3941

poj3941

于 2013-07-16 发布 文件大小:1KB
0 195
下载积分: 1 下载次数: 2

代码说明:

  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.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • danchun
    这是一个解单纯形表的软件,矩阵的输入和结果的输出均在dos里实现,偶尔会有闪退,请耐心使用(This is a software solution simplex table, output matrix input and results are implemented in dos, the occasional flash back, please use patience)
    2015-12-19 15:32:55下载
    积分:1
  • killapp
    查找指定进程,并且可以强制结束该进程。中间有源码。(Find the specified process, and can force the end of the process. The middle of the source code.)
    2011-05-11 10:19:18下载
    积分:1
  • Dsound
    说明:  DirectX声音编程及管理,Visual+C++音频视频处理技术及工程实践本光盘实例源文件第4张(DirectX Sound Demo and DirectX Sound Manager)
    2010-05-03 20:47:22下载
    积分:1
  • clock
    说明:  .net工程,一个openvg的demo,想学openvg的同学很有帮助(an openvg demo based on .net)
    2009-08-25 10:20:53下载
    积分:1
  • LiveZilla_3.1.8.6
    免注册QQ/MSN号码,直接在网页上聊天/通话/视频,最佳在线客服.(Live Support)
    2010-05-18 17:35:55下载
    积分:1
  • DrawPicture
    计算机图形学的例子,包含有图形平移,旋转,3d显示和消隐等(Examples of computer graphics, including graphic translation, rotation, 3d display and blanking)
    2012-11-20 22:44:35下载
    积分:1
  • prime
    判断数字是否是质数,很好用的,对于小学生来说!(Determine whether the number is a prime number, the good, is for students!)
    2010-12-02 23:02:53下载
    积分:1
  • essentialcom
    This is a good book for the windows com.
    2009-05-12 09:42:02下载
    积分:1
  • tongxunluxitong
    小型通讯录系统,能实现数据的查询。添加。删除。修改等功能。(Small address book system, to achieve the query data. Adding. Deleted. Modify functions.)
    2013-12-09 12:51:53下载
    积分:1
  • ThemesVB
    You can only set the Theme programmatically in the PreInit event, but this would mean you d have to have code in every page. The master page doesn t have a PreInit event.
    2009-07-09 18:25:48下载
    积分:1
  • 696518资源总数
  • 106164会员总数
  • 18今日下载