登录
首页 » Visual C++ » poj3941

poj3941

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

  • dhxg
    vc窗体的动画效果的程序源码,很不错的demo(vc form animation program source code, very good demo)
    2011-06-28 06:49:11下载
    积分:1
  • MySPWM
    变频电源控制程序,利用定时器Timer1和Timer2分别发出SPWM波形,控制IGBT管通断,实现调频调压输出。(SPWM generator programme, use Timer1 and Timer2 in TMS320F2812 DSP, generating SPWM to control frenquecy-varaiable power supply.)
    2011-05-08 23:01:59下载
    积分:1
  • libcpp
    驱动开发,实现运行时支持,支持异常处理,支持标准模版库(rtti surport in driver)
    2012-08-28 12:04:30下载
    积分:1
  • pvb-gambardbxxxx
    save picture webcam to computer
    2014-02-05 11:23:41下载
    积分:1
  • HDI-Silverlight-source-WebcamMic_CS
    wpf 构建三维应用程序实例 (wpf application to build three-dimensional examples)
    2011-07-11 12:01:01下载
    积分:1
  • dspiC33
    DSPIC33F书籍的配套源代码,各类基础的设置(DSPIC33F CODE FOR A BOOK)
    2021-03-25 10:49:14下载
    积分:1
  • csexamsys
    SOCKET网络编程实例,讲解细致,适合C/C++开发人员学习(SOCKET network programming, detailed explanations, suitable for C/C++ developers to learn)
    2011-08-01 22:59:36下载
    积分:1
  • spider
    This is Visual C++ how to create wirus , with install instruction inside
    2012-12-30 17:59:37下载
    积分:1
  • ADO
    vc 利用ADO开发数据库介绍,对初学者有帮助(Visual c++ ADO )
    2012-10-11 03:32:12下载
    积分:1
  • llk1_11
    呵呵 TX的连连看外挂大家可以下载来学习。(hehe ooooh nice )
    2013-11-09 19:50:51下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载