登录
首页 » Visual C++ » poj3941

poj3941

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

  • PrintSample11
    模拟随机肥皂泡泡的生成,并可在一个窗口上打印小泡泡。(Simulation of random formation of soap bubbles, and in a small bubble window to print.)
    2007-10-18 13:57:19下载
    积分:1
  • tongxunlu
    通讯录,有界面,用于简单作业实训,界面可以自行改善,希望对大家有点点用处(Address book, interface, for simple job training, the interface can improve themselves, we hope to have little use)
    2017-06-25 21:29:53下载
    积分:1
  • trc_com_log
    记录串口收到的数据并存到文件,主要用于不容易发现的程序BUG调试(record serial data received by the coexistence of the document, mainly for not easy to find the debugging process BUG)
    2007-07-03 11:59:12下载
    积分:1
  • remotecontrol
    纯SDK 实现之 远程控制,包含客户端和服务端 c/c++(Net SDK to achieve the remote control, including client and server-side c/c++)
    2010-03-04 16:43:35下载
    积分:1
  • Visual C++网络通信协议分析
    Visual C++网络通信协议分析,使你对网络编程有一个全新的掌握(Analysis of network communication protocal in vc, you can gain a completely new understanding of network programming)
    2005-06-24 07:26:00下载
    积分:1
  • HCIR1_0A
    OHCI 规范,英文资料,嵌入式USB开发必备(Development of essential information in English, embedded USB OHCI specification)
    2012-08-13 15:53:29下载
    积分:1
  • 217viterbi-decoding(C-language)
    C语言实现217卷积码的viterbi译码(软、硬判决的代码都有,运行时先在VC中分别运行软、硬判决的C程序,产生误比特率的数据并存储在.txt文件中,之后在matlab中读取数据,画出误比特率曲线,matlab程序也已给出)(C language achieve 217 viterbi decoding (including hard and soft decision,and the codes should be run in VC to generate and store the BER datas,and the to obtain BER curve in matlab))
    2020-06-29 17:00:01下载
    积分:1
  • main
    电子词典增删修改功nengjdf jkfncknkslnnks(electronic dictionary )
    2016-07-09 14:10:58下载
    积分:1
  • MisGoldPrinterOpenSource
    是一款小巧的打印功能的源码,实现报表打印功能,有打印预览,打印纸张数,自选打印列数等(Is a compact source code printing capabilities to achieve printing functions, a print preview, print, paper number, print out a few other choice)
    2010-07-02 16:27:28下载
    积分:1
  • USBHID
    说明:  VB遍历USB设备-USB-HID调用工具源代码(VB traversal USB device-USB-HID call tool source code)
    2020-06-14 20:58:17下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载