登录
首页 » c++ » Cable Master ACM问题

Cable Master ACM问题

于 2022-08-21 发布 文件大小:1.86 MB
0 135
下载积分: 2 下载次数: 1

代码说明:

The first line of the input file contains two integer numb ers N and K, separated by a space. N (1 = N = 10000) is the number of cables in the stock, and K (1 = K = 10000) is the number of requested pieces. The first line is followed by N lines with one number per line, that specify the length of each cable in the stock in meters. All cables are at least 1 meter and at most 100 kilometers in length. All lengths in the input file are written with a centimeter precision, with exactly two digits after a decimal point. Write to the output file the maximal length (in meters) of the pieces that Cable Master may cut from the cables in the stock to get the requested number of pieces. The number must be written with a centimeter precision, with exactly two digits after a decimal point. If it is not possible to cut the requested number of pieces each one being at least one centimeter long, then the output file must contain the single number "0.00" (without quotes).

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • timer0
    c8051f060定时器0,系统时钟,交叉开关IO配置(C8051F060 timer 0, the system clock, switch IO configuration)
    2013-08-31 20:43:06下载
    积分:1
  • VC6.0WindowTab_Add_IN
    VC6.0 文件窗口重叠源码!可以像WndTab那样实现窗口标签!(The VC6.0 WndTab ADD_IN)
    2011-08-22 09:58:22下载
    积分:1
  • UPLOAD.tar
    ROS CODE TO PUBLISH A LOCAL IMAGE
    2014-10-21 02:57:54下载
    积分:1
  • liti.zip
    基于MAP430F149单片机的典型例题,很有帮助(Microcontroller based MAP430F149 a typical example, very helpful)
    2013-08-27 19:49:36下载
    积分:1
  • openGl2
    做课程设计的一个代码,是opengl工程,立方体旋转,每个立方体的面帖有不同的图。(The code to do the course design is a opengl project, cube rotation, the face of each cube posts have different plans.)
    2012-06-24 09:23:59下载
    积分:1
  • ch341读写24的源代码
    说明:  ch341读写24系列EEROM的VC源代码(The VC source code of CH341 read-write 24)
    2020-06-09 22:53:06下载
    积分:1
  • 班级通讯录管理
    通过vs运行程序即可,本系统为班级通讯管理系统,主要实现其增删改查功能,包括界面设计,后台管理,E-R图,程序流图,系统流程图,功能图。系统主要以c#语言为主,html+css,jq组合实现的。角色为管理员与学生两种。
    2022-03-02 17:00:00下载
    积分:1
  • qtextedit支持动画
    qt widget控件默认不支持gif动画在edittext上 显示,这个例子动态加载各个帧实现动画效果
    2022-05-24 14:39:07下载
    积分:1
  • mame089s
    MAME0.89 模拟器 source code(MAME0.89 simulator source code)
    2007-12-30 21:26:46下载
    积分:1
  • SegyFileRead
    利用C语言编写的读取Segy文件数据的小程序(Using C language to read file data Segy small program)
    2008-07-23 21:17:48下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载