登录
首页 » Visual C++ » poj3941

poj3941

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

  • 屏幕闪烁
    该程序关于BMP位图的导入、显示及相关操作,通过定时器的使用来实现屏幕闪烁(procedures on the bitmap BMP import, display and related operations, through the use of timers to achieve scintillation screen)
    2005-07-05 09:11:45下载
    积分:1
  • VB-automatically-generate-G-code
    VB自动生成G代码VB自动生成G代码VB自动生成G代码(VB automatically generate G-code)
    2020-12-25 14:49:04下载
    积分:1
  • iliyh
    含有可執行文件,用bmp來卸的,非常漂亮的表面(Contains executable files, unloaded with bmp, very nice surface)
    2018-10-22 03:47:53下载
    积分:1
  • PreventMultipleInstancesofa32-bitVBApplication
    防止重载多个实例的实用源代码(Prevent Multiple Instances of a 32-bit VB Application)(VB or VB.NET)(To prevent multiple instances of heavy-duty practical source code (Prevent Multiple Instances of a 32-bit VB Application) (VB or VB.NET))
    2007-09-26 19:31:23下载
    积分:1
  • Freescale_image_capture_host_computer_program
    我自己写的一个程序,能够显示“飞思卡尔”智能车通过串口传送回来的图像,支持设置图像大小等功能。(I wrote a program, it will show " Freescale" smart car through the serial port to send back images to support functions such as image size settings.)
    2009-09-26 18:24:11下载
    积分:1
  • Pass
    关于TP对KdDisableDebugger双机限制的解决代码。(TP limit of KdDisableDebugger double machine to solve the code.)
    2013-04-02 10:28:37下载
    积分:1
  • CAP2
    用于电机控制领域,精确得测量计算电机转速和转子位置角度(Measuring motor speed and rotor position angle)
    2014-05-06 09:52:26下载
    积分:1
  • 6_2mine
    数字信号处理中关于最小误差平方计算处理的程序(Digital signal processing for the minimum square error calculation processing procedures)
    2013-05-22 12:02:33下载
    积分:1
  • demoV3
    DUILIB QQDownload演示界面 DUILIB 界面库 开源 www.duilib.com(DUILIB帮助说明文档 DUILIB 界面库 开源 www.duilib.com)
    2011-10-06 21:16:12下载
    积分:1
  • ADS1115
    ADS1115 源码 精炼版 ADS1115 6/5000 Yuánmǎ jīngliàn bǎn Source refined version(ADS1115 u6E90 u7801 u7CBE u70BC u7248)
    2017-05-20 15:14:35下载
    积分:1
  • 696518资源总数
  • 105179会员总数
  • 5今日下载