登录
首页 » Visual C++ » poj3941

poj3941

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

  • SKYBOX
    游戏中天空盒的模拟实现,鼠标控制观察这个天空盒,工程的构架可以通用,极大方便读者。(Game simulation of the realization of the sky box, mouse control to observe the sky boxes, the project can be generic framework, which greatly facilitate the reader.)
    2008-07-09 19:02:30下载
    积分:1
  • AutoTicheting
    用C语言写的火车自助售票系统,实现火车票务管理和用户购票(Written in C language train self-ticketing system, ticket management and user traffic tickets)
    2014-10-25 13:13:52下载
    积分:1
  • 101259345hXeu7KjO
    xzccxawefwefregref豆腐干的 额外 发 懂得的 ( ccfdsgvergrtgreg)
    2009-11-19 09:02:52下载
    积分:1
  • ReadMessages
    Read sms c# with smslib 3.5.3
    2013-10-02 12:29:34下载
    积分:1
  • WDM_Driver
    windows驱动详解张帆著 第一章 源码 wdm_driver,非常详细适合入门级的驱动开发(Detailed sails windows driver source code with the first chapter wdm_driver, very detailed for entry-level driver development)
    2013-10-23 10:59:55下载
    积分:1
  • internal-staffs-learning-materials
    华为内部员工学习资料,对于想进华为的朋友会有很大帮助。(The internal staff s learning materials in huawei is more helpfull for someone who want to go huawei.)
    2012-02-17 11:43:08下载
    积分:1
  • Deal_Excel
    说明:  一个小例子 如何操作Excel 无条件添加数据(vb.net teach you how to add Excel)
    2020-06-16 23:20:01下载
    积分:1
  • result
    将深度文件转换为WATCH或FORWARD可直接加载的OG_RESULT.list文件,很方便。(The depth of files are converted to WATCH or FORWARD can be loaded directly to the OG_RESULT.list file, very convenient.)
    2011-10-04 16:31:10下载
    积分:1
  • xxxxx
    自己开发的一个 cdc 自绘制与 tooltip 完美结合的例子。(Developed a cdc from the perfect combination of drawing and tooltip example.)
    2008-03-22 22:05:58下载
    积分:1
  • 多种字体的实现
    Viaual C++中的各种字体的实现,源码注视详尽,适合初学者学习,以及有一定经验的朋友参考(The implement of the Fonts in Viaual C++)
    2005-06-24 22:28:32下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载