登录
首页 » Visual C++ » poj3941

poj3941

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

  • Computer-graphics-with-OpenGL-
    计算机图形学(第四版)(英文版)源码。作 者:(美)赫恩。本书是一本内容丰富、取材新颖的计算机图形学著作,在前一版的基础上进行了全面扩充,增加了许多新的内容,覆盖了近年来计算机图形学的最新发展和成就。全书层次分明、重点突出,并附有使用OpenGL编写的大量程序及各种效果图,是一本难得的优秀教材。全书共分为24章及3个附录,全面系统地讲解了计算机图形学的基本概念和相关技术。作者首先对计算机图形学进行综述;然后讲解二维图形的对象表示、算法及应用,三维图形的相关技术、建模和变换等;接着介绍光照模型、颜色模型和动画技术。本书还新增了有关分层建模与动画的介绍,OpenGL的全面介绍;最后的附录给出了计算机图形学中用到的基本数学概念、图形文件格式及OpenGL的相关内容等。 (Computer graphics with OpenGL (Fourth Edition) (English version), source code. Author: Donald Hearn. )
    2020-11-17 22:19:39下载
    积分:1
  • GDIwin32
    GDI win32实例,里面包含了一个GDI实现透明窗口的实例
    2016-07-11 15:51:40下载
    积分:1
  • RemoteControl
    远程桌面控制的完整实现源码,设计文件在http://blog.csdn.net/dijkstar/article/details/9076911有详细描述,里面整合了位图压缩、鼠标键盘低级钩子等。里面的每项技术都具有工程参考价值。(Complete implementation of the remote control code, design documents described in detail in http://blog.csdn.net/dijkstar/article/details/9076911, which integrates bitmap compression, low-level mouse and keyboard hooks and so on. Inside each technology with engineering reference value.)
    2020-11-02 14:29:53下载
    积分:1
  • bpsk
    BPSK信号调制过程以及误码率的计算,最后结果可以用曲线图形输出(sfazvassfasczxcasafavasvasvxzxv)
    2018-06-20 12:28:12下载
    积分:1
  • e00compr-0.5
    Compressed E00 Read/Write Library
    2005-02-27 20:55:56下载
    积分:1
  • PgmVolume
    音频设备控制之扬声器单个应用程序音量控制,包括音量的获取与设置(Audio Device Controlled Speaker Single Application Volume Control, Including Volume Acquisition and Setting)
    2019-04-11 10:22:02下载
    积分:1
  • 12can
    c8051F系列单片机CAN总线的应用例程(c8051F Series Single-chip CAN bus application routines)
    2009-02-22 17:54:22下载
    积分:1
  • DEC643_UART
    合众达的DM643开发板的SDRAM程序,DSP型号为DM643,能直接下载程序到DSP上运行(Triangle up to the DM643 development board SDRAM Program DSP model DM643, can directly download the program to run on the DSP)
    2012-02-14 13:52:16下载
    积分:1
  • AccessTest02
    MFC实现对Access数据库的创建、数据表的创建,已经相关数据的增删改查等功能;这里上传,以供后期借鉴!(MFC to achieve the creation of the Access database, create tables, add and delete related data has been changed check function upload here for late draw!)
    2014-07-03 13:25:27下载
    积分:1
  • 1231
    实现FTP多线程下载上传,同时可以方便实现与本机FTP服务器的连接(Achieve multi-threaded FTP download upload, and can easily be achieved with the local FTP server)
    2013-06-13 18:52:09下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 42今日下载