登录
首页 » Visual C++ » poj3941

poj3941

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

  • SafetyEva
    电力系统设备安全性评估 主要针对接入分布式电源的配电网(The safety Calculation of Power system)
    2013-10-05 18:23:49下载
    积分:1
  • CVI_rs232
    Labwindows CVI 中不错的串口编程,串口调试(Good serial programming Labwindows CVI, serial debugging )
    2020-07-07 23:18:57下载
    积分:1
  • CFarmMangement
    这是一个用MFC对话框连接数据库编写的源代码 (his is a source code written in MFC dialog box to connect to the )
    2014-12-11 20:32:32下载
    积分:1
  • VB-script-5.6-r
    VB script 5.6 对经典的学习js和vbs的教程,微软出品(VB script 5.6 of classical learning js and vbs tutorial, Microsoft Publisher)
    2013-03-24 09:55:57下载
    积分:1
  • Calibration
    说明:  halcon标定例程,适合初学者了解HALCON的使用(HALCON CALIBRAITON EXAMPLE)
    2020-03-16 10:28:01下载
    积分:1
  • 0087654
    给工具栏按钮设置下拉箭头,VC++编程精选学习源码,很好的参考资料。(To set the drop-down arrow button on the toolbar, select learning VC++ programming source code, a good reference.)
    2013-11-19 10:53:26下载
    积分:1
  • shift-sin-wav
    移动的正弦线。这一个参考了网上生成正弦线程序,新建了一个CStatic派生类,外加定时器做的使,用了双缓冲技术。涉及PostMessage函数的使用。(Moving sine line. This is a reference to generate sinusoidal line online program, created a new CStatic derived class, plus a timer to do so, with a double-buffering. Involving the use of PostMessage function.)
    2011-05-31 13:01:17下载
    积分:1
  • DDrawClipper
    测试DirectDraw的裁剪器(Clippers)的例子。(Test the DirectDraw clipper (Clippers) example.)
    2011-09-18 22:46:42下载
    积分:1
  • tcpserver
    一个能够接受TCP/IP连接的服务器源代码(One can accept TCP/IP connection the server source code)
    2011-04-26 10:52:28下载
    积分:1
  • 6790966
    Winamp样式的自动停靠对话框,VC++经典编程源码,很好的参考资料。(Winamp style automatic berth dialog, VC++ classic programming source code, a good reference.)
    2013-11-15 09:09:59下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载