登录
首页 » Visual C++ » poj3941

poj3941

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

  • Clock
    VC++可切换到数字模式的圆形时钟,VC++编程学习源码,很好的参考资料。(VC++ round the clock to switch to digital mode, VC++ programming learning source, a good reference.)
    2014-02-08 17:22:58下载
    积分:1
  • STR
    structures for rf online 2/2/3 server
    2010-06-05 13:52:20下载
    积分:1
  • AdaptiveTransparency_Source
    一種新的方法可以即時處理無須排序的重疊半透明三角形,比A-buffer方法的效率更高。(We introduce a new technique for real-time order independent transparency called Adaptive Transparency (AT) that closely approximates the ground-truth results obtained from A-buffer compositing but is 5x to 40x faster. The key contribution of Adaptive Transparency is the introduction of an adaptively compressed visibility representation that can be efficiently constructed and queried during rendering. It can be applied to a widerange of transparent geometry (e.g., foliage, windows, hair, and smoke). AT closely matches the ground-truth A-buffer solution and is both higher quality and faster than other approximate OIT techniques. )
    2011-05-27 01:39:12下载
    积分:1
  • cg-fft
    This software gave volume MoM solution by the CG-FFT method(volume solution by using MoM t he CG-FFT method)
    2007-03-31 10:21:57下载
    积分:1
  • gaijinnlbifa
    改进的能量比去噪方法原理图,只是一张图片而已(Denoising method, the improved energy is schematic diagram)
    2016-03-03 15:38:19下载
    积分:1
  • 5_2跳动abc
    跳动字符 讲述一个个字符的起落,按时间的间隔均匀依次跳动,增带颜色的变化.(characters on a beating characters to the ups and downs by the time interval followed by beating uniform, increase with a change in color.)
    2005-06-29 09:37:41下载
    积分:1
  • filesample
    有关文件操作的源码,很有使用价值(source code about the file operation, very valuable)
    2004-11-15 11:23:00下载
    积分:1
  • j_13946_vb_crm
    说明:  VB采用三层架构的CRM客户关系管理系统,基于Access数据库。是一个电脑公司以前用过的,因些功能上可以满足中小型公司使用,只是部分模块是定制的,有的可能不太实用,从界面上来说,像是一挺专业的程序。   本系统用到有yfDNetMenu.ocx、ManageClient.dll控件,已打包,初次运行请运行reg.bat以及重新添加两控件引用,否则报错。(VB three-tier architecture, CRM customer relationship management system, based on Access database. Is a computer firm had been used previously, because these functions satisfy the medium and small companies to use only part of the module is customized, and some may not be practical, from the interface point of view, like a professional program. This system uses a yfDNetMenu.ocx, ManageClient.dll controls, has been packaged, the initial run reg.bat run and re-add the reference to two controls, otherwise Baocuo.)
    2010-03-17 14:42:26下载
    积分:1
  • 05-VCPP-for-ProE-chapter-five
    05-VC++ for ProE chapter five about parameter
    2015-08-26 20:24:07下载
    积分:1
  • DXFToGCode20120923
    VC++6.0编写的CAD dxf文件直接转换为数控加工G代码程序。直接调入DXF文件,生成可用于数控加工的G代码。(Written by VC++6.0 CAD DXF files directly into G code program of CNC machining. Direct load DXF file generation, can be used for NC machining G code. )
    2020-10-28 15:19:59下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载