登录
首页 » Visual C++ » poj3941

poj3941

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

  • VC实现的socke通信 socket
    VC实现的socke通信,简单易懂 分为服务端和客户端。 使用VC6即可打开项目工程(VC realize the socke communications, is divided into easy-to-read-side and client services. VC6 can use to open the Project)
    2020-06-26 02:00:01下载
    积分:1
  • driver
    在制作驱动软件的过程中,运用此程序可以用来截取包(Driver software in the production process, the use of this procedure can be used to intercept packets)
    2010-12-22 09:44:40下载
    积分:1
  • llvbo
    用C语言设计数字滤波器,实现低通,带通,高通,带阻功能(Digital filter design using C language, to obtain Low pass, band pass, high pass, band-stop function)
    2016-03-02 13:37:49下载
    积分:1
  • 19947_VcExtend
    采用visual c++来进行的位数扩展编程(The number of bits the visual c++ to expand programming)
    2012-07-20 17:27:46下载
    积分:1
  • Calculator
    实现计算器的基本功能,还包括计算器的科学计算功能,提供菜单的选择功能。(To achieve the basic function calculator, but also includes calculators for scientific computing capabilities to provide menu options.)
    2009-12-11 17:19:20下载
    积分:1
  • RemoteXP_source
    RemoteXP木马的源代码,这是一个经典的木马源码,新手可以好好的学习其中的思想。(RemoteXP Trojan source code, which is a classic Trojan source code, which novices can learn good idea.)
    2013-11-05 10:39:03下载
    积分:1
  • BMPtoAVI最终版
    基于visual c++开发,实现有bmp图像序列向avi视频信号转化(Based on Visual C + + development, the conversion from BMP image sequence to avi video signal is realized)
    2020-06-16 11:00:02下载
    积分:1
  • DataCheckDlg
    用数据库的方式操作excel文件,包括了读取文件的表名,字段名和数据,有详细的注释(Operate with the database excel documents, including a table read from the file name, field names and data have detailed notes)
    2008-03-08 22:51:01下载
    积分:1
  • H矩阵读取
    通过文本文档读取矩阵,并存储为二重指针。(Read the matrix and store it as a double pointer.)
    2018-03-06 10:20:30下载
    积分:1
  • Chess
    三个机器人扫地,最短时间,用C++6.0编写,MFC界面,研究生课程作业,最优控制(Three robots sweeping the shortest time, with the C++6.0 writing, MFC interface, graduate course work, optimal control)
    2013-06-18 15:57:26下载
    积分:1
  • 696518资源总数
  • 105531会员总数
  • 4今日下载