登录
首页 » Visual C++ » poj3941

poj3941

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

  • scft
    自洽场理论计算两嵌段共聚物的微相分离,关键是可以设置大的计算空间(self-consistant field method on microphase sepeartion of diblock copolymers)
    2009-06-15 17:54:53下载
    积分:1
  • NFTL
    NTFL Flash translation layer
    2012-05-02 10:09:35下载
    积分:1
  • TMS320C6000
    TIdsp课件,包括C语言初步,汇编语言初步,系统的初始化,C6000的中断系统等等(TIdsp courseware, including the C-initial, the initial assembly language, system initialization, C6000 interrupt systems, etc.)
    2009-11-23 13:02:51下载
    积分:1
  • RecordSound
    说明:  本程序利用VC++编写,实现声音的录制和播放。(This procedure using VC++ to write, implement sound recording and playback.)
    2009-08-27 22:52:41下载
    积分:1
  • UDF_RigidBody
    UDF For rigid body motion
    2018-03-24 20:44:15下载
    积分:1
  • juyuwangliaotian
    局域网聊天软件,主要功能是发送文字消息,语音消息,图片,功能强大,界面简单(LAN chat software, the main function is to send text messages, voice messages, pictures, powerful, simple interface)
    2012-07-13 09:25:37下载
    积分:1
  • disklock-pswd
    磁盘锁工具,保护电脑非法登陆。当非法开机时,电脑提示输入密码,正确后可继续引导。(Disk lock tool to protect the computer illegal landing.When illegal boot, the computer prompts to enter the password, you can continue to guide the correct.)
    2016-11-10 21:29:55下载
    积分:1
  • rac
    实现网络抓包功能的基本原理与抓包实现方法,是个不错的提示(for sniffer)
    2010-09-25 09:53:48下载
    积分:1
  • Explosion-and-Shock-Simulation
    爆炸与冲击的仿真研究 爆炸与冲击的仿真研究(Explosion and Shock Simulation Explosion and Shock Simulation )
    2011-12-18 11:14:32下载
    积分:1
  • PyramidImageMatchingII
    针对离散小波变换对于图像平移和旋转的敏感性,提出了一种基于可操纵金字塔的图像匹配算法。(Discrete wavelet transform for image translation and rotation sensitivity of a steerable pyramid-based image matching algorithm.)
    2009-06-22 12:25:35下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载