登录
首页 » Visual C++ » poj3941

poj3941

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

  • Computernetwork
    计算机网络课程设计计算机网络课程设计计算机网络课程设计(Computer network)
    2011-01-15 16:43:38下载
    积分:1
  • Untitled
    This function is built to segment the nuclei of white blood cells
    2014-01-26 17:58:26下载
    积分:1
  • OS_projectC_Mutex
    You are asked to design and implement a simulator for university life where lecturers provide lectures (credits) and students attend lectures (credits) to graduate. This simulator uses a bounded circular buffer shared by lecturers and students. Lecturers are concurrently providing lecturers and placing their lecturers in JCU (shared buffer) and students are concurrently taking lectures from JCU to graduate. The purpose of this assignment is to give you some "hands-on" experience with concurrent processes, semaphores, and shared memory. You need to use the modules you practiced in week 6 and 8 labs (Prac 5 and Prac 6). You need semaphores for mutual exclusion and synchronization (studied in week 6 prac) and a shared buffer for shared memory IPC (studied in week 8 prac).
    2009-10-31 16:09:02下载
    积分:1
  • LDPC_code
    LDPC码编译码程序,C语言,译码位BP译码算法 code&decode BP(LDPC code&decode BP)
    2013-05-03 16:03:58下载
    积分:1
  • FibonacciHeap
    斐波那契堆基于二项式堆,在支持以O(1)时间实现插入、合并和以O(log n)实现删除最小元素的基础上,进一步实现了以O(1)实现指定节点值减少和用O(log n)时间完成删除任意节点操作(Fibonacci heap-based binomial heaps of support to the O (1) time to achieve insertion, Merger and O (log n) to achieve the smallest element deleted on the basis of further to the O (1) to achieve specified nodes and reduce the value of O (log n) time to complete the deletion of arbitrary nodes parade for)
    2007-01-04 22:36:07下载
    积分:1
  • 电脑管理器
    说明:  1、包括定时关机、AES加密解密、注册表读写、锁屏、密码、开机自启、帮助、关于等 2、关于中包含版权信息,我确保这是我原创的,关于中的版权信息与本账号为同一人 3、直接原版的VS2008工程文件,可导入VS2008。编译结果在VS2008默认状态下的调试目录中(1. Including regular shutdown, AES encryption and decryption, registry read-write, lock screen, password, boot, help, about, etc 2. About the copyright information contained in, I ensure that this is my original, about the copyright information and this account for the same person 3. Direct original version of VS2008 project file, can be imported into VS2008. The compilation results are in the debug directory in the default state of VS2008)
    2020-12-12 17:24:51下载
    积分:1
  • STRCPY
    STRCPY的实现与应用 希望对大家由帮助(STRCPY THE SHIXIAN)
    2013-12-09 14:53:19下载
    积分:1
  • HELLOMFC
    Visual C++ 6.0 程序设计从入门到精通 实例2-1 helloMFC(Example 2-1 helloMFC Visual C++ 6.0 programming from entry to the master)
    2012-11-03 11:31:50下载
    积分:1
  • 00163597urg-0.8.18
    雷达数据采集,日本urg-0.8包,采集2D数据,将雷达测出的长度信号转换成图形数据显示,库包里有C库以及c++库。((Radar data acquisition, Japan urg 0.8 package, 2 d data, the radar to measure the length of the signal into graphic data shows that there are C library and the library of C++ library package.))
    2018-03-12 15:52:58下载
    积分:1
  • 基于DirectSound的声音播放器
    说明:  用VC编的基于DirectSound的声音播放器,适合多媒体学习之用(VC series based on the voice of DirectSound players, suitable for use multimedia learning)
    2005-11-17 17:14:22下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载