登录
首页 » Visual C++ » poj3941

poj3941

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

  • 3Dmesh
    三维图形的切割就是要把三维网格模型进行切割然后以等值线显示切面上的数值。运用适当的三维图形显示技术和可视化C++编成技术来实现的。(Three-dimensional graphics of the cut is to take three-dimensional grid model and then cut the contour values on the display section. Use of appropriate three-dimensional graphics display technology and visualization techniques to compiled C++ implementation.)
    2010-10-16 17:27:19下载
    积分:1
  • vbANDomron-PLC
    VB与OMRON-PLC通讯该软件实现欧姆龙PLC与电脑VB程序读写。(VB AND OMRON PLC COMMAND)
    2016-01-04 21:01:15下载
    积分:1
  • CommunicationEngineerNetWorkPractise
    通信工程师电信网络专业习题集 通信工程师电信网络专业习题集 通信工程师电信网络专业习题集(CommunicationEngineerNetWorkPractise CommunicationEngineerNetWorkPractise CommunicationEngineerNetWorkPractise)
    2014-01-12 15:39:38下载
    积分:1
  • cdfd
    说明:  完全平方数代码,并且其中的两个字母相同,这是window代码(Full square code, and one of the two letters the same, this is the code window)
    2010-05-04 12:05:32下载
    积分:1
  • CCS5.4-software-license-file
    TI公司的CCS5.4软件许可证文件,拷贝到/ccsv5/ccs_base/DebugServer/license 下面,即可使用。(TI company CCS5.4 software license file, copy it to/ccsv5/ccs_base/DebugServer/license below, then you can use ccs5.4 freely.)
    2020-11-30 21:09:29下载
    积分:1
  • design
    运动会管理系统 可以让你快速入门 绝对可以提高技术(Games Management System)
    2014-02-18 20:11:46下载
    积分:1
  • sportsmeeting
    数据结构——运动会 为帮助同学们尽快进入编程状态特提供此例 1.将SqList.h、Mdefine.h、sport.c放在同一目录下 2.按下述方法编译运行即可,体验一下 编译包含有自定义的.h文件的.c文件 一种方法: ⑴.将.c和.h文件放在某一目录下(例如:datastruct) ⑵.改变用户工作目录(用户文件所在目录) 选择"File/Chaire Dir"打开新目录输入框,输入选择的用户工作目录datastruct,执行Change Dir 改变工作目录。否则对.c文件包含的自定义的.h文件提示No open ⑶.在编辑器中打开.c文件,进行编译,运行即可 另一种方法: 在上一种方法的基础上 ⑴. 打开project菜单,选择open project ,在.c和.h文件的同一目录下创建一个工程文件 ⑵. 打开project/Add Item菜单,输入项目名,然后将.c文件增加到工程文件中。不用将.h文件加入。 ⑶.在工程文件中双击.c文件,打开.c文件,进行编译,运行即可 3. ReadFormFile(SqList &L) 从文件读入运动员成绩信息操作作为示例 (err)
    2008-12-22 20:28:14下载
    积分:1
  • WinIoenhanced
    针对原来的winio不能访问高端内存的问题,进行了修改,可以2G以上的内存(For the original winio not have access to high-end memory problems been modified, you can more than 2G of memory)
    2009-12-09 16:19:47下载
    积分:1
  • NS
    说明:  基于元胞自动机的交通流模型 ns模型 C++(ns model, C++)
    2014-02-07 14:57:32下载
    积分:1
  • IP
    说明:  获取自己的IP地址,方便实时小巧可扩充到其它功能.(Access to its own IP address, to facilitate real-time compact can be expanded to other functions.)
    2009-03-25 14:31:19下载
    积分:1
  • 696518资源总数
  • 105417会员总数
  • 32今日下载