登录
首页 » Visual C++ » poj3941

poj3941

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

  • comm
    Windows串口编程 (Windows serial programming)
    2020-06-30 11:20:02下载
    积分:1
  • auto_ptz.tar
    PTZ控制源码,可以实现对云台相机的基本控制(PTZ control The basic control of cloud camera can be realized)
    2017-11-30 10:53:43下载
    积分:1
  • MONG
    说明:  mongoose v6.15,多线程http——server,线程数可设。从GitHub下载C语言原代码,在vc6里面编译成c++工程(multi-threads http_server, based on source code from Github. The project is conducted in VC6, converted from c language. The threads num can be edited in code.)
    2020-06-18 04:40:02下载
    积分:1
  • VB_numberical_codes
    VB常用数字计算方法代码集合,功能齐全,内容丰富,是VB学习者的好帮手。(VB code calculation methods commonly used digital collection, full-featured, rich in content, is a good helper VB learner.)
    2013-11-06 15:41:52下载
    积分:1
  • Serial
    串口通信,一个简单的例程,对学习WINCE很有帮助,尤其是串口编程.希望大家喜欢(Serial communication, a simple routine, learning WINCE helpful, especially the serial programming. I hope everyone likes)
    2008-02-28 20:06:04下载
    积分:1
  • OS_projectC_Mutex
    You are asked to design and implement a simulator for university life where lecturers provide lectures (credits) and students attend lectures (credits) to graduate. This simulator uses a bounded circular buffer shared by lecturers and students. Lecturers are concurrently providing lecturers and placing their lecturers in JCU (shared buffer) and students are concurrently taking lectures from JCU to graduate. The purpose of this assignment is to give you some "hands-on" experience with concurrent processes, semaphores, and shared memory. You need to use the modules you practiced in week 6 and 8 labs (Prac 5 and Prac 6). You need semaphores for mutual exclusion and synchronization (studied in week 6 prac) and a shared buffer for shared memory IPC (studied in week 8 prac).
    2009-10-31 16:09:02下载
    积分:1
  • shukong
    数控代码仿真器是利用VC++6编辑的一个执行数控代码可视化功能的软件。数控代码仿真器的使用较简单。(NC code is the use of simulator VC++ 6 editing NC code an implementation of visualization software. NC code simulation of the use of relatively simple devices.)
    2008-03-15 13:31:57下载
    积分:1
  • Fund6-StringViewer
    文字统计的功能,利用MFC实现对文字的计算相拥的个数(Text statistics function, the use of MFC to achieve the calculation of the text of the number of embracing)
    2009-05-12 15:50:14下载
    积分:1
  • StkVC
    VC 6.0语言连接访问STK卫星分析工具的源代码,完整工程文件,可连接各个版本的STK。(VC 6.0 STK language satellite connection to access source code analysis tools, complete project file, can be connected to various versions of the STK.)
    2021-01-05 16:18:54下载
    积分:1
  • Chap14
    WINDOWS驱动编程第二版例子代码第14章(WINDOWS driven programming second edition of the code examples in Chapter 14)
    2010-07-20 11:31:09下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载