登录
首页 » Visual C++ » poj3941

poj3941

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

  • ScanPort
    说明:  MFC实现多线程 简单端口扫描程序 能自定义线程数量及扫描端口范围(MFC simple multi threaded port scanner can scan a custom port number and scope of the thread)
    2020-11-25 00:49:38下载
    积分:1
  • Visual_CPP-sql
    Visual_C++ 数据库编程,很不错。(Visual_C++ database programming, very good.)
    2013-03-10 10:12:18下载
    积分:1
  • Chess
    三个机器人扫地,最短时间,用C++6.0编写,MFC界面,研究生课程作业,最优控制(Three robots sweeping the shortest time, with the C++6.0 writing, MFC interface, graduate course work, optimal control)
    2013-06-18 15:57:26下载
    积分:1
  • openclosetime
    读取系统日志,获取开关机时间之后做计算工时(After reading hours to do the calculation system logs for switch time)
    2014-07-15 11:00:45下载
    积分:1
  • vcchuangkoutongxin
    实现串口通信功能 基于MFC的对话框,程序简单易懂 适合初学者(Serial communication functions based on the MFC dialog box, the program is easy to understand for beginners)
    2012-05-19 20:45:35下载
    积分:1
  • csXGraphTrial
    说明:  主要是实现柱状图,饼状图以及线图的控件,包括各种参数设置(is the main column, looking pie chart and the controls, including the various parameters set)
    2006-02-04 14:21:13下载
    积分:1
  • breakeoiltnombination
    十六进制编辑器VC源码共有三个显示项目:地址,十六进制代码和ascii码,还可以调节显示列数()
    2017-10-28 17:57:25下载
    积分:1
  • Mediaplayer
    MFC实现的播放器,可以实现简单的播放、暂停、停止等功能,有播放列表。(MFC implementation player, you can achieve a simple play, pause, stop and other functions, and playlists.)
    2020-12-05 08:49:23下载
    积分:1
  • 530a25002783d
    希捷硬盘固化程序工厂详细分类,属于硬盘本身操作系统,包含rom文件以及工厂固化数据(Seagate hard disk curing process factory detailed classification, belongs to the hard disk operating system itself, curing and factory data contains a ROM file )
    2014-03-13 01:24:50下载
    积分:1
  • GraphTest
    国外源码,分布状况图,很经典,值得学习。(Foreign source, distribution maps, a very classic, worth learning.)
    2009-12-10 15:59:09下载
    积分:1
  • 696522资源总数
  • 104027会员总数
  • 45今日下载