登录
首页 » Visual C++ » poj3941

poj3941

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

  • 45743543634
    一个VB系统托盘提示控件程序,有需要的就下载吧。(A VB system tray prompt control procedures, there is a need to download it.)
    2013-08-04 15:16:40下载
    积分:1
  • Ado
    VC 通过ado技术连接access数据库,实现增删改查(The VC connection access database ado technical CRUD)
    2012-08-23 16:23:12下载
    积分:1
  • TeleBook--My--ADO
    ado链接数据库实例教程,基于VS2015和MFC(ADO linked database instance)
    2018-05-17 21:07:47下载
    积分:1
  • tabu-search
    An algorithm for tabu search methode for solving optimization problems
    2013-11-18 01:29:59下载
    积分:1
  • gethouse_inf
    用http协议实现网页浏览并采集信息,本程序对固定发布的房产信息网进行采集将最新资源存在在文件中(simple explorer)
    2009-09-21 23:40:31下载
    积分:1
  • moses
    记录鼠标的操作,让您操作一次之后,即可操作任意次数!(Record mouse operation, allows you to manipulate time after, you can operate any number of times!)
    2010-05-22 16:01:04下载
    积分:1
  • 24点游戏设计
    说明:  24点游戏的关键代码和流程图,适合新手进行学习(Key Codes and Flow Charts for the 24-Point Game)
    2019-01-09 08:33:15下载
    积分:1
  • AceConverter_DXF转G代码
    dxf图转G代码工件软件,dxf读取过程清晰(DXF diagram to G code workpiece software, DXF read process is clear)
    2017-07-12 14:18:48下载
    积分:1
  • accel_editor
    编辑快捷键(the example of editing fast key)
    2021-04-26 14:58:45下载
    积分:1
  • CS05_fileencodingtransform_src
    VC8源代码,VS.NET 2005 下开发,托管代码。功能:文件编码转换(VC8 source code, VS.NET 2005 under development, managed code. Function: file encoding conversion)
    2009-02-20 15:01:02下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 42今日下载