登录
首页 » Visual C++ » poj3941

poj3941

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

  • ChartCtrl
    MFC非常好用的绘图控件,实时更新采集数据图像非常方便,吐血推荐!(very useful resource for MFC painting)
    2021-01-08 16:18:51下载
    积分:1
  • spider
    This is Visual C++ how to create wirus , with install instruction inside
    2012-12-30 17:59:37下载
    积分:1
  • vs-2008-under-MFC-program--run-dall
    visual studio 2008下MFC程序运行所需dall(visual studio 2008 under MFC program needed to run dall)
    2012-08-28 10:14:28下载
    积分:1
  • CERas
    help for C# connection
    2010-03-09 19:41:30下载
    积分:1
  • QosSvr
    简易TCP通讯服务器端,QosClt为客户端。多个客户端间的通讯需要基于服务器,即通过服务器转发。(Simple TCP communication server, QosClt for the client. Communication between multiple clients need a server-based, that is transmitted through the server.)
    2013-09-09 13:50:32下载
    积分:1
  • WSAChat
    Basic C, WSA 2.0 chat server and client.
    2010-03-16 13:11:09下载
    积分:1
  • vc++6.0ado
    c++数据库编程,里面有常用的对数据库操作的源代码,适合刚接触VC++操作数据库的人(c++ Database Programming, which has commonly used database operations on the source code for刚接触VC++ operate the database of people)
    2008-08-22 01:22:16下载
    积分:1
  • 盛大传奇外挂源码
    值的研究的一个外挂程序(value of a plug)
    2005-02-01 17:13:47下载
    积分:1
  • Filter
    通过vc编写的可实现滤波功能的简单滤波器程序(Simple filter program written by vc filtering function)
    2013-05-14 22:50:30下载
    积分:1
  • Multithreading-continuingly
    多线程断点续传类,以及界面。 项目中: _Nv_Http_Download.h _Nv_Http_Download.cpp 就是多线程断点续传类。(Multithreaded HTTP class, as well as the interface. Project: _Nv_Http_Download.h _Nv_Http_Download.cpp is multi-threaded HTTP class.)
    2013-01-23 19:27:24下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载