-
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
-
copyTESt
这是怎么了 等等 用友 cell的使用(This is how and so forth)
- 2010-01-21 21:30:57下载
- 积分:1
-
OperateAccess
自己写的用ADO操作数据库,添加,删除,修改功能,显示在listctrl上,已经数据导出EXCEL。(ado )
- 2010-06-24 21:27:14下载
- 积分:1
-
of-second-interview-data
考研复试资料大全 本人计算机专业考入研究生,这份复试资料很多忙(One s deceased father grind second-round exam of resources I was admitted to the graduate computer science, the second-round exam information a lot)
- 2015-06-16 11:43:57下载
- 积分:1
-
IPPackCap
编制程序,监控网络,捕获一段时间内网络上的IP数据包,按IP数据包的源地址统计出该源地址在该时间段内发出的IP包的个数,将其写入日志文件中或用图形表示出来(建议用图形表示出统计结果)。(Program monitoring network, a period of time to capture IP data packets on the network, according to the source address of the IP packet statistics of the number of the source address is issued in the time of the IP package, written into the log file or graph out (that show the statistical results with graphics).)
- 2021-01-11 17:18:49下载
- 积分:1
-
6919470
采用WINDDOWSSDK写的按钮界面,其中详细的展现了按钮控件的各个属性的操作(Using the button interface written by WINDDOWSSDK, which details the button control of the various properties of the operation)
- 2018-10-27 19:15:10下载
- 积分:1
-
HammingWindow
汉明窗代码,C代码,很有用的代码,我自己编写的,很好很强大!(Hamming window code, C code, very useful code, what I have written, very very powerful!)
- 2013-04-24 13:55:04下载
- 积分:1
-
shu
二叉树的实验报告 源码以及运行结果的说明(Experimental report bintree source and run results)
- 2009-01-11 00:58:15下载
- 积分:1
-
high-quality-programming-of-C
这是一本关于C语言规范编程的好教程,通过阅读本书对我们以后的编程习惯会有很大的影响(This is a programming tutorial on the C language specification, through reading this book will have great impact on our programming habits)
- 2012-10-29 10:39:51下载
- 积分:1
-
Zigbee_Stack
zigbee协议栈_源代码大全与解析,无线网络的核心技术(core technology zigbee protocol stack source code complete _ and analysis, wireless network)
- 2015-06-29 10:22:04下载
- 积分:1