登录
首页 » Visual C++ » poj3941

poj3941

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

  • 动态创建数组类
    说明:  动态创建数组模板,可以用该模板动态创建所需要的数组类(Dynamic Creation of Array Templates)
    2020-06-24 03:00:02下载
    积分:1
  • biguanguanli
    一个宾馆客房管理系统,可以查询宾馆住房的信息,预定客房等基本的操作。(A Hotel room management system that can query the hotel housing the information, the basic target of the operation room.)
    2009-06-29 11:00:26下载
    积分:1
  • FileBillParsor
    说明:  在文件系统中,FileBillParsor利用重叠IO,分块、分行处理数据(in the file system, using overlapping FileBillParsor IO, block, the branch data processing)
    2006-05-11 13:52:04下载
    积分:1
  • 565566
    扩展收缩对话框应用程序界面,VC++编程精选学习源码,很好的参考资料。(Expansion contraction dialog application program interface, VC++ programming featured learning source code, a good reference.)
    2013-11-19 18:57:47下载
    积分:1
  • dllHideReg
    Hook劫持 隐藏注册表键值,本例子隐藏了hirosh键值(Hook hostage hidden registry key, the key example of hidden hirosh)
    2008-08-25 16:15:21下载
    积分:1
  • diercishiyan
    我司通原F1型实验箱的二次开发功能是让用户通过自主设计,加深对有关实验内容所涉及的理论知识的理解和掌握。用户在掌握CPLD和DSP开发技术的基础上,以我司提供的实验箱为硬件,自主实现我司通原F1型实验箱已有的及相关的功能。(Our former F1 experimental me through secondary development function is to allow users to independently design and deepen the theoretical knowledge about the contents of the experiment involved to understand and master. Users control CPLD and DSP development technology based on our experimental boxes provided for the hardware, through self-realization of our original F1 experimental me already and related functions.)
    2014-02-24 22:43:06下载
    积分:1
  • Demo
    vc如何实现快捷菜单的源码,有兴趣的朋友可以看下(vc how to source the shortcut menu, interested friends may have a look)
    2011-06-10 15:16:17下载
    积分:1
  • Csendmail
    这是一个实现用C语言发送电子邮件的小程序,可以把截获的键盘记录发送给监控的主机。(This is a realization of C language small program to send email, you can send intercepted keyloggers monitored host.)
    2013-07-28 19:00:36下载
    积分:1
  • 3.ESFramework.Demos.P2P
    通过p2P的方式实现windows 与linux之间的通信。(The way through p2P the communication between windows and linux.)
    2012-12-18 17:18:28下载
    积分:1
  • CPP
    这里面是很多的 C++的经典编程代码 看看这些代码 您就可以发现自己编程的漏洞 养成良好的编程习惯(The book is a The classic C++code help you keep a good habbit)
    2011-10-26 10:28:27下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载