登录
首页 » Visual C++ » poj3941

poj3941

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

  • mjpg-streamer-smart210-broadon-src1
    mjpg-streamer的smart210的移植版本(Detailed description in Chinese)
    2018-03-25 21:30:05下载
    积分:1
  • burg
    自编的C语言Burg算法,可用于随机信号处理功率谱估计(C language self Burg algorithm for random signal processing power spectrum estimation)
    2020-07-02 02:40:02下载
    积分:1
  • u-boot
    uboot--linux -s3c2440-nand_flash,nor_flash,64Msdram.This program is free software(uboot--linux-s3c2440-nand_flash,nor_flash,64Msdram.This program is free software)
    2013-09-09 11:04:48下载
    积分:1
  • NS
    基于元胞自动机的交通流模型 ns模型 C++(ns model, C++)
    2014-02-07 14:57:32下载
    积分:1
  • CSharp_SerialPort
    C# 串口通信源码示例,老外写的,非常精美。(Serial Communication C# source code examples, written by foreigners, very fine.)
    2012-09-26 10:25:26下载
    积分:1
  • DiskDataSecurityTechnologyAndProgrammingExamples
    书籍《磁盘数据安全技术与编程实例》-郑平泰-源代码(Books 《disk data security technology and programming examples》 - Zheng Ping-tai- the source code)
    2009-03-19 12:43:18下载
    积分:1
  • Counter_dll
    基于研华PCI-1710HG数据采集卡基于动态链接库的计数器程序。用VC++6.0MFC实现。程序功能实现实时计数值显示及频率值显示。(Advantech PCI-1710HG-based data acquisition card is based on the dynamic link library counter program. With VC++6.0MFC achieved. Program features real-time count value display and frequency display.)
    2020-09-10 10:58:00下载
    积分:1
  • FFT
    TMS320C6678 FFT源代码,TMS320C6678是TI公司推出的一款8核DSP,具有强大的并行处理能力,FFT代码底层使用汇编编写,使用C语言调用,模块化功能,便于使用(TMS320C6678 FFT source code, TMS320C6678 is TI has introduced an 8-core DSP, a powerful parallel processing capabilities, FFT underlying assembler code written in C language calling, modular functionality, ease of use)
    2014-10-18 21:58:58下载
    积分:1
  • ADO
    C++实现的使用ADO方式连接ACCESS 2007数据库并从中取数据(C++ to achieve the use of ADO to connect the ACCESS 2007 database and fetch data from)
    2012-05-27 16:54:14下载
    积分:1
  • TestWord
    把word文件嵌入到系统中,不用另外打开其他程序,非常实用,可以应用到其他大型程序之中(Embedding word files into the system without opening other programs is very practical and can be applied to other large programs.)
    2019-05-06 17:26:43下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载