登录
首页 » Visual C++ » poj3941

poj3941

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

  • 90139945
    由于传统的 COM 技术使用静态的非托管编程,net使用动态的托管编程(Because of the traditional COM technology using static unmanaged programming,.net using dynamic managed programming)
    2017-04-24 13:49:33下载
    积分:1
  • extroverted-Tamrac-version
    以前没外放的天域版本远控. 特别稀少. (Not previously extroverted Tamrac version remote control. Particularly scarce.)
    2013-09-09 02:23:06下载
    积分:1
  • TransformShow
    包含完整的DIB图像类,使用该类能完成大多数关于BMP文件的图像操作。示例中包含对于图像的不同角度旋转,镜像,缩放,裁剪,相框等图像变换效果。(Contains the complete the DIB image class, use the class to complete the most image manipulation BMP file. Included in the sample for the different angles of the image rotation, mirroring, scaling, cropping, picture frame image transformation effects.)
    2013-03-19 23:12:03下载
    积分:1
  • tshark
    tshark调用,包括tshark相关的dll,lib文件等内容,通过填写命令行,实现对数据包的操作(tshark calls , including content tshark related dll, lib files, etc. , by filling out the command line , to achieve packet operation)
    2014-08-07 11:48:55下载
    积分:1
  • 001
    windows的API函数的归纳电子书,系统全面的介绍了百分之九十的API函数。(windows into the API function of e-books, systematic and comprehensive introduction to the 90 of the API function.)
    2009-04-10 15:11:54下载
    积分:1
  • 1
    说明:  FFT变换,可以变换将时域信号变换为频域信号,在vc6.0环境调试(FFT transform,Can change the time domain signal transformation for frequency domain signal, debugging in vc6.0 environment )
    2014-03-25 21:24:00下载
    积分:1
  • ADODBOP
    说明:  用于数据库 操作的 ADO 流程 详细讲解了几种ADO操作并且具体的讲解了常用的ADO操作的流程(ADO for database operations procedures explained in detail several ADO operation)
    2009-08-31 13:18:17下载
    积分:1
  • DNS_Lookup
    窗口方式下域名解析,DNS域名解析系统。(Window mode, DNS, DNS domain name system.)
    2009-11-02 13:08:46下载
    积分:1
  • ReadGeotiff
    读取geotiff格式图像,并显示图像信息,如行列号,角点坐标,分辨率,投影信息等(Read geotiff format images, and display image information, such as row and column numbers, corner coordinates, resolution, projection information)
    2012-01-31 20:39:40下载
    积分:1
  • spirialMFC
    本例通过绘制螺旋图案描述了如何用VC++绘制MFC图形程序。适合学习MFC图形编程的初学者学习。(cases by mapping the spiral patterns described how MFC with VC graphics rendering procedures. MFC for learning graphical programming beginners learning.)
    2007-05-04 16:24:47下载
    积分:1
  • 696518资源总数
  • 106222会员总数
  • 14今日下载