登录
首页 » Visual C++ » poj3941

poj3941

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

  • OnlyOneInst
    VC++ 禁止运行程序的多个实例,程序根据主窗口类名和主窗口名判断是否已经有实例存在,如果存在就将其激活,并显示出来,如果是最小化的就还原窗口;如果有实例存在,则返回False并退出。 (VC++ prohibits running the program multiple instances of the program under the main window class name and the main window name to determine whether there are examples exist, if it will activate and show, if it is minimized to restore the window if examples exist, Returns False and exit.)
    2011-04-21 23:01:44下载
    积分:1
  • sci_echoback
    dsp2812 sci的例子,希望能有帮助(dsp2812 sci example, hoping to help)
    2012-10-20 14:00:27下载
    积分:1
  • Visual_Assist_X_10_5_1715
    Visual Assist X 10.5.1715
    2009-06-11 03:27:37下载
    积分:1
  • chat实例
    基于VC++的局域网聊天室,能够实现多人房间聊天。(LAN chat room based on VC++ can realize multi-room chat.)
    2019-02-15 10:30:43下载
    积分:1
  • alDirectPl18321312222004
    For Direct play sample.
    2009-06-07 00:07:55下载
    积分:1
  • yuvtoavi
    Executable file to convert yuv video file to avi video file . text file eas given for further help.
    2014-01-29 15:02:07下载
    积分:1
  • VC-with-OPC-data-exchange-with-WinCC
    利用OPC实现VC应用程序与WinCC的数据交换(VC application with OPC data exchange with WinCC)
    2013-05-01 09:25:32下载
    积分:1
  • PMA
    PMA规约模拟测试软件。适合初学者使用,包含几个常用规约(PMA Statute of the simulation test software)
    2013-09-17 12:23:28下载
    积分:1
  • VTK-Users-Manual
    VTK用户手册(VC++版),包含VTK系统架构概述,使用基础,VTK可视化技术,三维体数据,数据接口对象等内容(VTK User s Manual (VC++ edition), including VTK system architecture overview, use foundation, VTK visualization technology, three-dimensional volume data, data interface object, etc.)
    2016-01-24 16:34:23下载
    积分:1
  • EnumFontsDemo
    获取系统中已安装的所有字体EnumFontsDemoEnumFontsDemo.rar,很不错的vc源码,希望对大家有所帮助。(Acquisition system has been installed in all the fonts EnumFontsDemo EnumFontsDemo.rar, very good vc source code, we want to help.)
    2011-09-30 21:00:37下载
    积分:1
  • 696518资源总数
  • 106215会员总数
  • 5今日下载