登录
首页 » Visual C++ » poj3941

poj3941

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

  • 2006_31_3_54
    面向对象的信息融合黑板框架的建立,我有一系列关于黑板系统的文章哈(Object-oriented information fusion blackboard framework in place, I have a series of articles on the blackboard system ha)
    2010-06-12 11:44:03下载
    积分:1
  • poly
    一个简单的poly实系数一元项式问题的一个简单的解法,希望对大家有帮助!(A simple coefficient of poly is a dollar-type problem of a simple solution, and they hope to help everyone!)
    2008-04-18 10:21:35下载
    积分:1
  • 12345678
    大规模地形渲演算法,支持LOD处理,是实现虚拟现实的一种方法(Virtural Realy)
    2012-02-07 14:27:06下载
    积分:1
  • yuanmaa
    说明:  对一副图像的直方图进行均衡化,并在客户区输出(histogram equalization and show out)
    2010-03-31 14:27:45下载
    积分:1
  • data_trans
    一个用VB个实现R进制数转十进制数的程序。可以实现二进制、八进制和十六进制数转十进制数的功能。(VB were achieved with R a binary decimal number transfer process. Can achieve binary, octal and hexadecimal number transfer function of a decimal number.)
    2010-05-28 08:44:41下载
    积分:1
  • testCRC
    Visual Studio 2008 实现crc校验方式(Visual Studio 2008 crc check)
    2012-05-25 19:57:48下载
    积分:1
  • Delaunay
    三维重建中散乱点云数据的常用网格生成算法delaunay三角网格生成算法(delaunay triangular mesh generation algorithm)
    2016-11-08 18:24:50下载
    积分:1
  • example
    几个简单的算法实现程序,比较简单,适合初学者(A few simple algorithm procedure is relatively simple, suitable for beginners)
    2009-11-25 21:33:53下载
    积分:1
  • vc知识点
    vc6.0一些基础的知识点,以及对读串口函数的进一步封装(Some basic knowledge points of VC6.0 and further encapsulation of read serial function)
    2020-06-16 22:40:01下载
    积分:1
  • jishiben1
    MFC下写的通讯录管理程序,包含常用功能(MFC write address book management procedures, including common functions)
    2013-05-10 17:44:49下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载