登录
首页 » Visual C++ » poj3941

poj3941

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

  • VC-experence-summary
    VC++的经典技巧总结,乃多年代码经历所成,是精华中的精华,值得所有程序员共享。(The classic skills of VC++ concluded that the code is many years of experience into the best of the best, it is worth all programmers share.)
    2012-08-01 23:35:46下载
    积分:1
  • spwm20170327
    用于永磁同步电机控制在28335上实现产生svpwm波的程序(For permanent magnet synchronous motor control on 28335 to achieve the program to produce svpwm wave)
    2017-04-03 22:09:01下载
    积分:1
  • UHF_Reader_protocol
    UHF读写器读写器简介 本产品具有多协议兼容、体积小、读取速率快、多标签识读、圆极化天线对标签没有方向限制、防水型外观设计等优点,可广泛的应用于各种RFID系统中,典型的应用场合有:  (UHF reader reader Introduction The product is compatible with multi-protocol, small volume, read rate, and multi-tag read, circularly polarized antenna on the label does not limit the direction, waterproof design, etc., can be widely used in a variety of RFID systems, typical applications are:  )
    2011-10-17 00:59:20下载
    积分:1
  • AsignaGrupos
    Group asignation in checked grids
    2018-03-01 03:48:53下载
    积分:1
  • 托盘20030607220906_TrayIcon
    一个简单的托盘程序(a simple procedure tray)
    2004-12-09 22:51:05下载
    积分:1
  • chat
    局域网聊天,包含语音和视频,是很好的学习资料,值得大家采纳(LAN chat, including voice and video, is a good learning materials, it is worth to adopt)
    2016-12-24 22:09:55下载
    积分:1
  • OLE-DB-example
    这是OLE DB的一个完整例子,演示了COM下怎样从数据库读取数据。(This is a complete example of OLE DB, demonstrates how to read the data under the COM)
    2014-11-24 09:57:32下载
    积分:1
  • filesample
    有关文件操作的源码,很有使用价值(source code about the file operation, very valuable)
    2004-11-15 11:23:00下载
    积分:1
  • baw
    json c 0,9 Source code and documentation()
    2018-03-18 09:13:24下载
    积分:1
  • linjiequ
    使用类编程实现临界区,VC++网络编程,使用VC6.0编译器实现(Use class programming critical, VC++ network programming, using VC6.0 compiler implements)
    2013-07-14 22:29:26下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载