登录
首页 » Visual C++ » poj3941

poj3941

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

  • SetWorldTransform()_demo
    How to use SetWorldTransform() to draw basic shapes rotated by any angle (How to use SetWorldTransform () to draw basic shapes rotated by any angle)
    2008-06-05 14:41:26下载
    积分:1
  • TMS320LF24XX-3
    tms320lf2407 eva evb c program 数字输入输出模块程序 希望对大家有帮助
    2014-05-28 14:22:17下载
    积分:1
  • toCstring
    将不同格式的数据转换成cstring格式,很方便,文件存在txt文件中(different data format conversion cstring format, is a convenient, the paper documents exist txt)
    2006-09-27 18:16:45下载
    积分:1
  • net
    网络编程代码,包含UDP,TCP和NET的源码,每种都保护服务器端和客户端(Network programming code, including UDP, TCP and NET source code, each protected server and client)
    2012-02-21 16:04:37下载
    积分:1
  • Calibration
    说明:  halcon标定例程,适合初学者了解HALCON的使用(HALCON CALIBRAITON EXAMPLE)
    2020-03-16 10:28:01下载
    积分:1
  • multhread
    程序用于完成多线程程序设计,在vc环境下开发(Procedures for the completion of multi-threaded programming, in vc development environment)
    2011-01-17 22:28:05下载
    积分:1
  • MFC-Sample
    MFC详细的学习例子,很多实例供初学者学习(MFC detailed study examples, many examples for beginners to learn)
    2013-07-25 09:34:46下载
    积分:1
  • NDIS_6[1].0_miniport__driver
    说明:  实现一个千兆以太网卡的NDIS的miniport驱动实例源代码 对于那些希望写一个NDIS 6.0的miniport设备驱动的开发人员来说,实例实在是太少了,只有一个DDK中的E100BEX。这里,我将选择一个当前比较流行的以太网控制器(Realtek 8111/8168/8169/8110等PCI的千兆以太网控制器),针对它们写一个NDIS6的驱动(The realization of a Gigabit Ethernet card, the NDIS driver miniport instance of the source code for those who wish to write an NDIS 6.0 of the miniport device driver developers, the example is too small, there is only one DDK in E100BEX. Here, I will choose a more popular current Ethernet controller (Realtek 8111/8168/8169/8110, such as PCI Gigabit Ethernet controller), for them to write a driver NDIS6)
    2008-12-06 11:41:00下载
    积分:1
  • avitools
    说明:  一个AVI文件操作的工具软件,包含源代码。可以读、写AVI文件。(an AVI file manipulation tools, including source code. Can read, write AVI file.)
    2006-03-23 13:51:46下载
    积分:1
  • lifegame
    一个c++开发的游戏,很有意思,有不少可借鉴之处 (A c++ Development of games, very interesting, many can learn from the)
    2008-05-21 00:55:59下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载