-
poj3941
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.)
- 2013-07-16 20:45:28下载
- 积分:1
-
calculater
C++ MFC (Visual Studio 2010)具有图形界面的应用程序——简单的计算器(C++ MFC (Visual Studio 2010) with a graphical interface applications- simple calculator)
- 2015-05-07 20:26:48下载
- 积分:1
-
ipclient
This is a messenger program written in VC++. This is a client program
- 2009-06-15 18:13:57下载
- 积分:1
-
SSD5Ex2
ssd5 exercise 2 answer.
- 2013-09-19 15:57:14下载
- 积分:1
-
TCPclients
AppWizard has created this TCPServer application for you. This application
not only demonstrates the basics of using the Microsoft Foundation classes
but is also a starting point for writing your application.
This file contains a summary of what you will find in each of the files that
- 2007-08-20 19:24:43下载
- 积分:1
-
Ltpcc
一个串口通讯的源码,自定义的通讯协议,与切纸设备连接(A serial communications source, since the definition of communication protocols, and cutting equipment to connect)
- 2008-04-02 10:55:28下载
- 积分:1
-
button698
此软件讲述的button控件的多种使用方法,比如改变颜色,改变字体颜色,背景颜色,样式(This software describes a variety of use of button controls, such as changing color, changing font color, background color, style)
- 2017-12-15 14:08:02下载
- 积分:1
-
ts201_MTI_MTD
TS201上实现动目标检测和识别,编译环境是visual dsp ++(target detection and recognition)
- 2020-11-18 15:49:38下载
- 积分:1
-
TreeView
期刊名称、期刊年代、卷、期数、载文量、录入量、录入员
2 来源信息录入:中文篇名、英文篇名、文章类型、页码、基金项目、分类号、关键词
3 涞源作者录入:作者姓名、作者发文排名、英文名、作者机构、部门名称、机构类别、作者地区、通讯地址、邮编
4 引文信息录入:引文形式、引文类型、引文文种、被引文作者、被引文译者、被引篇名、被引书名(刊名)、卷册序号、被引文出版地、被引文出版者、出版年代、卷期、页码
- 2010-12-24 12:52:36下载
- 积分:1
-
IOCP-Basic
IOCP基本原理介绍,主要介绍了如何使用IOCP进行开发。(Introduce the basic principles of IOCP, mainly on how to use IOCP for development.)
- 2011-04-20 10:13:01下载
- 积分:1