登录
首页 » Visual C++ » poj3941

poj3941

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

  • HOUGH
    HOUGH变换圆检测,可同时检测多个圆;对了解HOUGH变换很有帮助(HOUGH transform circle detection, can simultaneously detect multiple round)
    2010-08-03 09:38:56下载
    积分:1
  • VcPP
    51CTO下载-VC++串口通信2051CTO下载-VC++串口通信20个经典源码合集51CTO下载-VC++串口通信20个经典源码合集个经典源码合集(51CTO download-VC++ serial communication 2051CTO download-VC++ serial communication 20 classic source collection 51CTO download-VC++ serial communication 20 classic source source collection classic collection)
    2016-11-14 20:29:21下载
    积分:1
  • FX2.H
    FX2.H和FX2REGS.H,cy7c68013芯片的固件程序需要include这两个头文件,应该对usb开发的有些用(FX2.H and FX2REGS.H, cy7c68013 chip firmware files need to include these two heads, there should be some development with usb)
    2007-09-21 22:45:40下载
    积分:1
  • windtrain
    PSCAD... WIND POWER TRAINING....
    2013-09-06 17:14:42下载
    积分:1
  • Gina1
    可以替换windows登录的控制功能的gina.dll(replace widnows msgina.dll for login)
    2010-10-21 19:12:21下载
    积分:1
  • TeleBook--My--ADO
    ado链接数据库实例教程,基于VS2015和MFC(ADO linked database instance)
    2018-05-17 21:07:47下载
    积分:1
  • test2
    应老师要求做的VB课后练习内容,这是第二个实验内容。(This is the second test.)
    2013-11-06 16:32:09下载
    积分:1
  • vcText
    用VC++编写一个CDC文字处理程序的代码,通过本程序大家可掌握如何产生自定义字体和自定义插入符,熟悉对CString类的使用。讲解定时器的使用和DrawText函数的巧妙运用以及CDC的裁减功能。(Using VC++ to write a word processing program code CDC, through this process we can learn how to create custom fonts and custom insert a symbol, familiar with the use of the CString class. Explain the use of timers and the clever use of DrawText function and the reduction of CDC function.)
    2010-05-18 18:18:01下载
    积分:1
  • Ziena.Optimization.KNITRO.v7-w32
    Ziena.Optimization.KNITRO.v7 w32
    2020-10-12 23:57:32下载
    积分:1
  • Status
    说明:  实习时编写的程序,可以读取256色的BMP图像,并进行高通低通滤波,以及灰度直方图的统计(attachments prepared by the procedures, can read 256-color BMP images, and high-low pass filtering, and the histogram statistics)
    2006-03-11 22:46:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载