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

Cable Master ACM问题

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

  • m_files
    说明:  内涵大量基于MATLAB的仿真算法,大量.m文件和c文件(substantial content based on MATLAB simulation algorithm, a lot. M c paper documents and)
    2006-04-16 11:13:27下载
    积分:1
  • NRF51822相关的API相关的代码
    NRF51822相关的API相关的代码,不是很完整,希望有帮助(NRF51822 related API related code, not very complete, I hope to help)
    2020-06-19 05:40:01下载
    积分:1
  • QQ所有图标图片资源下载(含gft文件以及jpg文件)
    QQ所有图标图片资源下载(含gft文件以及jpg文件)
    2015-04-20下载
    积分:1
  • typing abc.rar 一个简单的打字程序
    typing abc.rar 一个简单的打字程序-typing a simple typing procedures
    2022-01-26 06:34:26下载
    积分:1
  • admm_simpllified
    admm,压缩感知的重构程序,内有仿真信号(admm,compressive sensing)
    2017-02-21 16:15:33下载
    积分:1
  • MFMS
    基于C#WPF平台的财务管理系统,适合初学者,包括会计凭证录入 失算平衡(this simple systerm is for the beginner of c#!)
    2010-03-08 18:11:08下载
    积分:1
  • LBM-simulated-natural-convection
    格子Boltzmann方法模拟封闭方腔热自然对流(Lattice Boltzmann method to simulate a closed square cavity hot natural convection lattice Boltzmann method to simulate a closed square cavity natural convection heat)
    2021-02-19 15:39:44下载
    积分:1
  • display-interface-and-LLJ
    气象雷达的显示界面,极坐标显示速度信息,可选择显示不同层,并在此基础上实现了低空急流识别算法,标示出了低空急流的高度、速度和方向。该软件属于气象类入门级软件!(Display interface of weather radar, information display speed of polar coordinates, can choose to display the different layers, and on this basis to achieve the low level jet recognition algorithm, marked the height, speed and direction of the low level jet. This software belongs to the meteorological entry-level software!)
    2014-11-04 22:23:34下载
    积分:1
  • Realplay-
    基于单片机的霍尔传感器测速源码,带有蜂鸣器报警功能。(Hall speed sensor based on single-chip computer source, with a buzzer alarm function.)
    2015-08-27 17:03:04下载
    积分:1
  • 1602PAD
    单片机AD功能实例,使用1602显示电压(SCM AD function example, the use of 1602 shows the voltage)
    2014-02-23 12:52:35下载
    积分:1
  • 696518资源总数
  • 106010会员总数
  • 4今日下载