登录
首页 » Visual C++ » poj3941

poj3941

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

  • system
    奥运志愿者管理系统 可以录入奥运志愿者的管理信息,并根据用户权限给出不同的登陆界面和操作界面(Volunteer management system for the Olympic Games can be recorded in the management of volunteer information, and are given different permissions based on user interface and operation of the landing interface)
    2009-04-28 20:25:18下载
    积分:1
  • kmeans_wsn
    无线传感器网络中使用kmeans算法对网络节点进行分簇(wsn kmeans)
    2020-12-07 22:19:20下载
    积分:1
  • csharpTimer
    用C#语言实现的定时器,能够准确实现定时功能(the A timer language with C#, to achieve timing)
    2009-06-17 20:29:27下载
    积分:1
  • IP203_HorizTranspose
    seed的基于dm642的图像水平镜像变换试验!!csl编程!!(seed based on the level of the mirror image transform dm642 test! ! csl program!!)
    2010-10-17 08:37:24下载
    积分:1
  • Demo
    vc如何实现快捷菜单的源码,有兴趣的朋友可以看下(vc how to source the shortcut menu, interested friends may have a look)
    2011-06-10 15:16:17下载
    积分:1
  • MHDMT_EA
    外汇智能交易系统----智能EA 自动交易,自动下单,自动平仓(Forex Expert Advisors---- Smart EA automated trading, automated order entry, automatic open)
    2020-07-23 21:08:43下载
    积分:1
  • Cpp1
    transfer coordinates from BLH system to XYZ system in the foundation of geodesy
    2011-10-05 09:19:40下载
    积分:1
  • RS232_485multi-design
    485多机通讯的连接方式,主要有总线方式、星形方式等(connection of multi pc communication with 485)
    2010-03-03 15:03:27下载
    积分:1
  • CHAPTER-2
    21天学通 Visual C++,第2章(21days study Visual C++, chapter 2)
    2013-12-21 16:17:59下载
    积分:1
  • 个人
    说明:  独立按键控制舵机转动,两个舵机都可以用按键控制。(Independent keys control the rotation of the steering gear. Both steering gear can be controlled by keys.)
    2020-06-21 06:40:02下载
    积分:1
  • 696524资源总数
  • 103886会员总数
  • 81今日下载