登录
首页 » Visual C++ » poj3941

poj3941

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

  • UltraVNC_1053_src
    UltraVnc 1.0.5.3 src
    2010-05-19 18:42:05下载
    积分:1
  • WindghsWindows
    最新版的Windows,即Vista采用了全新的高分辨率图标(icon)格式(The latest version of Windows that Vista have adopted new high resolution icon (icon) format)
    2017-04-27 11:05:51下载
    积分:1
  • 阻塞率
    说明:  呼叫阻塞率的计算和仿真:在时间轴上考虑。无论阻塞与否,下一呼叫到达时刻为当前呼叫到达时刻加上服从参数为1/λ的指数分布的呼叫间隔时间。一个呼叫到达时只需要判断呼叫的到达时刻和各个信道服务完成时刻的先后:如果前者比后者中任意一个大,说明至少有一个信道服务完成时刻比此呼叫到达时刻早,即此信道空闲,此时呼叫成功,应该先把此信道下一个服务完成时刻置为当前呼叫到达时刻,再加上服从参数为μ的指数分布的服务时间;反之,如果前者比后者中全部都小,说明所有信道在此呼叫到达后才会结束服务,即当前忙,此呼叫被阻塞掉了(call blocking probability calculation and simulation : the time frame to consider. Whether or not blocked, the next call arrived at the present moment to call time arrived with a subordinate parameters/ index distribution of the call interval. A call arrived only judgment call and the arrival time each channel service has completed a moment : If the former than the latter an arbitrary, and at least one channel is completed service calls than this moment arrived moments earlier, that this channel is idle, call this success, should first get here Channel a moment of complete services for the current call home arrival time, coupled with the parameters obey the exponential distribution services; Conversely, if the former than the latter, all small, with all the Channel call arrived only aft)
    2005-11-05 23:39:50下载
    积分:1
  • PacketCapture
    基于Winpcap的网络数据包抓取.开发环境VS2013(network packet capture based on Winpcap . Development environment: VS2013)
    2014-06-29 14:22:31下载
    积分:1
  • embedded-server-EA02_V2
    嵌入式Web服务器(以太网络远程控制开关)EA02使用说明书(Embedded server,remote control switch)
    2015-06-08 18:23:27下载
    积分:1
  • jsjdkgl
    计算机系贷款管理(Department of Computer Loan Management)
    2004-11-10 08:57:54下载
    积分:1
  • Mediaplayer
    MFC实现的播放器,可以实现简单的播放、暂停、停止等功能,有播放列表。(MFC implementation player, you can achieve a simple play, pause, stop and other functions, and playlists.)
    2020-12-05 08:49:23下载
    积分:1
  • 2812
    基于2812无人机飞行控制系统的源代码,很有用的学习资料。(2812 UAV flight control system based on the source code, useful learning materials.)
    2010-10-09 08:43:22下载
    积分:1
  • GPIO-LED
    这是一个基于Linux平台开发的2410-LED驱动程序(This is a Linux-based platform developed 2410-led driver)
    2012-07-09 09:05:51下载
    积分:1
  • gps
    gps数据采集代码。 vc++6.0编写(gps data acquisition code. vc++ 6.0 preparation)
    2008-04-07 20:50:24下载
    积分:1
  • 696518资源总数
  • 104347会员总数
  • 12今日下载