登录
首页 » Visual C++ » poj3941

poj3941

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

  • bianjiakuang
    用VC2010写的读取编辑框数据并显示在视图上。适合出学者使用。(Written by VC2010 edit box data read and displayed on the view. Suitable for a scholar to use.)
    2013-12-11 09:06:08下载
    积分:1
  • SURVEY
    导线网平差,测绘程序设计,希望你们的关注(Wire network adjustment, mapping program design, and I hope you concern)
    2008-04-05 22:11:01下载
    积分:1
  • SQLServer2000UsePDF
    SQL Server 2000的使用、开发说明,给出了通过ODBC、DAO ADO访问数据库的方法(SQL Server 2000 s use and development that is given through ODBC, DAO ADO methods to access the database)
    2008-04-20 12:50:22下载
    积分:1
  • DVRServerCenter
    完成端口服务器,支持同步发送接收,支持内存池,支持简单丢包算法。(Completion port server to support simultaneous sending and receiving, support memory pool to support a simple algorithm for packet loss.)
    2010-01-08 14:22:45下载
    积分:1
  • VB与EXCEL精华
    VB与EXCEL精华 VB与EXCEL精华 VB与EXCEL精华(VB and Excel essence of the essence of VB and Excel and VB VB and Excel essence of the essence of VB and Excel Excel cream)
    2005-06-24 17:06:52下载
    积分:1
  • oofemvs2010-20
    oofem在vs2010下的sln文件,文件路径和.h以及.c文件的添加已经做好(oofem under the vs2010 sln file, the file paths and. h and. c file is ready to add)
    2011-02-14 16:43:07下载
    积分:1
  • VTK读取30张Dicom图片三维重建
    利用VTK三维重建软件与VS2010结合,读取格式为Dicom的系列图像,并能显示三维重建结果,语言为C++语言(Using VTK 3D reconstruction software and VS2010 combination, read the format of Dicom series of images, and can display three-dimensional reconstruction results, the language is C++ language)
    2021-01-06 17:28:53下载
    积分:1
  • pagewnd
    VC++调用Excel表格编辑数据的功能,一打开就显示Excel风格的表格(VC++ calling function Excel spreadsheet editing data, an open style on display Excel spreadsheet)
    2013-12-01 21:50:40下载
    积分:1
  • Charge
    有关三维插补的程序,自己做一个数据库,记录一些数据点的插补值,可通过补偿算法,算出其他点的插补值(The 3 d interpolation procedures, own a database, record the data point of some interpolation value, but through the compensation algorithm, work out the other points interpolation value)
    2012-06-29 09:55:51下载
    积分:1
  • virtual
    关于虚拟函数和虚拟表很好的实例,供给大家看看(About Virtual functions and virtual table good example, we look at supply)
    2014-10-22 19:40:42下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载