登录
首页 » Visual C++ » poj3941

poj3941

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

  • ITM_17_RS232
    说明:  Software for ITM-17 dvb-t/T2/c meashurement tuner with RS232
    2018-12-29 15:50:04下载
    积分:1
  • 5615
    5615的驱动电压精度控制在0.2V,经过实验证实。(5615 driving voltage accuracy control in 0.2 V, confirmed through experiments)
    2015-10-06 22:02:52下载
    积分:1
  • UnderGroundSystem
    使用MFC做的一个关于南京地铁自动售票系统的程序(Use MFC to do one on Nanjing Metro automatic ticketing system program)
    2014-03-10 22:02:02下载
    积分:1
  • 8-30
    说明:  C sharp程式. 可自動排列撲克牌順序,並比大小.(C sharp code. Can be automatically arranged in order of playing cards, and more than size.)
    2010-04-30 21:15:17下载
    积分:1
  • nRF24L01
    nRF24L01示例程序,官方的,试验通过。(nRF24L01 sample program, the official trial through.)
    2010-06-11 21:36:03下载
    积分:1
  • 683634
    会发声的按钮,VC++经典编程源码,很好的参考资料。(Will sound button, VC++ classic programming source code, a good reference.)
    2013-11-14 10:22:27下载
    积分:1
  • ourdev_421497
    实现很多字的连续显示.可以动态显示。和静态显示等诸多功能 (jist a display)
    2010-06-26 22:26:08下载
    积分:1
  • cppodbc
    使用C++编写的对ODBC封装类。对ODBC的主要操作进行了类的封装。(The use of ODBC written in c++ wrapper class.The encapsulation of main operation of ODBC.)
    2021-01-19 20:28:42下载
    积分:1
  • PCLGUI_Test_Wince6_Arm
    WINCE 6.0下支持USB PCL3GUI语言打印机的驱动程序,支持的打印机型号包括HP Deskjet 1000,HP Deskjet 1010,HP Deskjet 1020等等。测试之前要保证你编译的系统包含了USB Printer Class Driver和PCL Printer Driver这两个组件。(Support Drivers USB PCL3GUI printer language under WINCE 6.0, supported printer models include HP Deskjet 1000, HP Deskjet 1010, HP Deskjet 1020, and so on. Before the test to ensure that your system contains a compilation USB Printer Class Driver and PCL Printer Driver these two components.)
    2015-01-30 00:36:01下载
    积分:1
  • Lesson19Code
    孙鑫VC++windows编程视频19课配套程序(Sun Xin VC++windows Programming Video Lesson 19 supporting program)
    2012-12-10 09:51:28下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载