登录
首页 » Visual C++ » poj3941

poj3941

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

  • 80c51
    80c51单片机相关测试程序,包含led灯的显示程序(80c51 microcontroller-related test procedures, including procedures led light display)
    2011-10-10 15:38:15下载
    积分:1
  • Bits-Tool-source
    用VC写的2进制输出工具,用鼠标点选check控件时,edit控件会同步显示对应的数值,这份代码最重要的特色时控件颜色的显示。(Using VC to write two hexadecimal output tool, use the mouse to click the check controls, the edit control will display synchronous corresponding numerical, when this code is the most important characteristics of control color display. )
    2014-09-12 23:24:33下载
    积分:1
  • DSP_MODBUS
    基于dsp28335MODBUS协议通信MCGS触摸屏人机界面程序(Based on dsp28335MODBUS protocol communication MCGS touch screen man- machine interface program)
    2020-11-06 19:59:50下载
    积分:1
  • GuessNum
    VC++ 界面优化的例程,界面优化皮肤,例程是一个猜数字的对话框(VC++ Interface optimized routines, interface optimization of the skin, routine is a dialog box猜数字)
    2009-01-07 13:31:22下载
    积分:1
  • multhread
    程序用于完成多线程程序设计,在vc环境下开发(Procedures for the completion of multi-threaded programming, in vc development environment)
    2011-01-17 22:28:05下载
    积分:1
  • transfers
    局域网 实现文件的数据传输 传输进行了 文件属性的 处理, 接受后文件属性不变!(LAN file transfer data transfer carried out the deal with file attributes, file attributes unchanged accepted!)
    2008-08-17 17:18:18下载
    积分:1
  • CSerialPort-class
    最新版CSerialPort类(2014年),还包含一个旧版本,可以进行比较使用。(The latest version CSerialPort class (2014), also contains an older version. Use can be compared.)
    2016-02-22 20:31:19下载
    积分:1
  • SystemTree
    通过对话框构建了一个简单的xp资源管理器,演示了CTreeCtrl和CListCtrl的使用方法,很仔细的。可以帮助我们掌握这个类的使用方法(Through the dialog box to build a simple resource manager xp, CTreeCtrl and CListCtrl demonstrated the use of methods, very careful. Can help us grasp this type of use)
    2009-04-26 23:27:18下载
    积分:1
  • Wave
    读取Wav格式音频文件信息,调节Wav格式音频文件音量大小,并显示波形(Read Wav format audio file information, adjust the volume Wav format audio files and waveform display)
    2013-08-08 20:46:14下载
    积分:1
  • searchfolder
    VC 实现搜索文件夹对话框。。还可以。。(Search Folders)
    2010-08-08 11:45:03下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载