登录
首页 » Visual C++ » poj3941

poj3941

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

  • BF609_Timer
    BF609 DSP定时器程序例程,初学者通过这个例程可以学会定时器的编程方法(BF609 DSP timer routine, beginners can learn through this routine Timer programming)
    2016-10-21 20:22:19下载
    积分:1
  • csXGraphTrial
    说明:  主要是实现柱状图,饼状图以及线图的控件,包括各种参数设置(is the main column, looking pie chart and the controls, including the various parameters set)
    2006-02-04 14:21:13下载
    积分:1
  • comElves
    基于VC++的串口调试程序可以发送接收数据,非常实用于初学者研究学习(Serial debugger based on VC++ can send and receive data, very useful for beginners learning)
    2013-03-16 22:26:29下载
    积分:1
  • VC-Ado-Oracle
    本例子是在VC下用ADO链接ORacle数据库的一个实例,在界面中通过输入数据源名,用户名,密码,点击链接之后,若是成功,则会在listbox里显示所有的表,当双击某一个表时,则会在右边的listcontrol 中显示相应的表中数据。(this application is a good example to connect Oracle with ADO under the enviroment of visual C++ 6.0.After entering your datasource name,uer name,and your code ,click the connect button ,if no error,you will see all table of the datasource.the datas will show while you double click a table in the list box.)
    2010-07-21 17:03:35下载
    积分:1
  • N9020-90112
    安捷伦X系列频谱仪编程手册,包括N9030A、N9020A、N9010A、N9000A、N9038A等型号(Agilent X-Series Signal Analyzer Programmer s Guide N9030A、N9020A、N9010A、N9000A、N9038A)
    2014-04-16 15:25:39下载
    积分:1
  • vbbarcodeprint
    VB打印条形码的测试程序,不包括其它的功能,只是演示如何将条码打印出来,功能单一,不过容易理解,VB6.0打印条形码无思路的可参考。 (VB test program print bar codes do not include other functions, but demonstrates how to print out barcodes, single function, but it is easy to understand, VB6.0 print barcodes without thinking can be found.)
    2014-05-14 16:02:11下载
    积分:1
  • s3c2440-gpio-kbd
    S3C2410 GPIO口下的5X5键盘驱动(S3C2410 GPIO port 5X5 keyboard driver)
    2012-05-29 10:50:07下载
    积分:1
  • dol-plugin-0.1-src
    IDA反汇编器DOL加载器插件源码,编译需要IDA SDK(IDA disassembler DOL loader plug-in source code, the compiler needs IDA SDK)
    2011-09-16 14:48:22下载
    积分:1
  • VB.NET
    完全自己编写的做练习题的软件源代码,包括填空、选择、判断等类型,用ACCESS制作题库。通过这个例子可以学习VB下数据库的使用。(Fully prepared to do their own exercises in the software source code, including fill in the blank, select, judge and other types of produce with ACCESS exam. Through this example we can learn to use the database under VB.)
    2014-01-31 10:25:10下载
    积分:1
  • PMS
    本系统模拟一个计算机病员监护系统(Patient Monitoring System, PMS)。该系统随时接受并监视病人的生理信号(脉搏、体温、血压、心电图等),定时记录病人情况以形成患者日志,当某个病人的生理信号超出医生规定的安全范围时向值班护士发出警告信息。当护士需要时还可以要求系统打印出某个指定病人的病情报告。 本系统全部代码采用MFC在Visual Studio .Net环境中编写。患者所有信息保存在Access数据库(PMS.mdb)中。 (A computer simulation of the system Patient Monitoring System (Patient Monitoring System, PMS). The system is ready to accept and monitor the patient s physiological signals (pulse, temperature, blood pressure, ECG, etc.), regularly records the condition of patients to form a log of patients, when a patient s physiological signals beyond the scope of the required safety of doctors to the nurses on duty to issue a warning message . When nurses need also can ask the system print out a report of the designated patient. All the system code using MFC in Visual Studio. Net environments prepared. Patients all the information stored in the Access database (PMS.mdb) in.)
    2007-11-15 10:24:42下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载