登录
首页 » Visual C++ » poj3941

poj3941

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

  • Wince2410_BuzzerDrv
    2410的WINCE蜂鸣驱动程序代码,提供给大家参考学习使用 (2410 WINCE beep driver code provided for your reference learning to use)
    2009-09-07 16:59:53下载
    积分:1
  • FIST
    一种根据多边形进行三角网格剖分的算法,简称FIST.希望对相关网友有所帮助。(A method according to polygon mesh triangulation algorithm, referred to FIST. Want to be helpful to the relevant users.)
    2013-06-19 15:42:30下载
    积分:1
  • ISP_pc_14y1231b
    透過 Socket 擷取影像,並進行 OpenCV MOG2 計算(Capture images through Socket, and OpenCV MOG2 computing)
    2014-12-31 16:51:58下载
    积分:1
  • Server
    6自由度液压平台的演示代码,实现了简易波浪模型,控制液压平台模拟海浪效果.(3d demo)
    2009-05-12 20:46:29下载
    积分:1
  • Button
    MFC基本对话框里设置一个一显示就被禁用的按钮,小程序(MFC dialog box to set up a basic display to be disabled a button, a small program)
    2010-12-29 11:25:54下载
    积分:1
  • WindowsSockets
    SOCKET编程规范(SOCKET programming specification)
    2008-03-27 15:35:30下载
    积分:1
  • maximun
    最大最小化练习程序,适合初学者的入门参考程序(Maximin exercise program, suitable for beginners reference program)
    2010-09-20 09:00:09下载
    积分:1
  • 1
    说明:  大一时候学的第一个关于vc++的知识点,虽然很容易,但也是基础。(The first leaning skill about vc++.)
    2015-11-07 21:14:53下载
    积分:1
  • 基于噪声点检测的中值滤波方法_马学磊
    图像识别中,对噪点的检测的中值滤波的方法。(Image recognition, median filtering method for the noise detection)
    2017-07-06 16:20:55下载
    积分:1
  • MATRIX
    VC++矩阵运算类,提供各类矩阵运算的算法,是一个很不错的运算类(VC++ matrix operations class, provide all kinds of matrix operation algorithm, is a very good algorithm )
    2015-08-04 16:14:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载