登录
首页 » Visual C++ » poj3941

poj3941

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

  • J3AnJianGua
    PostMessage,游戏外挂,按键发送(PostMessage, game plug-in, send button)
    2011-08-16 15:54:47下载
    积分:1
  • calculator2183036172010
    code for c++ this can help to understand c++
    2011-05-17 16:19:54下载
    积分:1
  • rqra
    说明:  VB语言写的按键追踪控件及应用,含有调用源码。(The key tracking control written in VB language and its application contain calling source code.)
    2018-12-31 11:14:26下载
    积分:1
  • Digitalimageprocessingexamplesofafewprograms
    文件名称: 数字图像处理的几个程序例子.r下载 所属分类: 图形图象 开发工具: VC 文件大小: 3484 KB 上传时间: 2005-7-31 下载次数: 1 提 供 者: 李玲 详细介绍: 这是几个数字图像处理的程序实例,有经典的傅立叶变换和反变换、图像增强(中值滤波、增强光照)还有染色体计数。它们都是经典算法的实现。 (File Name: Digital image processing examples of a few programs. R download-owned Category: Graphic Image Development Tools: VC File Size: 3484 KB upload time: 2005-7-31 Downloads: 1 provider: Li Details: This is a few examples of digital image processing procedures, there is the classic Fourier transform and inverse transform, image enhancement (median filtering, to enhance light), there are chromosome counts. They are the classic algorithm.)
    2009-10-21 06:11:05下载
    积分:1
  • xianxing
    1.输入一组整型元素序列,建立顺序表。 2.实现该顺序表的遍历。 3.在该顺序表中进行顺序查找某一元素,查找成功返回 1,否则返回 0。 4.判断该顺序表中元素是否对称,对称返回1,否则返回0。 5.实现把该表中所有奇数排在偶数之前,即表的前面为奇数,后面为偶数。 6.输入整型元素序列利用有序表插入算法建立一个有序表。 7.利用算法 6 建立两个非递减有序表并把它们合并成一个非递减有序表。 8.编写一个主函数,调试上述算法。 * 9.综合训练:利用顺序表实现一个班级学生信息管理(数据录入、插入、删 除、排序、查找等) (err)
    2008-04-19 10:04:01下载
    积分:1
  • YMHW
    声卡数字频率计 该程序是标准的Windows界面,界面友好,以黑色背景红色大号字体显示频率值,具有醒目,程序简洁和测量精度高的特点()
    2018-06-20 09:30:57下载
    积分:1
  • DirectX
    《DirectX+游戏开发终极指南》是本好书,这是该书的exe电子书+网页版+源码,希望对初学者有所帮助……这网站的上传对名字的要求还真是蛋疼……(" DirectX+ game development Ultimate Guide" is a good book, that' s the exe e-book+ Web Edition+ source code, want to help beginners ... ... this site to upload requirements on the name really is egg hurts ... ...)
    2010-06-17 13:14:59下载
    积分:1
  • chengxu
    这是一个描述小球弹跳的matlab程序代码,他可以帮助你解决一些教学模拟问题。(simulate a ball jump)
    2013-04-13 21:03:23下载
    积分:1
  • ScreenCapture
    使用GDI库,软件可以捕捉桌面任意窗口,保存到剪切板。 操作方法:按下鼠标左键,进行拖动;(Using GDI library, the software can capture any of the desktop window, save it to the clipboard. Methods of operation: press the left mouse button, and drag )
    2013-09-17 18:02:41下载
    积分:1
  • Server
    一个类似飞鸽传书的小程序 其中的SERVER端 一会上传Client(studay ..)
    2012-06-05 11:47:56下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载