登录
首页 » 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 个回复

  • BMPtoAVI最终版
    说明:  基于visual c++开发,实现有bmp图像序列向avi视频信号转化(Based on Visual C + + development, the conversion from BMP image sequence to avi video signal is realized)
    2020-06-16 11:00:02下载
    积分:1
  • stc12pwm
    这个c程序用于12c5a60s2单片机产生pwm ,并通过按键调节pwm脉冲宽度。(This c program is used to generate 12c5a60s2 microcontroller pwm, and through the key regulator pwm pulse width.)
    2013-05-23 19:11:56下载
    积分:1
  • operator_Complex
    c++ 操作符重载示例,实现复数的相加运算和赋值(c operator overloading example, the realization of complex arithmetic calculations and the sum of assignment)
    2006-12-26 22:07:46下载
    积分:1
  • VBNProj3
    Voice Visual Basic .net 2005 2
    2009-06-28 09:37:52下载
    积分:1
  • LSGEB
    这是一个吃豆子游戏小程序,费了一番功夫,鼓励一下(This is a small game to eat beans procedures, costs a lot of effort to encourage you)
    2009-06-23 22:25:46下载
    积分:1
  • domain-ip
    说明:  根据域名获得IP地址列表 根据域名获得IP地址列表(under the name list of IP addresses under the domain of IP address list)
    2006-03-29 15:53:55下载
    积分:1
  • CStatic(ownerdraw)
    MFC Static 自绘控件,美化控件。(Static OwnerDraw)
    2013-10-19 13:46:17下载
    积分:1
  • VCAD
    适合于图形学的初学者学习的二维图形绘制包(Graphics for beginners to learn the two-dimensional graphics rendering package)
    2011-12-18 16:19:25下载
    积分:1
  • 001
    L298驱动模块实现马达的正转,反转,和停止功能(L298 motor driver module for forward, reverse and stop functions)
    2014-12-12 09:35:45下载
    积分:1
  • UVALive4849
    uvalive4849的ac源码。算法:2-sat。题意:给n(n<=3000)个黑方块的坐标,保证黑方块没有公共边。对于每个黑方块选一个角作为结点,使得所选结点满足输入的一个无向图。其中距离为曼哈顿距离。输出是否有解。possible或impossible。(AC source of uvalive 4849. Algorithms: 2-sat. Meaning of the questions: to n (n <= 3000) coordinates a black box, to ensure that there is no common edge black squares. For each black box to choose a corner as nodes, such that the selected nodes meet a directed graph with no input. Where the distance is the Manhattan distance. Output is solvable. possible or impossible.)
    2015-01-25 21:27:51下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载