登录
首页 » Visual C++ » poj3941

poj3941

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

  • c
    说明:  经典c语言源代码,对学习c语言的人很重要,值得一看(Classic C language source code is very important, see, learn c language)
    2012-06-26 15:22:56下载
    积分:1
  • 半桥式LLC变换器仿真模型
    采用Visio Studio编译生成动态链接库,嵌入Psim进行仿真。仿真模型提供了半桥谐振变换器的数模混合仿真,有动态链接库实现PWM的分配。(Visio Studio is used to compile and generate dynamic link libraries, which are embedded in Psim for simulation. The simulation model provides digital-analog hybrid simulation of half-bridge resonant converter, with dynamic link library to realize PWM allocation.)
    2020-06-21 02:40:01下载
    积分:1
  • msdn风格界面用户界面
    说明:  一种类似 vc++6.0MSDN风格的界面,和数据库结合,可实现搜索、索引、目录等功能,很实用,(vc 6.0MSDN a similar style of interface, and databases, to search, index, table of contents and other functions, is very practical,)
    2005-10-24 14:49:49下载
    积分:1
  • NEW_MAIN_CTRL
    说明:  对一些进程的简单控制,使用vs工具开发的winform程序,可供交流学习(It s a simple controller.)
    2011-04-07 16:04:00下载
    积分:1
  • Equipment_debug
    VB写的GPIB通讯例子+源码下载,NI 安捷伦 GPIB 大家可以参考看看。在仪器面板中可选择连接方式、GPIB地址、网络地址,可以发送命令。用了一些控件来美化窗体的按钮。(VB wrote GPIB communications+ source code examples download, NI Agilent GPIB we can take a look. In the instrument panel, optional connection, GPIB address, network address, you can send commands. Used some form of control to beautify the button.)
    2014-05-09 12:25:19下载
    积分:1
  • pb01
    PB开发者的重点说明,能够很好的介绍给初学者学习PB开发。(PB developers highlights can be a good introduction for beginners learning PB development.)
    2013-07-29 20:59:48下载
    积分:1
  • exosip
    说明:  开源的 SIP 电话代码 (Open-source SIP phone code)
    2008-10-10 20:23:15下载
    积分:1
  • TeleBook--My--ADO
    ado链接数据库实例教程,基于VS2015和MFC(ADO linked database instance)
    2018-05-17 21:07:47下载
    积分:1
  • virtualpiano
    simple virtual piano keyboard
    2011-11-08 17:14:23下载
    积分:1
  • zbzh070620
    用来实现极坐标和直角坐标的转换,C++程序(Used to achieve the polar coordinates and rectangular coordinates conversion, C++ Procedures)
    2007-10-25 16:14:34下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载