-
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
-
STATCOM
In a deregulated utility environment financial and market forces will demand a more optimal and profitable
operation of the power system with respect to generation, transmission and distribution. Power electronic
equipment such as flexible AC Transmission systems (FACTS) opens up new opportunities for controlling power
and enhancing the usable capacity in the existing system. A Static synchronous compensator (STATCOM) based
on the voltage Sourced inverter is a widely used shunt FACTS device. This paper deals with the basic simulation
of STATCOM for two machine system and demonstration of transient stability enhancement using STATCOM
through Matlab/Simulink/Power system Computer Aided design (PSCAD).
- 2014-07-09 23:36:53下载
- 积分:1
-
Text_CTreeBT
一个MFC的属性控件类~~~封装了一些对树形控件的基本操作~~(MFC controls the properties of a type ~ ~ ~ Packaging, some of the basic operation of the control tree ~ ~)
- 2009-05-11 09:27:17下载
- 积分:1
-
DS18B20
很好用的DS18B20测温程序,基于DSP28335,亲测可用(A good temperature measurement program, which is based on DSP28335)
- 2020-10-05 15:47:38下载
- 积分:1
-
recsrh-fsush
提供了许多vc上的界面的类库,使得大家用vc做界面时不太辛苦()
- 2017-09-17 15:00:24下载
- 积分:1
-
tongxinwang
通信网试验基础实验代码,包括时间表调度实验、摘挂机检测实验、脉冲计数实验、位间隔识别实验、软件送音实验、驱动交换网络实验(Communication network based experimental test code, including the timetable scheduling experiment, hook detection experiments, pulse-counting experiments, the bit interval identification experiments, the software to send audio test, the driver switched network experiment)
- 2020-07-02 06:20:01下载
- 积分:1
-
RN8209
rn8209的驱动程序 rn8209的驱动程序(rn8209 the driver rn8209 the driver)
- 2012-03-26 15:00:46下载
- 积分:1
-
CallSQL
1、完整实现了VC++6.0 + MySQL数据库连接池;
2、解决了读取中文数据的乱码、显示问号问题;
3、演示了一个完整使用数据库连接池的标准过程;
4、进行了我自认为傻瓜化的注释,我相信详细程度足以让任何人看懂!(I am lazy,no english)
- 2016-02-14 21:05:03下载
- 积分:1
-
09_ListCtrlDemo
VC++ 6.0,MFC,List控件,演示列表控件的使用方法。(VC++ 6.0, MFC, List controls, demonstrates the use of the list control.)
- 2013-06-05 22:24:03下载
- 积分:1
-
SurfaceConstructor-1.1
从多张图像的轮廓重建3D物体,代码运行鲁棒,几乎没有Bug.(Images from more than the outline of the reconstruction of 3D objects, robust code to run, almost no Bug.)
- 2020-07-01 23:40:02下载
- 积分:1