登录
首页 » Visual C++ » poj3941

poj3941

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

  • xiuming
    1. 实现方法 1)多窗口界面的制作 2)可视化数据管理器的使用 3)菜单编辑器的使用 4)Access数据库的建立 5)与Access数据库的正确连接 6)通过sql语句的使用实现一些功能 7)DataGrid控件的使用 8)MS FlexGrid控件的使用 2.算法思想与描述 1) 学生成绩管理系统的登录 进入程序,自动跳出学生信息管理系统登陆窗口,点查询可进入菜单选择窗口。 2) 菜单窗口的选择 菜单选择包括学生信息,学生成绩。 3)学生信息的查询 包括学生学号,姓名,性别,出生日期,籍贯,联系电话,政治面貌,系别,班级显示功能。 4)学生成绩查询 通过对学号的输入,对学生姓名,课程,成绩,总分进行成绩查询。 5)about 程序介绍。 6)系统的退出。 (err)
    2008-04-14 19:35:54下载
    积分:1
  • myFrame
    封装帧和解析帧,并有CRC校验,完全是自己手写(Feng binding and parsing frame, and a CRC checksum)
    2009-10-11 16:57:57下载
    积分:1
  • liti
    《C++程序设计教程(第2版)》例题源码,看看是不是你需要的(" C++ programming tutorial (2) Example source code to see is not what you need)
    2013-03-27 12:36:49下载
    积分:1
  • 不同进间通讯
    说明:  实现vc下不同进程之间的通讯:Copyrecv接收进程,Copysend发送进程(achieve vc different process of communication between : Copyrecv receiving process, this process Copysend)
    2020-08-23 14:07:54下载
    积分:1
  • MFC-Sample
    MFC详细的学习例子,很多实例供初学者学习(MFC detailed study examples, many examples for beginners to learn)
    2013-07-25 09:34:46下载
    积分:1
  • rgb_to_bgr
    rgb顺序的视频图片转换为bgr格式的方法,曾经困扰了我一阵子(rgb sequence of video images converted to bgr format, had bothered me for a while)
    2012-08-21 09:58:55下载
    积分:1
  • telescope-optical
    大口径望远镜光学系统的误差分配与分析 (Error large telescope optical system distribution and analysis)
    2013-11-28 13:06:08下载
    积分:1
  • nlbifa
    能量比去噪方法研究,原理图,基于能量比去噪的方法(Energy than denoising method research)
    2016-03-03 15:41:26下载
    积分:1
  • usingcppdll_src
    Sms service in .ne, can send or receive messages
    2011-05-02 23:07:30下载
    积分:1
  • WindowsDeviceDriverCode
    说明:  windows设备驱动开发,使用最新的WDF模型(windows Driver Development using WDF)
    2010-04-07 10:29:29下载
    积分:1
  • 696518资源总数
  • 106235会员总数
  • 12今日下载