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

Cable Master ACM问题

于 2022-08-21 发布 文件大小:1.86 MB
0 123
下载积分: 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 个回复

  • 基于ARM的只能仓库管理系统
    功能有摄像头的打开关闭,数据库的添查改删,开发班上LED的亮灭及蜂鸣器的响与停,ZigBee无线控制安全装置,
    2022-02-01 08:21:44下载
    积分:1
  • killpps2013-12-9
    pps.tv进程专杀,可以设置为开机计划任务,自动清除安装pps.tv后自动运行的两个进程:ppskernel和ppsprotec,这两个进程大量占用网络带宽。(pps.tv process kill tool)
    2013-12-11 13:57:10下载
    积分:1
  • zuichanggonggongzixulie
    算法 最长公共子序列问题实现 很简单的 大家可以下载研究下(Algorithm to achieve the longest common subsequence problem is very simple you can download under study)
    2010-06-12 10:38:30下载
    积分:1
  • CCS6.0Graphdisplayset显示波形设置实例
    设置Graph模块的例程,查看DSP中的变量变化情况,适合初学者。(See how the variables in the DSP change.)
    2018-05-08 16:51:57下载
    积分:1
  • RemoteControl
    远程控制程序,可以实现远程客户端的控制。功能很强大(Remote control procedures, can realize the remote control of the client. Function is very powerful )
    2012-01-05 09:57:35下载
    积分:1
  • LOGIC
    简单的继电保护控制源代码,变压器及线路保护类(Simple relay control source code)
    2013-07-03 15:50:12下载
    积分:1
  • gd103数据手册
    gd103芯片手册 领先的半导体供应商GigaDevice(兆易创新)已经在中国发布几十款基于ARM® CortexTM-M3内核的GD32F103系列和GD32F101系列32位通用MCU产品,相关系列产品都已经批量供货。 GD32系列MCU力争为用户带来优异的系统性能与灵活的应用体验,并在性价比上做得更为出众。为了给用户在研发时有更大的自由选择范围,产品线提供从16KB到128KB的Flash容量,并有QFN36,TQFP48,LQFP64和LQFP100多种封装选择。系列产品在软件和引脚封装方面全兼容。
    2022-07-14 12:37:16下载
    积分:1
  • Knn_surf角点检测
    Knn_surf角点检测Knn_surf角点检测Knn_surf角点检测Knn_surf角点检测Knn_surf角点检测Knn_surf角点检测Knn_surf角点检测Knn_surf角点检测Knn_surf角点检测Knn_surf角点检测Knn_surf角点检测Knn_surf角点检测Knn_surf角点检测Knn_surf角点检测Knn_surf角点检测
    2022-02-05 17:08:02下载
    积分:1
  • WinDirectAudio_src_20081203
    音频 频谱实现代码 主要是通过傅立叶变化(Audio Equalizer With And Without DirectSound(ParamEq DMO))
    2021-04-22 18:08:48下载
    积分:1
  • meshsimplification
    网格简化程序基于3D三角网格简化,代码简单实用,而且非常有效的节省时间(meshsimplification is a C++ library and set of utilities for input, output, and basic manipulation of 3D triangle meshes. The goals of the code are ease of use and efficiency, possibly at the expense of some generality.)
    2015-03-01 00:49:53下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载