登录
首页 » Visual C++ » poj3941

poj3941

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

  • msvc_at3dx1-2-3
    3D秀字程式,可秀出旋轉立體字 使用visual c++編譯(3D-word programming, rotating three-dimensional characters in 2004 and the use of visual c compiler)
    2006-07-08 01:45:31下载
    积分:1
  • cmpp3.0
    中国移动互联网短信网关接口协议(China Mobile Internet SMS Gateway Interface Protocol)
    2004-11-08 09:35:28下载
    积分:1
  • SCommTest1
    该源代码主要是实现串口通信,并将所传输的内容实现保存。(The source code is mainly realize serial communication, and the transmission of content preservation.)
    2007-10-25 21:18:20下载
    积分:1
  • Elevator
    电梯算法 在一座10层高的宾馆的大厅内,有4部由一个控制器控制电梯。乘客随时在各层选择要去的楼层。要求: 1、设计一个电梯算法,最优地满足乘客的要求(候时最小)。 2、区分电梯的状态,如空运行、载人运行、超重、当前有故障等(可人工设置)。 3、在电梯全部无人乘做时,电梯要按一定条件(可人工设置)分布在各层。 4、保存一个星期内的各电梯的运行记录。 (Elevator algorithm in a 10-storey hotel in the hall, there are four elevators controlled by a controller. Passengers at any time choose to go to the floor on each floor. Requirements: 1, design an elevator algorithm, best meet the requirements of passengers (minimum waiting time). 2, the distinction between the state of the elevator, such as the air running, manned operation, overweight, current faulty, etc. (manual setting). 3, no ride in the elevator all to do, the elevator according to certain conditions (which can be manually set) distributed in layers. 4, save a week running record of each elevator.)
    2021-04-23 15:08:47下载
    积分:1
  • manager
    使用MFC编写的模仿电脑管家部分功能,例如清理垃圾、MD5匹配杀毒、服务管理、软件卸载、启动项管理、内存优化等功能。(Use MFC prepared to imitate some of the functions of the computer housekeeper, such as cleaning up garbage, MD5 matching anti-virus, service management, software uninstall, startup items management, memory optimization and other functions.)
    2017-05-09 11:07:18下载
    积分:1
  • 4qam
    4QAM(QPSK)的调制解调以及计算误码率,最后将结果输出至表格。适合新手参考(The modulation and demodulation of 4QAM (QPSK) and the calculation of bit error rate, and finally output the result to the form. Suitable for novice)
    2018-06-23 17:04:29下载
    积分:1
  • niceface
    一个界面例子,设计得还不错,和大家一起分享,共同进步(Example of an interface, designed to be pretty good, and the U.S. share common progress)
    2008-05-29 19:33:39下载
    积分:1
  • GATSP
    说明:  该算法经运行,无任何问题,可用于解决遗传算法求解旅行商问题(The algorithm by running without any problems, can be used to solve the traveling salesman problem genetic algorithm)
    2008-10-08 09:37:16下载
    积分:1
  • web
    测试程序,可以很好的利用这个程序解决你所遇到的问题(Test procedure can be a very good use of this procedure to solve the problems encountered by you)
    2008-07-24 11:26:37下载
    积分:1
  • test4lg686
    说明:  brew中的一个测试程序,代码不错,请关注.谢谢!(brew of a test procedure code Yes, please take heed. Thank you!)
    2006-03-25 14:42:51下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载