登录
首页 » Visual C++ » poj3941

poj3941

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

  • AddFlow5_Patch
    AddFlowCrack have a good time
    2010-02-09 07:53:01下载
    积分:1
  • CPPmusicplayer
    一款简单的VC++6.0编程MP3音乐播放器,附带源码已经工程文件。(A simple VC++6.0 programming an MP3 music player, already works with source files.)
    2014-01-05 14:23:43下载
    积分:1
  • ping
    基于ping的源代码,实现原始套接字编程(Ping-based source code, to achieve the raw socket programming)
    2011-07-10 10:18:44下载
    积分:1
  • lbmsim-0.8
    LBM格子波尔兹曼C程序,特别全,下载即可。(LBM Lattice Boltzmann C procedures, particularly full, download.)
    2014-03-04 09:20:45下载
    积分:1
  • Desktop
    调度问题的回溯算法,算法中的经典问题。问题描述:假设有n个任务由k个可并行工作的机器完成。完成任务i需要的时间为ti。试设计一个算法找出完成这n个任务的最佳调度,使得完成全部任务的时间最早。(Scheduling problem backtracking algorithm is the classic problem. Problem Description: Suppose there are n-task by the k-parallel machine can be completed. The time required to complete the task i is ti. Try to design an algorithm to find completing these n-best task scheduling, making the earliest time to complete all tasks.)
    2010-02-19 23:31:11下载
    积分:1
  • OnlyOneInst
    VC++ 禁止运行程序的多个实例,程序根据主窗口类名和主窗口名判断是否已经有实例存在,如果存在就将其激活,并显示出来,如果是最小化的就还原窗口;如果有实例存在,则返回False并退出。 (VC++ prohibits running the program multiple instances of the program under the main window class name and the main window name to determine whether there are examples exist, if it will activate and show, if it is minimized to restore the window if examples exist, Returns False and exit.)
    2011-04-21 23:01:44下载
    积分:1
  • DistillSQL
    vc++开发常用模块之数据库,开发中与数据库相关的模块(VC++ SQL)
    2014-02-28 22:01:42下载
    积分:1
  • activexaaa
    工业仪表界面,可以用来开发工业常见仪表式界面程序,采用控件编程,方便使用(industrial instrumentation interface can be used for the development of industrial instrumentation interfaces common procedures used controls programming, ease of use)
    2006-07-28 13:12:26下载
    积分:1
  • Panorama
    panorama图像生成,可视代码,包含C源代码,需要转gui(panorama image generation, visualization)
    2011-05-05 08:46:58下载
    积分:1
  • serialPort
    调试串口的程序,本程序运行于PC机,是开发串口电路的好帮手。(Debug serial procedures, the program runs on PC, is to develop a good helper serial circuit.)
    2007-09-17 13:27:21下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载