登录
首页 » Visual C++ » poj3941

poj3941

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

  • ollydbg
    高手使用源码查看 ,壳子侦查,等等,支持使用ollydbg(Use the master source view, shell investigation, etc., support the use ollydbg)
    2013-12-15 08:59:03下载
    积分:1
  • AutoUpData
    本例为魔兽世界客户端自动更新程序,采用URLDownloadToFile异步机制实现.(World of Warcraft in this case the client automatically update procedure for the asynchronous mechanism URLDownloadToFile achieved.)
    2010-02-25 17:00:59下载
    积分:1
  • (Access)
    mfc数据库用mfc方式实现了数据库功能(mfc database)
    2020-10-30 22:49:56下载
    积分:1
  • BMP
    说明:  BMP文件提取信息,可以查看RGB信息,可以查看是否使用调色板信息等(BMP file extract information, you can view the RGB information, you can view information such as whether or not to use the palette)
    2008-11-20 23:04:34下载
    积分:1
  • windows xp下的虚拟串口设备驱动
    在windows xp操作系统下开发虚拟串口驱动(Developing virtual serial port driver under Windows XP operating system)
    2020-08-28 11:28:13下载
    积分:1
  • MacCormack
    利用 MacCormack差分格式求解一维激波管问题( 语言版本)(use MacCormack to solve CDF problem)
    2012-05-12 21:40:30下载
    积分:1
  • TP800_vc6
    该例程给出了VC调用振中动态链接库的DEMO程序。示范了如何实现振中动态链接库COMDLL.DLL,以及动态链接库中各种功能的使用。开发环境为VC++6.0(This routine gives the VC call vibration in the dynamic link library DEMO program. Demonstrates how to implement vibration in the dynamic link library COMDLL.DLL, as well as various functions in the dynamic link library use)
    2011-10-24 10:01:54下载
    积分:1
  • PLAYER
    播放器,能播放几种格式的播放器,只是界面比较简单,(Player, can play several formats player, but the interface is relatively simple,)
    2007-12-10 12:51:07下载
    积分:1
  • MfcApplicatoin
    mfc dialog 程序,應用再網羅,帖子(mfc dialog, application re-recruited, postings)
    2005-06-21 16:41:26下载
    积分:1
  • lua952
    天龙八部最新lua,涵盖基本所有lua,900多个(tian long ba bu lua 900 duo ge.)
    2020-12-18 09:29:11下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载