登录
首页 » Visual C++ » poj3941

poj3941

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

  • csXGraphTrial
    说明:  主要是实现柱状图,饼状图以及线图的控件,包括各种参数设置(is the main column, looking pie chart and the controls, including the various parameters set)
    2006-02-04 14:21:13下载
    积分:1
  • C8
    说明:  孙鑫VC++深入详解第八章vc++基于对话框的程序设计(sunxin VC++ shen ru xiang jie chapter8 dialogue program VC++)
    2012-05-15 22:12:54下载
    积分:1
  • microsoft-bluetooth-API
    使用 VC++ 调用微软蓝牙 API 函数的示例代码。可以使用 VC++6.0 至 VC++2010 编译代码。(Using VC++ call Microsoft Bluetooth API sample code. You can use VC++6.0 to VC++2010 compiled code.)
    2020-12-23 09:09:06下载
    积分:1
  • ip_db_format
    ip地址数据库格式,便于开发使用,很清晰.(ip address database format to facilitate development and use, very clear.)
    2013-10-22 17:54:05下载
    积分:1
  • paint_move
    能在MFC界面绘制随着鼠标移动的线条,在visual studio中正常显示(In MFC interface as the mouse moves the lines, the visual studio to the normal display)
    2016-01-25 22:28:19下载
    积分:1
  • DYExcel
    在Visual C++ 下面对EXcell的操作编程,可以任意下载,欢迎光顾(in Visual C below right EXcell programming operation can be downloaded arbitrary welcome to patronize)
    2006-06-10 20:15:10下载
    积分:1
  • 控键
    采用vb编程,实现在Timer控件中调用RDS技术把采集到的发动机振动信号数据传送到远程的服务器数据库中(used vb programming, to achieve the Timer control Calling RDS technology to the acquisition of the engine vibration signal data to a remote database server)
    2005-04-25 19:52:19下载
    积分:1
  • MicroSD
    简要介绍MicroSD卡和使用方法,希望对各位朋友有帮助(Simply discript how to use MicroSD)
    2014-09-02 01:44:19下载
    积分:1
  • C_programming_classic_design_of_variable_clock_sou
    C编程设计的多变闹钟经典源码 C programming classic design of the variable clock source(C programming classic design of the variable clock source)
    2010-08-18 07:22:38下载
    积分:1
  • GenPrint-Sample
    打印虚拟驱动,提取自wdk 8.1,需要wdk环境。(Print a virtual drive, extracted WDK 8.1, need WDK environment.)
    2021-03-11 09:49:26下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载