登录
首页 » Visual C++ » poj3941

poj3941

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

  • 12084247tao2
    基于ICMP协议的ping程序设计实验基于ICMP协议的ping程序设计实验(Based on the ICMP protocol ping program designed experimental program designed experiments based on the ICMP protocol ping)
    2012-10-29 10:54:54下载
    积分:1
  • cvery_933423
    项目部来了一位漂亮的MM,她飘逸的红发散发出诱人的魅力,深深地迷住了我. 还主动问我:你刚才给我发的那些,是怎么弄的呢?我怎么弄不起呢:< ? 于是乎我做了这个东东来发消息,再于是乎我想你也可能需要,就来发表了:P. 程序环境: win系统,并且打开了windows message服务的主机可以通信(端口135). 涉及的功能: 使用一位高手提供的135端口信息发送函数. 一个ini文件类用于记录IP信息. 自定义一个消息和相关代码,用于把程序缩小到系统托盘.
    2009-03-31 14:52:12下载
    积分:1
  • msgrouter
    观察者模式实现各模块之间的异步通讯。模拟MFC消息(message router)
    2013-10-16 14:26:10下载
    积分:1
  • image
    说明:  本源程序代码示例了图像的变化,可以让读者对图像的编程有所了解!(The source code examples of the image changes, allowing readers to understand the programming image!)
    2008-09-10 08:46:21下载
    积分:1
  • 213213
    VB制作二维码图像 VB制作二维码图像(Produce two-dimensional code)
    2013-11-08 23:55:23下载
    积分:1
  • 串口调试,串口设备模拟 Modbus Tools
    串口调试,串口设备模拟,支持32/64位系统。(Serial debugging, serial device simulation)
    2020-06-20 08:00:01下载
    积分:1
  • C++ 工资管理系统 salarysystem
    vc++和SQL Server一起实现的简单的工资管理系统,分离的数据库文件也在包里(a salary system using vc++ and SQL Server)
    2020-06-26 00:40:02下载
    积分:1
  • PlayWSF
    一个VC6调用Flash动画文件的应用源码(VC6 call a Flash animation file the application source code)
    2008-05-08 23:30:08下载
    积分:1
  • VC_TIMER
    一个可以设定起始时间的计时器,实用性很强,有复位和开始键。(One can set the timer start time, very practical, reset and start buttons.)
    2012-04-08 19:50:46下载
    积分:1
  • UDPTest
    UDP协议测试工具,可根据设定绑定UDP绑定IPD端口,进行相关的UDP吸引收发数据测试。(UDP protocol test tools, according to the set bound to the UDP binding IPD port, the UDP attract send and receive data test.)
    2013-04-18 09:18:39下载
    积分:1
  • 696516资源总数
  • 106627会员总数
  • 16今日下载