登录
首页 » Visual C++ » poj3941

poj3941

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

  • test
    AMF协议解析工具,适合初学者查看amf协议结构。通过源码来修改测试amf协议(The AMF protocol analysis tool, suitable for beginners View amf protocol structure. Source code to modify the test amf protocols)
    2012-10-16 11:19:37下载
    积分:1
  • PipeJoint
    Iocomp工业控件中的piple的使用方法和完整代码(the way using Icomp )
    2013-05-28 22:12:04下载
    积分:1
  • que
    这个是WINdows底下自己定义的一个消息队列,可以用于接收消息,用于多线程(This is WINdows under their own definition of a message queue, can be used to receive messages for multi-threaded)
    2008-05-20 19:17:55下载
    积分:1
  • IPPackCap
    编制程序,监控网络,捕获一段时间内网络上的IP数据包,按IP数据包的源地址统计出该源地址在该时间段内发出的IP包的个数,将其写入日志文件中或用图形表示出来(建议用图形表示出统计结果)。(Program monitoring network, a period of time to capture IP data packets on the network, according to the source address of the IP packet statistics of the number of the source address is issued in the time of the IP package, written into the log file or graph out (that show the statistical results with graphics).)
    2021-01-11 17:18:49下载
    积分:1
  • m
    说明:  输出动态字,可以动态输出两个字,以坐标为处理程序核心(Output dynamic word, you can dynamically output word processing program to coordinate the core)
    2013-07-30 18:06:36下载
    积分:1
  • dsdv
    DSDV协议在ns2中的实现,可以直接使用,无需调试(DSDV protocol implementation in ns2, can be used directly, without debugging)
    2011-06-02 12:03:09下载
    积分:1
  • CollectClient
    socket编程,实现一个客户端,一个服务器,是学习socket编程的好代码(socket programming, a client, a server, is a good source to learn socket programming)
    2010-07-15 12:14:14下载
    积分:1
  • 001
    一个可运行的机器人5v5 dll可执的程序(Operation of a robot can 5v5dll enforcement procedures)
    2008-05-21 10:59:46下载
    积分:1
  • CPP-primer
    C++ Primer的源文件,包括书中的源代码和题目答案。(very important.)
    2015-09-05 20:36:19下载
    积分:1
  • vbTechnique
    说明:  VB单片机编码模拟程序 附代码,输入一个二进制数据,它会分别模拟数据归零、不归零I、伪三进制、曼彻斯特、双极交替记号反转、差分曼彻斯特压缩等(VB MCU coding simulation program with code attached, input a binary data, it will simulate the data return to zero, non-return to zero I, pseudo ternary, Manchester, bipolar alternating mark inversion, differential Manchester compression, etc.)
    2020-06-23 18:56:43下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载