登录
首页 » Visual C++ » poj3941

poj3941

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

  • MFCLibrary1
    说明:  msgina代码修改此代码生成dll替换winxp中的msgina.dll可以设置xp登录方式(Msgina code to modify this code to generate DLL to replace msgina. DLL in WinXP can set the way of XP login)
    2019-03-28 14:01:40下载
    积分:1
  • electre
    多目标决策方法之一的ELECTRE的重要实现代码。 (ELECTRE MATLAB Code)
    2012-03-15 15:25:35下载
    积分:1
  • kongxinzitishuchu
    在开始一个路径前,先调用CDC类的成员函数BeginPath,然后调用一系列的输出函数,在完成绘制后,再调用CDC类的成员函数,在完成一个路径之后,就可以调用StrokePath来绘制该路径,这就是路径的基本用法.(at the beginning of a path, first call CDC category of members BeginPath function, then called a series of the output function, the complete mapping and then call CDC category of members function, the completion of a path, we can call StrokePath to mapping the path, This is the path the basic usage.)
    2007-07-04 17:50:26下载
    积分:1
  • 2011_08_20_ADO_Access
    VC++ MFC中基于对话框的程序 使用ADO对ACCESS进行操作,编辑,添加、删除记录,显示所有的记录等。如何对mdb程序进行压缩等功能、如何动态建立mdb文件以及动态建立table表进行详细说明。(VC++ MFC dialog based on the ACCESS program uses ADO to operate, edit, add, delete records, show all records. How to compress mdb program functions, how to dynamically create mdb file and dynamically build table table details.)
    2011-08-22 19:31:19下载
    积分:1
  • sprc090
    download the file to be able to program for c6713
    2017-09-22 19:28:53下载
    积分:1
  • cqnsole
    VLD支持排查特定线程的泄漏,所有线程的泄漏,在特定的阶段启用泄漏检查,安装完成后,即可启用内存泄漏检测了(VLD supports troubleshooting leaks from specific threads, leaks from all threads, and leak checking is enabled at a specific stage, and memory leak detection is enabled when the installation is complete)
    2018-09-29 14:31:09下载
    积分:1
  • ghost
    ghost远控源码 最初的开源代码仅供大家藏考应用!!!!(ghost remote control sourceghost remote control sourceghost remote control sourceghost remote control source)
    2012-11-26 04:07:26下载
    积分:1
  • Linuxcoresourcecode
    Linux 核心源程序 很好的学习程序,比较实用 谢谢大家提出意见 (Linux core source good learning process, more practical advice Thank you)
    2009-11-16 14:39:57下载
    积分:1
  • 3-2
    获取计算机IP地址。可以试试看。源码用C++实现(C++)
    2009-12-19 10:09:17下载
    积分:1
  • EditTreeControl
    创建可编辑节点的树形控件EditTreeControlEditTreeControl.rar,很不错的vc源码,希望对大家有所帮助。(Creating an editable node tree control EditTreeControl EditTreeControl.rar, very good vc source code, we want to help.)
    2011-09-21 22:44:13下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载