登录
首页 » Visual C++ » poj3941

poj3941

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

  • RegSample_Pdo
    说明:  本程序是一个关于内存操作的驱动程序。希望对大家有所帮助。(this program is a memory operation on the driver. We want to help.)
    2006-04-01 16:31:49下载
    积分:1
  • modiGrid4
    Wrapper module for 10tec iGrid control (VB6 version) for Visual Basic 6.
    2013-12-01 02:35:32下载
    积分:1
  • STM32+MC20定位系统
    说明:  Based on the stm32+mc20 gps positioning system, the 32 serial port control 20 sends the AT command and uploads it to the platform via http.
    2020-06-21 13:20:06下载
    积分:1
  • CTP_API_Sample
    上期技术CTP接口示例源码,可以根据这个示例开发自己的交易平台(Examples of technology interfaces on the CTP source)
    2010-11-04 11:23:49下载
    积分:1
  • 89765456
    使MDI子框架窗口初始时最大化或最小化,VC++精选编程学习源码,很好的参考资料。(The initial MDI child frame window is maximized or minimized, VC++ select learning programming source code, a good reference.)
    2013-12-01 18:08:06下载
    积分:1
  • CAN_Examples
    Can 总线实现的安装例程,可以学习can总线中的必要协议技术(Can the installation of bus routines, can learn the necessary bus protocol technology)
    2009-07-07 10:29:57下载
    积分:1
  • SkinH_Aero
    换肤 vc例子 SkinH_Aero 换肤 vc例子 SkinH_Aero(Skin VC SkinH_Aero example Skin VC SkinH_Aero example )
    2016-03-17 22:22:41下载
    积分: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
  • MSComm
    实例321——利用MSComm控件进行串口通信(Examples 321 use MSComm control serial communication)
    2016-06-03 13:17:57下载
    积分:1
  • EnumDevice
    使用setupapi枚举硬件设备的代码,很经典的(setupapi )
    2012-02-07 18:09:43下载
    积分:1
  • 696518资源总数
  • 106222会员总数
  • 14今日下载