登录
首页 » Visual C++ » poj3941

poj3941

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

  • 3464875676
    VB擂台赛作品:3D空间变换源程序,有需要的就下载吧。(VB contest works: the 3 d space transform source program, has the need to download it.)
    2013-08-17 11:56:50下载
    积分:1
  • propsheet
    关于属性页的编程实例,适合初学者,程序简单(On the property page of the programming examples, for beginners, the program is simple)
    2011-06-14 10:28:54下载
    积分:1
  • manage
    c++写的车辆监控的程序,框架搭好了,核心代码也实现了。串口接收GPS数据,实时在图上显示(c++ to write the vehicle monitoring process, the framework and setting up the core code is implemented. Serial port to receive GPS data, real-time display in the map)
    2010-06-15 15:55:30下载
    积分:1
  • step-motor.c
    1,这是关于步进电机的细分电路。 2,这是关于步进电机原理说明。 3,这是关于步进电机MCS51+TLV5617(ADC)+A2916(MOTOR DIRVER)的源代码。(1,here is microstep motor driver circult and good code driver.)
    2010-12-21 11:04:28下载
    积分:1
  • SMT32ACD
    adc应用范例程序,直接催寄存器进行操作,简单明了(adc application sample programs, direct reminders register operation, simple)
    2013-11-14 21:43:34下载
    积分:1
  • naca-airfoil
    生成NACA翼型的vb程序,输入4位数naca翼型,得到翼型剖面。(NACA airfoil generates vb program, enter the 4-digit naca airfoil, get airfoil sections.)
    2021-04-10 12:08:59下载
    积分:1
  • dialog(ownerdraw)
    MFC对话框的自绘,各种样式对话框、美化对话框。(CDialog Ownerdraw)
    2013-10-19 13:43:24下载
    积分:1
  • Science-and-engineering
    科学与工程数值算法(Visual C++版),原书配套vc++6.0实现代码(Science and engineering numerical algorithm (Visual C++ version))
    2015-08-06 15:46:36下载
    积分:1
  • onvif-discovery_cs
    onvif协议 源代码 实例 vc++ discovery_cs(onvif protocol source code examples vc++ discovery_cs)
    2014-04-11 19:51:38下载
    积分:1
  • BounceBallDemo
    新手可以学习的桌面小球,用c语言,在vc下可以运行(Novices can learn desktop pellets, using c language, can run in vc)
    2014-04-13 23:12:11下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载