-
poj3941
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.)
- 2013-07-16 20:45:28下载
- 积分:1
-
Prezi5.2.5
prezi是一个多功能可视化软件包,一般用于对lammps等软件的模拟结果进行可视化处理(a tool for MD simulation to realize Visualization)
- 2015-04-16 15:50:06下载
- 积分:1
-
使用python编写的聊天lib,支持jabber协议。
使用python编写的聊天lib,支持jabber协议。-Prepared to use python chat lib, to support the jabber protocol.
- 2022-05-07 07:15:51下载
- 积分:1
-
LG-beam-phase-master
说明: 模拟拉盖尔光束在相位屏中传输,具有参考价值(Simulation of Laguerre beam propagation in phase screen)
- 2021-03-18 13:49:19下载
- 积分:1
-
diver
精伦通用二次开发包
带有VC++ 例子。(Jinglun general secondary development package)
- 2011-09-08 18:44:20下载
- 积分:1
-
khoshmanesh
solve tsp,read file contains cities and makes matrix then solve by hillclimbing -iterrative ,stochastic and simulated annekling
- 2010-05-23 15:25:09下载
- 积分:1
-
jc
说明: VC++编程基础
各类模块程序,均调试通过,简单易学,适合入门使用。(VC++ programming process based on various types of modules are debugging through, easy to learn, for entry to use)
- 2009-08-13 13:46:07下载
- 积分:1
-
rose
用python绘制玫瑰花,用turtle库进行绘制(Drawing roses with Python)
- 2019-06-10 14:52:31下载
- 积分:1
-
zhongbiao
钟表程序 设计c语言。实现钟表程序,显示的是目前时刻的信息(Watch program)
- 2014-04-10 15:06:41下载
- 积分:1
-
socket心跳包
说明: 基于c# 开发的socket心跳包包括客户端和服务端(Socket heartbeat package based on C # development)
- 2020-12-26 09:29:04下载
- 积分:1