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

Cable Master ACM问题

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

  • CCS_pkk
    CCS的配置说明,rtdx verification. IT DSP和matlab联调(CCS description of the configuration, rtdx verification. IT DSP and matlab FBI)
    2009-04-12 19:41:48下载
    积分:1
  • cwnd_point
    通过HWND获得CWND指针的小例子,可以编译通过(HWND pointer obtained through the CWND small example, you can compile)
    2010-03-08 13:28:36下载
    积分:1
  • telephone-line-fault-testing
    电话线出现断线或短路故障时,线路的阻抗则发生很大变化,利用电桥法测试出电阻的大小,进而得出线路故障的地方(Telephone lines appear disconnection or short circuit fault, the line impedance is changed, test out the size of resistance by Wheatstone bridge method, and then draw the line fault place )
    2015-02-02 14:03:24下载
    积分:1
  • vc++位图特效处理 vc++位图特效处理
    vc++位图特效处理 vc++位图特效处理-vc bitmap effects processing vc bitmap Special Treatment
    2022-05-08 01:50:38下载
    积分:1
  • SAE-J1978
    协议SAE1978,对编写对应程序有帮助( XIEYI SAE1978)
    2011-05-13 11:53:44下载
    积分:1
  • zhanqunxitong
    泊君站群免费版源码下载,真正的站群系统,站群工具,站群软件,大家可以看看思路(The mooring the monarch station group free version of the source code download, the station group system, the tools of the station group, station group software, we can look at the idea of)
    2013-04-01 05:21:39下载
    积分:1
  • pstdat
    电力系统工具的源文件,主要是包括了电力系统中交直流互联系统的模型,包括四机两区域(Simple and bacterial foraging optimization algorithm, mainly used for the optimization of the PID control, and can be run directly)
    2012-09-26 23:26:42下载
    积分:1
  • maze
    通过把一个格子图中的一些边删除后生成迷宫图形.下图左边是一个5X5格子图, 有边是生成的一个迷宫图.给定一个MXN的格子图,请用种子填充算法生成一个迷宫图形(By removing some edges of a grid graph, we can create maze graphs. The left side is a 5X5 grid graph, with edges generating a labyrinth diagram. Given a MXN grid graph, please use seed filling algorithm to create a labyrinth graph.)
    2020-11-20 19:09:36下载
    积分:1
  • osip协议栈代码
    Osip2是一个开放源代码的sip协议栈,是开源代码中不多使用C语言写的协议栈之一,它具有短小简洁的特点,专注于sip底层解析使得它的效率比较高。但缺点也很明显,首先就是可用性差,没有很好的api封装,使得上层应用在调用协议栈时很破碎;其次,只做到了transaction层次的协议过程解析,缺少call、session、dialog等过程的解析,这也增加了使用的难度;再次,缺少线程并发处理的机制,使得它的处理能力有限。
    2022-03-15 01:24:57下载
    积分:1
  • 123
    学习c#的练手小程序。 随机抽奖。(Learn the C # hands-on program. Random draw.)
    2020-06-25 18:20:01下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载