登录
首页 » Visual C++ » poj3941

poj3941

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

  • EXCEL
    有关生成和读取Excel文件的操作类,你一定用得着哦(On the formation and operation of reading Excel file type, you must need it, oh)
    2008-07-06 21:57:05下载
    积分:1
  • beijiguaji
    这是反恐行动永久性的挂机软件~只推荐在经典木乃伊上使用按下H 会出现声音就是了 如果要结束就按 END(this is mission against terror china afk software !! nice to use)
    2014-02-23 13:41:04下载
    积分:1
  • DrawDyline
    说明:  使用MFC对图元文件进行操作,包括保存图元文件,使得变换窗口的时候图像不消失(The use of MFC to operate metafile, including the preservation of metafile which transform the window does not disappear when the image)
    2009-07-24 19:58:48下载
    积分:1
  • stack
    栈采用顺序栈存储,该算法是将表达式转换成后缀表达式输出。(Stack sequential memory stack, the algorithm is to convert the expression into a postfix expression output.)
    2015-05-19 19:16:28下载
    积分:1
  • lineprint
    模拟字符方式(非GUI方式)打印 (Simulating character printing)
    2001-01-06 17:00:20下载
    积分:1
  • face-and-facial-features-using-haar-classifiers
    face and facial features using haar classifiers
    2014-10-24 12:59:34下载
    积分:1
  • 3Dnetwork
    程序分2部分,一部分是用C++编写,负责显示3D效果,另一部分是由C#编写,负责网络通信(Program in 2 parts, one written with C++, responsible for displaying the 3D effect, the other is written by the C# is responsible for network communication)
    2010-10-18 17:00:48下载
    积分:1
  • ReturnEditDemo
    vc ——单行编辑控件输入回车后,不响应默认控件处理消息ReturnEditDemo(vc- single-line edit control, press enter, do not respond to the default control handling messages ReturnEditDemo)
    2011-07-24 19:35:51下载
    积分:1
  • CJLibrary609_dll
    做程序时,写界面的必须,有源码代,有注释。针对初、中、高级专业软件的界面。(Do program, must write interface, source code generation, with comments. In view of the early, middle and senior professional software interface.)
    2016-11-23 22:28:35下载
    积分:1
  • draw_exp15
    计算机图形学实验之 北极星的生成的源程序 说完了(computer graphics experiments Polaris generation about the source of)
    2006-07-01 10:55:32下载
    积分:1
  • 696518资源总数
  • 104349会员总数
  • 32今日下载