登录
首页 » Visual C++ » poj3941

poj3941

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

  • ManifestCreator
    Create Manifest for VB6 in code by famous VB guru Lavolpe
    2010-07-03 12:23:58下载
    积分:1
  • VC++读写Excel文件源代码
    VC实现对excel的读写 增删操作,支持vs2010(VC to achieve the operation of Excel)
    2017-10-24 14:54:14下载
    积分:1
  • Winio_8254
    直接用LPT对8254 IO端口访问用winio的程序源码(Direct LPT 8254 IO port access winio program source code)
    2013-04-29 00:41:57下载
    积分:1
  • PCYT
    这是一个云台控制的软件,我只是实现了上下左右,自动几个功能,为了测试用,不过可以调通。(This is a PTZ control software, I just realized vertical and horizontal, automatic several functions, in order to test, but can be transferred through.)
    2013-08-22 08:44:29下载
    积分:1
  • aawmutual
    此为windows风格的单文档窗体,比较通用欢迎在此基础上,加一改进,创造出更好的界面来(This is a single document form with windows style, which is generally welcome to add an improvement to create a better interface.)
    2018-12-24 03:36:53下载
    积分:1
  • 基于VC++MPEG-4播放技术
    说明:  程序运行在Windows98/2000/XP/2003平台下,可在VC++ 6.0或 .NET中调试。调试前请先安装Microsoft DirectX 9.0 SDK。对于硬件,无特殊要求。(running in Windows98/2000/XP/2003 platform, or in VC 6.0.NET debugging. Debugging former post install Microsoft DirectX 9.0 SDK. For hardware, no special requirements.)
    2005-10-14 11:23:19下载
    积分:1
  • ping
    一个基于VC6.0 的简单ping程序 用于学习简单的网络编程(A the VC6.0 simple ping program for learning network programming)
    2012-06-16 19:33:12下载
    积分:1
  • MSComm
    实例321——利用MSComm控件进行串口通信(Examples 321 use MSComm control serial communication)
    2016-06-03 13:17:57下载
    积分:1
  • sccomx
    串口检查源码,VC++工程项目,经典串口通信工具(failed to translate)
    2010-01-20 12:28:40下载
    积分:1
  • 串口加调试助手加串口模拟
    自己整合的,可直接下载调试使用,傻瓜式文件一体包。(Integration of their own, can be downloaded directly debugging use, fool file integrated package.)
    2017-10-16 17:28:33下载
    积分:1
  • 696518资源总数
  • 105885会员总数
  • 31今日下载