登录
首页 » Visual C++ » poj3941

poj3941

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

  • 遗传算法控件
    对于学习遗传算法,并使用vb 语言来编程的用户,会大有帮助的。(for studying genetic algorithm, and use Visual Basic programming language to the user, it will be of great help.)
    2005-05-13 17:21:49下载
    积分:1
  • jdrda
    Source code Image matching source code for image matching
    2018-12-31 05:02:48下载
    积分:1
  • 2
    说明:  一种基于DirectShow 框架的实时视频彩色图像增强方法(A real-time video based on DirectShow framework for color image enhancement method)
    2010-12-09 19:47:29下载
    积分:1
  • CalcRadius
    FLUENT和EDEM结合 快速填充,提取节点坐标,然后在EDEM填充小球(FLUENT and EDEM combination of fast filling, extraction node coordinates, then fill in EDEM pellets)
    2016-01-26 10:45:19下载
    积分:1
  • butterfly
    用定时器控制蝴蝶在窗口中飞舞,BitBlt函数 CBitmap类(With a timer control butterfly flying in the window, BitBlt function CBitmap class)
    2011-06-09 16:15:16下载
    积分:1
  • Windows-jiemianbiancheng
    windows界面编程的代码,,基本的界面操作都可以实现。(windows programming interface code. .)
    2013-04-20 16:45:09下载
    积分:1
  • Gaussprojection
    适用于任意坐标系的高斯投影正反算,包含弧度于角度互相转换函数(Applies to an arbitrary coordinate system the positive and negative Gauss projection operator, including the curvature at the point of transfer function between)
    2009-10-26 20:57:12下载
    积分:1
  • Thinking-in-CPP--2nd-V2
    c++编程思想!对于学习c++是一个很好的帮助!好的程序员必须要看的一本书!(think in c++!very useful to those who want to learn c++ very well!)
    2011-08-15 20:57:32下载
    积分:1
  • 99miao-dao-ji-shi
    说明:  99秒倒计时器fhajkhflkaj glkajgl hkk (99 miao dao ji shi dakljgn fdkfja fa jflka gaklg )
    2011-03-17 18:39:09下载
    积分:1
  • lft2
    用MFC实现的3D图形学中的立方体,可旋转,有三种投影方式,正交,透视,斜投影三种(MFC achieved with 3D graphics in the cube can be rotated in three projection mode, orthogonal, perspective, oblique projection of three)
    2020-06-30 12:00:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载