登录
首页 » Visual C++ » poj3941

poj3941

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

  • wincedriver
    学习WINCE驱动开发的入门书籍 很不错的(Learning WINCE entry driven development is very good books)
    2009-01-16 14:48:42下载
    积分:1
  • NFTL
    NTFL Flash translation layer
    2012-05-02 10:09:35下载
    积分:1
  • 565566
    扩展收缩对话框应用程序界面,VC++编程精选学习源码,很好的参考资料。(Expansion contraction dialog application program interface, VC++ programming featured learning source code, a good reference.)
    2013-11-19 18:57:47下载
    积分:1
  • GATSP
    利用遗传算法优化TSP问题,较好的一个例程,在VC++平台下开发(use GA optimize TSP problem under VC++)
    2010-03-01 16:33:56下载
    积分:1
  • 生成colorbar
    实现生成colorbar的程序源代码,里面包含多种颜色,还有热度图(achieve the generation of Colorbar source code)
    2020-07-06 14:48:58下载
    积分:1
  • CADInnovate12.23.1
    Acis R15,hoops/mfc 12.0, xt12.0 写的一个 图形绘制软件的框架。Vc 2003 平台。 有基本的基于上面所述的组件组成的3D造型的演示。(Acis R15, hoops/mfc 12.0, xt12.0 to write a graphics rendering software framework. Vc 2003 platform. Based on the above basic components described in the presentation of 3D modeling.)
    2008-12-28 01:03:39下载
    积分:1
  • yuesefuhuan
    这是我们班做的数据结构的课程设计约瑟夫环 (This is our class to do the data structures curriculum design Joseph Ring)
    2010-01-05 15:10:04下载
    积分:1
  • yuankong
    上万元的远控源码上万元的远控源码,超级给力,黑客必备!!(Million yuan of remote control remote control source code, super awesome, hackers must!! )
    2014-06-25 11:41:01下载
    积分:1
  • cmd1012
    服务级后门T-Cmd源代码服务级后门T-Cmd源代码(Service-level backdoor T-Cmd source service-level backdoor T-Cmd source code)
    2016-10-22 10:46:35下载
    积分:1
  • 钻石矿工
    算法设计中的钻石矿工问题在一座金字塔每块石头上都镶有一块钻石从金字塔的顶端向下收集钻石尽可能收集价值高的钻石,每层每次只能从一块砖斜向左下或斜向右下走到另一块砖上。设计算法求出获取的钻石最大价值及路径。(动态规划)(The problem of diamond miner in algorithm design is set up on every stone in Pyramid. A diamond is collected from the top of Pyramid. Diamond is collected as high as possible. Every layer can only lean from one brick to the left or to the right to go to the next brick at a time. The design algorithm is used to find the maximum value and path of the obtained diamond. (dynamic programming))
    2020-10-21 08:37:24下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载