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

Cable Master ACM问题

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

  • listView
    ListView 实现资源管理器 ListView 实现资源管理器(ListView implementation Explorer)
    2011-02-11 16:31:24下载
    积分:1
  • 12232lcd
    12232lcd的参考例程,可以通过调试,用的时候改变一些设置(12232lcd reference routine, you can debug using the time to change some settings)
    2010-07-05 09:52:28下载
    积分:1
  • ConsoleApplication1
    测试插件开发的各个过程,接口、宿主程序、运行(Test plug-in development process, interface, host program, run)
    2020-06-25 13:00:02下载
    积分:1
  • 网页爬虫代码
    网页爬虫程序,包括所有代码和数据库。数据库用的是开源数据库postgresql。代码很全,方便自学或直接使用。功能基本都有,覆盖比较广泛。
    2023-01-27 11:35:03下载
    积分:1
  • ISP
    isp 相机底层驱动程序,适配多款sensor(ips bottom)
    2014-07-09 10:53:28下载
    积分:1
  • C#微信公众平台开发(SDK类库完整源码)
    C#微信公众平台开发(SDK类库完整源码)
    2016-03-04下载
    积分:1
  • Bresenham
    MFC画任意斜率的斜线程序(MFC hatched program I have written, please refer to scrape together 20 words how good trouble Ha Ha)
    2013-08-24 13:35:44下载
    积分:1
  • C #实现俄罗斯方块,具有任意形状可道…
    用c#实现的俄罗斯方块,特点是可以定制任意形状的方块,并指定颜色。-With c# Realize the Russian box, characterized by arbitrary shape can be customized box and specify the color.
    2022-01-28 05:45:29下载
    积分:1
  • 计算器1、二进制、八进制、十进制及十六进制数的加、减、乘、除、乘方、取模等简单计算 2、科学计算函数,包括(反)正弦、(反)余弦、(反)正切、(反)余切、开...
    计算器1、二进制、八进制、十进制及十六进制数的加、减、乘、除、乘方、取模等简单计算 2、科学计算函数,包括(反)正弦、(反)余弦、(反)正切、(反)余切、开方、指数等函数运行 3、以角度、弧度两种方式实现上述部分函数 4、具备历史计算的记忆功能 5、对不正确的表达式能指出其错误原因 6、整理上机步骤、完成实验报告、提交可运行的程序,给出实验数据和实验结果。 -A calculator, binary, octal, decimal, and hexadecimal number of add, subtract, multiply, divide, involution, modulus and other simple calculation 2, scientific computing functions, including the (anti-) sine, (anti-) cosine, ( Anti-) tangent, (anti-) cotangent, administration, index function is to run 3 to angle, radians are two ways to achieve the above part of the function 4, with history of computing memory function 5 on an incorrect expression can point out a mistake because 6, finishing on the machine steps to complete the test report for submission to run the program, given experimental data and experimental results.
    2022-04-11 00:46:33下载
    积分:1
  • C++实现单链表
    基于visual  studio   C++实现一个单链表   。主要功能包括链表创建、节点的插入、删除、节点的查找、以及计算节点的长度。
    2022-08-31 23:20:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载