登录
首页 » Visual C++ » poj3941

poj3941

于 2013-07-16 发布 文件大小:1KB
0 204
下载积分: 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 个回复

  • 99507959Modbus1.0
    VC编写的串口调试软件,内含Modbus协议类 支持对Modbus通讯调试-VC prepared serial debugging software category includes Modbus protocol support for Modbus communications debugging
    2011-07-06 10:06:17下载
    积分:1
  • fenggetest
    说明:  自编的文件分割器,功能比较全,可供参考。(Own partition of the documents, and full-feature comparison is available for reference.)
    2008-11-27 17:11:59下载
    积分:1
  • GMRES
    本文件是gmres算法的c语言代码,大家都抓紧抢着下载哦。(This document is gmres algorithm c language code, everyone rushing to seize download oh.)
    2014-01-04 22:15:10下载
    积分:1
  • blackhole2013-ns234-patch
    about installing ns2 in windows
    2014-06-07 21:58:13下载
    积分:1
  • fangdajing
    放大镜程序源代码 放大镜程序源代码 放大镜程序源代码(fang da jing just do it!just do it!)
    2010-07-29 19:11:38下载
    积分:1
  • Warehouse_Management_program_source_VB_SQL2000.
    仓库管理程序源码VB SQL2000.Warehouse Management program source VB SQL2000.(Warehouse Management program source code VB SQL2000.Warehouse Management program source VB SQL2000.)
    2010-08-11 17:51:55下载
    积分:1
  • principal_curvatures
    基于PCL的三维点云模型表面主曲率估计的具体实现(estimation of the principal curvature)
    2013-12-19 18:52:43下载
    积分:1
  • 5477375
    带背景工具栏的文本编辑器,VC++经典编程源码,很好的参考资料。(With the background of the toolbar text editor, VC++ classic programming source code, a good reference.)
    2013-11-14 18:51:07下载
    积分:1
  • xp163.com.7.1.9
    基于CPB v2.0正式版修改而成,主要功能: 1 超连接改成自动变彩色 2 回复增加机遇插件 3 简单门派插件 4 首页发帖明星插件 5 点歌与播放器结合插件 6 公告加入小狗狗图标(CPB v2.0 Based on the final version of revisions, the main functions : an ultra-connect automatically change color into two plug-in reply to increase opportunities featuring three simple plug-star posting four Top 5 parlors plug-and-play device with plug-six small dogs joined Notice icon)
    2005-06-27 09:54:56下载
    积分:1
  • exoosg
    exercis on osg programing in visuel basic c++
    2013-11-09 19:19:42下载
    积分:1
  • 696518资源总数
  • 106242会员总数
  • 10今日下载