登录
首页 » Visual C++ » poj3941

poj3941

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

  • ippsman
    intel ipp所有信号处理相关的函数与说明,函数很全,本人正在试用,一般的算法都有现成的函数.对于试验阶段的人员来说,能省不少时间.使用起来很方便. Intel® Integrated Performance Primitives for Intel® Architecture(intel ipp all signal processing functions associated with that function is very wide, I is now on probation, the general algorithms are off-the-shelf function. For the pilot phase of personnel, can save a lot of time. very easy to use. Intel ? IntegratedPerformance Primitives for Intel ? Architecture)
    2020-08-27 20:08:15下载
    积分:1
  • inclass
    visual C++开发平台下分类(inclass)程序(visual C++ of classify)
    2011-07-17 21:42:35下载
    积分:1
  • StudentDB
    使用VS2012CDatabase、CRecordSet类实现与Sql2008进行数据通信功能。( 翻译文字或网页 使用VS2012CDatabase、CRecordSet类实现与Sql2008进行数据通信功能。 请键入文字或网站地址,或者上传文档。 取消 Shǐyòng VS2012CDatabase,CRecordSet lèi shíxiàn yǔ Sql2008 jìnxíng shǔ jù tōngxìn gōngnéng. 您是不是要找: 使用VS2012 CDatabase、CRecordSet类实现与Sql2008进行数据通信功能。Use VS2012CDatabase, CRecordSet class implements and Sql2008 data communication capabilities.)
    2013-12-05 14:12:30下载
    积分:1
  • 054112OpenNI
    kinect 破解必备,OpenNI国外牛人的破解程序,十分好用,(kinect crack essential, OpenNI foreign cattle hack program, very easy to use,)
    2011-05-07 08:12:09下载
    积分:1
  • MyHanio1
    一个用mfc实现的带界面汉诺塔源程序,可手动输入最多15层。(An interface using mfc achieved with HANOR source, you can manually enter up to 15 layers.)
    2013-11-06 19:40:59下载
    积分:1
  • LCD12864_SPI
    STM32F103驱动12864,无乱码,亲测可用,SPI通信(STM32F103 drive 12864, no garbled, pro test available, SPI communication)
    2021-04-21 10:18:49下载
    积分:1
  • guanlixit
    采用vc6.0 MFC数据库编程,实现了个人管理系统,包括上传头像,姓名、性别、等,个人信息的导出等(Using vc6.0 MFC programming, personal management system, including upload an avatar, name, sex, etc., export of personal information, such as)
    2014-12-24 11:50:49下载
    积分:1
  • LCD
    A H CODE FOR lcd FOR PIC18F
    2012-03-18 18:55:09下载
    积分:1
  • can-tx
    DSP28335 CAN 接收程序,肯定能用(DSP28335 CAN receiving program, and certainly can)
    2014-11-11 16:14:47下载
    积分:1
  • kiss
    魔力宝贝外挂 可以适用任何魔力私服 功能强大 还能拦截封包(Plug-ins can be applied to any magic baby magic, PW)
    2020-06-25 21:40:02下载
    积分:1
  • 696516资源总数
  • 106457会员总数
  • 15今日下载