登录
首页 » Visual C++ » poj3941

poj3941

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

  • TimeManager
    一个集成了闹钟、秒表功能的VB.NET时间管理小程序,我觉得功能比较强大,除了秒表和闹钟功能外,还可设置时间格式、在日期中是否显示当前日期,是否标记当前日期,是否是下拉时间调整框等(An integrated alarm clock, stopwatch function VB.NET time management applet, I think the more powerful features, in addition to the stopwatch and alarm functions, you can also set the time format, whether to display the current date in the date, the current date is marked, whether it isdrop-down time to adjust box)
    2013-05-04 17:19:32下载
    积分:1
  • telescope-optical
    大口径望远镜光学系统的误差分配与分析 (Error large telescope optical system distribution and analysis)
    2013-11-28 13:06:08下载
    积分:1
  • BMP
    用普通方法显示BMP位图,占内存大,速度慢,在图形缩小时,失真严重,在低颜色位数的设备上显示高颜色位数的图形图形时失真大。本文采用视频函数显示BMP位图,可以消除以上的缺点。(Ordinary methods of display BMP bitmap, or memory, and slow to narrow in the graphics when a serious distortion in the low-color display device median median high-color graphics graphics distortion when large. In this paper, the video function display BMP bitmap, you can eliminate the above shortcomings.)
    2008-05-19 17:42:32下载
    积分:1
  • QQProject
    说明:  在Internet上的聊天室程序一般都是以服务器提供服务端连接响应,使用者通过客户端程序登录到服务器,就可以与登录在同一服务器上的用户交谈,这是一个面向连接的通信过程。因此,程序要在TCP/IP环境下,实现服务器端和客户端两部分程序。(In Internet chat rooms on the procedure is generally based on the server side connection in response to the provision of services, the user through the client program to log on to the server, you can log in the same server with the user to chat, this is a connection-oriented communication process. Therefore, procedures to TCP/IP environment, the realization of server-side and client procedures in two parts.)
    2008-08-30 00:00:05下载
    积分:1
  • DX Project 44
    一个DX的小程序(a small program)
    2005-02-04 13:56:41下载
    积分:1
  • TCPPORTSCAN
    TCP端口扫描,可以获得指定IP段内的主机名,mac地址,存活端口,并将这些信息保存在SQLITE数据库,下次可以直接读取数据库信息,移值性好!(CP port scan, you can get within the segment specified IP host name, mac address, survival ports, and the information stored in the SQLITE database, the next can be read directly, transfer value is good!)
    2013-09-03 19:37:00下载
    积分:1
  • C_programming_classic_design_of_variable_clock_sou
    C编程设计的多变闹钟经典源码 C programming classic design of the variable clock source(C programming classic design of the variable clock source)
    2010-08-18 07:22:38下载
    积分:1
  • lsp
    简单的lsp驱动框架,有助于理解lsp驱动架构(The lsp drive framework)
    2012-05-04 14:46:21下载
    积分:1
  • ContAccelSamp_IntClk_AnlgStart
    说明:  通過NI-6008去抓取數值,可以通過module讀取,此代碼可以看出如何做通信 (his example demonstrates how to make continuous, hardware-timed acceleration measurements using an SCXI-153x module.)
    2009-07-31 15:53:44下载
    积分:1
  • dialog(ownerdraw)
    MFC对话框的自绘,各种样式对话框、美化对话框。(CDialog Ownerdraw)
    2013-10-19 13:43:24下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载