登录
首页 » Visual C++ » poj3941

poj3941

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

  • StudentMIS
    说明:  学生信息管理系统,简单的添加信息,修改,删除,统计等(Student Information Management System, a simple add information, modify, delete, statistics, etc.)
    2008-09-05 21:41:59下载
    积分:1
  • UAVPlatform0223
    osg地图,在vs2010和qt5上面搭建地图软件框架(Osg map, in the vs2010 and qt5 above the map software framework)
    2017-03-06 17:05:36下载
    积分:1
  • trim
    说明:  solidworks 二次开发 圆角命令的使用(Secondary Development Category)
    2019-06-11 08:40:47下载
    积分:1
  • IP
    说明:  获取自己的IP地址,方便实时小巧可扩充到其它功能.(Access to its own IP address, to facilitate real-time compact can be expanded to other functions.)
    2009-03-25 14:31:19下载
    积分:1
  • 89600signal
    安捷伦89600系列软件的常用功能及界面设计,便于理解(Agilent 89600 Series software commonly used functions and interface design, easy to understand)
    2021-01-11 22:08:49下载
    积分:1
  • MapTrack
    vc++ 开发 GIS 与 GPS ,提供在线首发GPS定位信息,显示坐标点,轨迹回放,GIS地图放大、缩小、选种等等操作。 测试过可以编译。(vc++ development of GIS and GPS, GPS location information to provide online starting to show coordinates, trajectory playback, GIS map zooming, selection, etc. operation. Tested can be compiled.)
    2010-08-25 21:38:56下载
    积分:1
  • luiliangfenxi
    简单的流量分析程序,用VC++编写,代码简练,方便理解。(Simple traffic analysis program written using VC++, code concise, easy to understand.)
    2010-12-22 20:20:42下载
    积分:1
  • 3DText
    基于mfc的三维文字显示按钮,适合初学mfc的同学尝试。(Mfc-based 3D text display button, suitable for beginner mfc students to try.)
    2012-06-13 23:53:17下载
    积分: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
  • snecificationencapsulationallocate
    Windows API函数在Visual Basic中的应用实例(Application of Windows API function in Visual Basic)
    2018-12-04 00:43:05下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载