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

Cable Master ACM问题

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

  • 键盘鼠标检测钩子功能实现
    用于实现键盘和鼠标操作输入的钩子,全局键盘和鼠标的Hook,用于监视鼠标和键盘事件.hook urldownloadtofile 这各函数实现监控下载者的目的-hook urldownloadtofile this function to achieve the purpose of monitoring those who download..
    2022-03-23 14:13:36下载
    积分:1
  • 2017校内竞赛(直流电阻箱)
    本次设计的数控直流电阻箱主要由恒定电流源部分、显示部分、键盘部分、电源部分组成。以STM32单片机为核心控制恒流源,恒流源电路由达林顿三极管、高精度运算放大器、采样电阻等组成。通过键盘输入给定值,经D/A转换器将数字信号转换为模拟信号,控制电流。采用电流反馈电路控制精度,经多次调试改进,实现了直流电阻箱的功能。本次设计的数控直流电阻箱较以往的电阻箱相比,其优点在于可操作性强、精度高、体积小、高效节能等优点。适用于作为直流负载的应用场合。(The numerical control DC resistance box designed mainly consists of constant current source part, display part, keyboard part and power supply part. The constant current source is controlled by STM32 single chip microcomputer. The constant current source circuit is composed of Darlington transistor, high precision operational amplifier and sampling resistor. Through the keyboard input a given value, the D/A converter converts the digital signal into analog signal to control the current. The control precision of the current feedback circuit is improved, and the function of the DC resistance box is realized through many debugging improvements. Compared with the conventional resistance box, the designed DC resistance box has the advantages of strong operability, high accuracy, small size, high efficiency and energy saving. It is suitable for application as DC load.)
    2018-06-24 16:39:43下载
    积分:1
  • G729_code_decode
    g.729编解码源代码,已经在freescale的处理器上面实现。(G.729 codec source code, has been in the Freescale processors to achieve the above.)
    2007-12-18 10:38:58下载
    积分:1
  • OMNeT++下的MANET网络ping仿真
    50个运动节点的MANET网络,每个节点按照mass mobility模型进行运动,采用AODV协议,两个固定节点间互相进行ping联系,可以设置不同运动速度下观察ping成功率
    2023-05-09 23:55:03下载
    积分:1
  • printimage
    windows 虚拟打印机代码,不可多得 * This program is free software; you can redistribute it and/or modify     * it under the terms of the GNU General Public License as published by     * the Free Software Foundation; either version 2 of the License, or     * (at your option) any later version.     *     * This program is distributed in the hope that it will be useful,     * but WITHOUT ANY WARRANTY; without even the implied warranty of     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the     * GNU General Public License for more details.  
    2023-08-02 22:30:05下载
    积分:1
  • daojishi
    倒计时设计 单片机 武汉理工大学 课程设计 (daojishi)
    2009-07-10 23:22:04下载
    积分:1
  • ARM-UART
    ARM监视串行口,将接收到的字符发送到字符再发送给串口,即按PC机键盘通过超级终端发送数据,开发板将接收到的数据再返还给PC,在超级终端上显示。(ARM monitors the serial port, the received characters are sent to a character and then sent to the serial port, ie the PC keyboard to send data via HyperTerminal, the board will receive the data and then back to the PC, in the HyperTerminal display.)
    2013-06-03 19:36:48下载
    积分:1
  • sick_lms511
    说明:  对SICK激光雷达传感器返回的网口数据进行解析,取出其中的光强、距离(Analyze the network port data returned by the sick lidar sensor, and take out the light intensity and distance)
    2020-09-09 13:28:01下载
    积分:1
  • vb实用的入门级小程序
    非常适合入门的小伙伴学习,很有意思的小程序,虽然小,但是对于vb的入门有很大的帮助,从此你将会对vb产生浓厚的兴趣。
    2022-01-30 18:39:08下载
    积分:1
  • C# 模拟网页跨平台Post提交
    C# 模拟网页实现跨平台Post提交,相信有很多人都有过类似的经历,想实现程序的自动提交,并且跨平台,其实这个很简单的
    2022-03-02 10:52:32下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载