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

Cable Master ACM问题

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

  • ProgressBar_src
    一个基于VC6MFC的进度条控制程序,非常实用(Based on the progress bar VC6MFC control program is very useful)
    2009-11-27 04:21:36下载
    积分:1
  • C #实现DataGrid的固定线路的示例代码。C #实现DataGrid的固定线方法…
    C#实现DataGrid固定行的示例代码。 C#实现DataGrid固定行的示例代码。-C# Realize DataGrid fixed line sample code. C# Realize DataGrid fixed line sample code.
    2022-01-25 23:50:45下载
    积分:1
  • 100-classical-living-examples-on-C-Language
    说明:  C语言100经典实例教程,非常实用、方便的C语言学习材料!(C-100 classic example of tutorials, very useful and convenient C-language learning materials!)
    2010-04-28 18:20:32下载
    积分:1
  • OPC_UA_CODE_demo
    西门子OPC UA方式读取数控系统内部数据,包括主轴转速、进给速度、主轴负载率、进给轴坐标、报警信息等(Siemens OPC UA reads the internal data of CNC system, including spindle speed, feed speed, spindle load rate, feed axis coordinates, alarm information, etc.)
    2020-12-08 14:09:20下载
    积分:1
  • ulfve
    这是一个关于模拟退火c c++的算法程序,内有详细解释,希望对大家有所帮助(This is a simulated annealing c c algorithm, there is a detailed explanation, I hope to help you)
    2018-11-22 10:10:46下载
    积分:1
  • HNCDataCollection
    这是一个用于采集机床运行状态数据的程序。(Machine tool data acquisition)
    2021-03-03 13:39:35下载
    积分:1
  • 仿XP系统的任务栏菜单效果,适用Winform管理软件皮肤
    仿XP系统的任务栏菜单效果实例
    2013-01-10下载
    积分:1
  • zhoumanage
    说明:  这是一个简单的模拟职工管理系统vc编程,包括文档,适合vc初学者参考(This is a simple simulation Staff Management System vc programming, including documents, suitable for beginners reference vc)
    2006-04-13 23:22:39下载
    积分:1
  • 智能定速风扇
    基于stm32单片机的pid算法电机控制,可实现pid算法控制电机转速。(PID algorithm motor control based on STM32 microcontroller can realize PID algorithm to control motor speed.)
    2019-06-20 21:00:55下载
    积分:1
  • PWM4路占空比可调
    4路pwm占空比可调节,按键中断,步进10%可改写(4-way PWM duty cycle adjustable)
    2020-06-18 21:40:01下载
    积分:1
  • 696518资源总数
  • 104224会员总数
  • 54今日下载