登录
首页 » Visual C++ » poj3941

poj3941

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

  • dht11
    实现温湿度显示测量,利用stc89c51编写,利用ds18b20显示(Achieve the measurement of temperature and humidity display, use stc89c51 preparation, use ds18b20 show)
    2013-12-07 19:29:19下载
    积分:1
  • 123
    NET平台下的IP欺骗和SYN Flood攻击-彭宁-贵州大学(NET platform IP spoofing and SYN Flood attacks- Penning- Guizhou University)
    2013-12-17 11:41:19下载
    积分:1
  • EventScript
    红月五星中文事件编辑器红月五星中文事件编辑器(Luna Star Chinese Event EditorLuna Star Chinese Event Editor)
    2015-01-03 11:32:07下载
    积分:1
  • 注册码生成器
    注册码生成器(license generator)
    2004-10-05 00:51:57下载
    积分:1
  • uC-USB-V1-00a
    ucfs 加入usb的源码。很珍贵,很好很强大(ucfs join usb source. Is very precious, very good very strong)
    2009-11-27 16:33:51下载
    积分:1
  • zeus2d_v2.0.tar
    二维磁流体计算程序,可根据问题干煸,已有改变成三维的版本(Two-dimensional MHD calculation program, according to the problem dry stir, has changed into a three-dimensional version of the)
    2020-11-21 10:49:36下载
    积分:1
  • read_write
    这个程序是一个linux-arm 根文件系统读写驱动程序。(This program is a linux-arm root file system read and write driver)
    2013-10-17 20:15:06下载
    积分:1
  • Calibration
    说明:  halcon标定例程,适合初学者了解HALCON的使用(HALCON CALIBRAITON EXAMPLE)
    2020-03-16 10:28:01下载
    积分:1
  • Zgda2
    说明:  随着业务的不断发展,公司员工的不断增加,职工档案及工资的管理已经成为公司管理中的重要部分,传统的管理制度已经不能有效地管理员工的情况。本系统是为了方便职工档案的管理而开发的基于Visual C++的数据库应用软件。(With the continuous development of business, the continuous increase of employees, the management of employees' archives and wages has become an important part of the management of the company. The traditional management system can not effectively manage the situation of the employees. This system is a database application software developed on the basis of Visual C++ for the convenience of staff files management.)
    2018-04-28 10:49:37下载
    积分:1
  • PortControl
    PortControl shematic pcb
    2014-07-14 21:54:13下载
    积分:1
  • 696518资源总数
  • 106235会员总数
  • 12今日下载