登录
首页 » Visual C++ » poj3941

poj3941

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

  • WinTool3389
    用于3389远程端口修改的小工具,MFC实现并且增加虚拟机检测功能,防止小白遇到黑心服务商用虚拟机代替服务器(Remote 3389 port to modify the gadgets used, MFC and increase the virtual machine detection function, prevent white encounter black heart service commercial virtual machine instead of the server )
    2015-11-17 13:30:19下载
    积分:1
  • ViewPortWins
    说明:  演示 Windows VC 下 DC 的视口和 窗口之间的换算关系(DC presentation under the Windows VC Viewport and window conversion relationship between)
    2008-12-04 14:30:01下载
    积分:1
  • BlueTooth
    蓝牙连接实例,实现蓝牙连接。。。。。。。(Bluetooth connection instance, to achieve a Bluetooth connection. . . . . . .)
    2010-11-10 11:14:22下载
    积分:1
  • 03
    说明:  采用VS2005 功能是“如何从指定FTP服务器下载文件” 目的是学习用(VS2005 feature is the use of &quot How to FTP server to download from the specified document&quot aimed at learning to use)
    2009-01-30 22:33:01下载
    积分:1
  • Agent
    Microsoft Agent在VC中的调用,里面还附了一篇介绍的文章。注意,必须保证系统中安装有Agent的人物。(Microsoft Agent in the VC of the call, which also included an introduction of the article. Attention to the need to ensure that installed on the system have Agent characters.)
    2008-07-27 17:20:01下载
    积分:1
  • AP_For_VRPTW100
    车辆路径问题的C代码,里面有测试数据和结果分析。(Vehicle routing problem with the C code, there are test data and results analysis.)
    2009-05-17 11:40:39下载
    积分:1
  • driverDDKFloowMe02
    黑客防线:windows 驱动开发视频培训教程 02(Hacker Defense: windows-Driven Development Video Training Tutorial 02)
    2010-01-21 10:04:50下载
    积分:1
  • barcodeTry
    串口通信,C#,winform窗口,可实现一个小的串口助手的程序。(Serial communication, C#, WinForm window, can implement a small serial port assistant program.)
    2021-04-21 08:38:49下载
    积分:1
  • student
    学生成绩管理,默认登录密码为:wood。(Management of student achievement, the default login password is: wood.)
    2009-06-27 10:02:17下载
    积分:1
  • ConvertBMP
    压缩BMP图片 联合开发网 - pudn.com
    2020-06-16 10:40:01下载
    积分:1
  • 696518资源总数
  • 105279会员总数
  • 10今日下载