登录
首页 » Visual C++ » poj3941

poj3941

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

  • aclock_src
    说明:  一个日历程序用MFC写的。 一个日历程序用MFC写的。 一个日历程序用MFC写的。(A calendar program written using MFC. A calendar program written using MFC. A calendar program written using MFC.)
    2008-10-01 22:39:46下载
    积分:1
  • VCexample
    一种应用VC爱好者对树形控件的理解的应用(An application for tree lovers VC understanding of application controls)
    2008-07-29 20:40:21下载
    积分:1
  • XTab
    说明:  vb下的tab不怎么好用,这个是扩展-XTAB(tab extended-XTAB)
    2009-07-26 04:00:20下载
    积分:1
  • Bspline-curve-VC
    B样条曲线VC实现,可编译执行!(b-spline curve )
    2015-06-22 11:16:13下载
    积分:1
  • VLCDemo
    MFC调用VLC的动态库libvlc.dll实现简单播放器,支持播放、暂停、停止、进度显示和进度控制、声音控制、支持中文路径的文件名字。VC6.0环境,可直接运行。(MFC calls VLC dynamic library libvlc.dll simple player, play, pause, stop, schedule display and schedule control, sound control, support Chinese path of the file name. VC6.0 environment, can be directly run.)
    2013-07-15 09:41:10下载
    积分:1
  • stand
    MFC 访问数据库 使用DAO连接方式 MFC 访问数据库 使用DAO连接方式(MFC )
    2013-10-25 19:29:15下载
    积分:1
  • Timer_demo
    使用单独线程实现的计时器(The example of implementing times using single thread)
    2020-10-13 18:17:31下载
    积分:1
  • MFCexp10_1
    这是任哲老师的程序案例,主要是MFC windows应用程序设计。有关MFC程序设计的程序,其中包含界面的设计和源代码的设计(the design of MFC,include the design of interface and source code)
    2012-02-29 10:10:49下载
    积分:1
  • Ghost1.0-
    Ghost远程控制源代码,请勿用于商业用途及违法犯罪,仅供学习交流!(Ghost remote control the source code, do not for commercial use and delinquency, learning exchanges only!)
    2020-07-30 14:48:37下载
    积分:1
  • cardfile
    Micorsoft 卡片文件(crd)读写的DLL源码(The sourcecode of the DLL for reading and writing the Microsoft s card file)
    2021-03-28 09:19:11下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载