登录
首页 » Visual C++ » poj3941

poj3941

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

  • splinewidget
    VTK对格式为DICOM医学数据重建后,利用VTKsplinewidget类对其作进行曲线,并能利用鼠标对其人机操作。(VTK format for DICOM medical data reconstruction after VTKsplinewidget class its for the curve, and can use the mouse to its man-machine.)
    2020-10-27 10:29:59下载
    积分:1
  • CRegKey
    处理Register项的类 (The class for dealing with register item)
    2020-10-18 18:27:27下载
    积分:1
  • process-communication
    两个进程之间的通信,使用MFC的WM_COPYDATA方式来编程,内含exe文件,可以直接运行(Communication between two processes, the use of MFC' s approach to programming WM_COPYDATA, containing exe file can be run directly)
    2011-11-08 16:44:01下载
    积分:1
  • Serial-port-control-PTZ-camera
    串口控制云台摄像头的程序,已经测试过了,可以参考(Serial control PTZ camera program has been tested, you can refer)
    2014-11-26 17:47:47下载
    积分:1
  • DeleteCertainFolderFile
    删除指定目录下某种类型的文件,VC++精选编程源码,很好的参考资料。(Delete the specified file is a type of directory, VC++ select programming source code, a good reference.)
    2013-11-26 09:22:48下载
    积分:1
  • 51344325
    专业的VB+ACCESS网址收藏夹程序,有需要大家下载吧(Professional VB+ACCESS URLs favorites procedures, there is a need to download it)
    2013-08-04 14:16:24下载
    积分:1
  • 文件目录资源列表生成器 FileResTool2.0
    文件目录资源列表生成器,QQ:403717(File directory of resources list of generators, QQ: 403717)
    2020-06-26 02:20:02下载
    积分:1
  • Appendix26
    Icmp高级编程 代码在vc++6.0下调试通过(ICMP high-level programming code vc++ 6.0 debugging through)
    2008-08-21 17:20:39下载
    积分:1
  • Emulator_for_Windows_CE _NET
    windows的模拟器,可以仿真硬件,模拟最为真实的开发环境(windows simulator, which can simulate hardware, simulate the truest development environment.)
    2005-07-01 15:03:30下载
    积分:1
  • MarchingCubes
    球体的Marching Cubes实现,运用OPENGL绘制图像(Marching Cubes sphere of the realization of the use of OPENGL rendering image)
    2009-04-23 15:25:53下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载