登录
首页 » Visual C++ » poj3941

poj3941

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

  • NewVCCom
    使用VC生成COM组件的方法,里面对VC生成不同形式的COM接口参数的方法,对COM组件不熟悉的朋友会是一个很好的学习资料!(COM components using VC generation method which generates on the VC parameters of different types of COM interfaces methods, and COM components are not familiar with the friend would be a good learning materials!)
    2021-03-07 22:19:29下载
    积分:1
  • Dzxtest1
    一个绘制等值线的程序,可输入固定格式的文件,文件也在压缩包中(a contour mapping procedures, fixed format document, which also contained within)
    2007-01-19 16:12:34下载
    积分:1
  • Fill_IEs
    IE自动填充,基本框架和功能,自己再去添加和修改吧--IE自动填充,基本框架和功能,自己再去添加和修改吧(IE Auto fill, the basic framework and functions, add and modify it yourself go)
    2011-11-16 16:02:21下载
    积分:1
  • imige
    说明:  用VC++写的一个能进行阈值分割的程序,绝对可用(With VC++ Can write a threshold segmentation procedure, the absolute available)
    2008-12-02 22:05:35下载
    积分:1
  • json_c_0.12
    windows下编译json-c-0.12版源码, 采用vc 2012 包括两个工程, json-c-0.12 lib test 用例 具体使用可以参看源码目录下的testsrc(Windows compiled json-c-0.12 version of the source code, using VC 2012 includes two projects, json-c-0.12 lib test case specific use can be found in the source code directory testsrc)
    2021-01-29 10:08:33下载
    积分:1
  • wireless
    用于无线网络编程的学习,很实用,作为初学者的入门教材还是很有用的。(Wireless network programming for learning)
    2013-12-02 17:25:50下载
    积分:1
  • SetFDMData
    主要用于flightgear与matlab联合仿真中的udp通信(Mainly used udp communications flightgear joint simulation with matlab)
    2016-03-30 16:24:21下载
    积分:1
  • pooceduresLCD
    用VB做的一个液晶取字模程序,做液晶显示应该能够能用得到(Using VB to do a take type LCD procedures, can do LCD display should be able to get)
    2017-04-05 01:58:42下载
    积分:1
  • LDPC
    该程序给出了LDPC编译码程序的经典算法,即BP算法,性能比较好(The program gives the classic algorithm LDPC decoding procedures, namely BP algorithm, the performance is better)
    2013-06-13 15:42:39下载
    积分:1
  • SUN
    基于UC/OS-II的温度实时监测系统, 控制CPU自带温度传感器,并将温度显示在数码管或LCD上;当温度大于设定值时报警;报警驱动蜂鸣器并通过串口上传到PC;PC给出消除报警指令后则取消报警;报警的重新启动由按键通过中断送入;合理安排UC/OS-II实时任务,合理利用UC/OS-II各类事件机制(信号量、消息邮箱、消息队列、事件标志组等)。(Based on UC/OS-II real-time temperature monitoring system, the control CPU comes with a temperature sensor and the temperature on the digital display or LCD when the temperature is greater than the set value alarm alarm buzzer driver and uploaded to the PC via the serial port the PC gives instructions to eliminate warning alarm is canceled restart interrupted by an alarm from the key into reasonable arrangements for UC/OS-II real-time tasks, rational use of UC/OS-II mechanism for all types of events (semaphores, message mailboxes , message queues, event flag groups, etc.).)
    2020-12-21 15:39:08下载
    积分:1
  • 696518资源总数
  • 106222会员总数
  • 14今日下载