登录
首页 » Visual C++ » poj3941

poj3941

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

  • quzze
    该代码包括了队列的实现,主要包括队列的进出问题, 以及队列的查询,删除等问题。(The code includes queue implementation, mainly including queue in and out of the question, as well as the queue query, delete, etc.)
    2014-01-03 10:44:40下载
    积分:1
  • zgy-server
    说明:  用VC6写的简单控制台服务器端程序,学习用。(with VC6 write a simple console server software, to study.)
    2006-04-12 14:39:50下载
    积分:1
  • chipgenius_67367
    ChipGenius是一款USB设备芯片型号检测工具,可以自动查询U盘、MP3/MP4、读卡器、移动硬盘等的主控芯片型号、制造商、品牌、并提供相关资料下载地址.当然也可以查询USB设备的VID/PID信息、设备名称、序列号、设备版本等.软件绿色小巧,即插即用,是数码消费者、电子爱好者、 DIY人士和数码维修人员身边的好帮手.我们还将在后续版本中完善更多功能.(ChipGenius is a USB device chip type detection tool that can automatically query U disk, MP3/MP4, card readers, mobile hard disk controller chips, such as type, manufacturer, brand, and provide relevant information to download address. Of course, you can check USB device VID/PID information, device name, serial number, equipment versions. software green compact, plug and play, is the digital consumer electronics enthusiast, DIY and digital maintenance personnel are a good helper around. we will improved in subsequent versions of more features.)
    2010-05-11 23:16:23下载
    积分:1
  • mfc42d
    MFC42d.DLL 在使用VISUAL C++软件时,必须安装在系统中使用的。。。(When MFC42d.DLL in using VISUAL C++ software must be installed in the system. . .)
    2012-11-29 20:58:31下载
    积分:1
  • get_pixel
    得到24位位图的一个点的颜色值 (Getting the RGB value of a point in a 24-bit image )
    2021-05-13 14:30:02下载
    积分:1
  • kqxt
    这个源码是it job培训做的项目 各阶段文档和源码有 日志都有 嘿嘿 站长快给我帐号啊~ (This source is to do it job training at various stages of the project documents and source code have log嘿嘿station soon have given me accounts ah ~)
    2008-05-08 22:42:01下载
    积分:1
  • passing-l-array-to-a-function
    如何将多维数组传递给一个函数,附实例说明,得出结果(passing a two-dimensioanl array to a function)
    2013-03-01 00:48:35下载
    积分:1
  • beijiguaji
    这是反恐行动永久性的挂机软件~只推荐在经典木乃伊上使用按下H 会出现声音就是了 如果要结束就按 END(this is mission against terror china afk software !! nice to use)
    2014-02-23 13:41:04下载
    积分:1
  • CPPmusicplayer
    一款简单的VC++6.0编程MP3音乐播放器,附带源码已经工程文件。(A simple VC++6.0 programming an MP3 music player, already works with source files.)
    2014-01-05 14:23:43下载
    积分:1
  • Client
    远程控制客户通过象服务器端发出请求,服务器接受请求,从而实现对服务器的控制。(Remote Control client through the server-side as a request, the server accepted the request to the server in order to achieve control.)
    2008-04-24 10:10:11下载
    积分:1
  • 696518资源总数
  • 105102会员总数
  • 21今日下载