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

Cable Master ACM问题

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

  • STM32与FPGA的通信,SPI方式
    STM32与FPGA的通信,SPI方式,具体介绍文件里都有,使用前请先看读我,本程序经过验证无误。
    2022-02-06 08:13:16下载
    积分:1
  • TLS2561_STM32
    STM32实现TLS2561光照度传感器的工作(failed to translate)
    2021-05-06 21:28:37下载
    积分:1
  • blokkodlama_birbit
    Block Coding channel rayleigh
    2011-09-10 15:48:33下载
    积分:1
  • qtstudydoc
    QT学习教程,很好用的 差不多所有的程序教材都从Hello 开始,下面就是这个程序的qt版本(good QT course 1#include <QApplication> 2#include <QLabel> 3 int main(int argc, char*argv[]) 4 { 5 QApplication app(argc, argv) 6 QLabel*label = new QLabel("Hello Qt!") 7 label->show() 8 return app.exec() 9 } )
    2012-03-10 14:46:07下载
    积分:1
  • OpenBCI_Processing-master
    这是一份脑电分析软件的源码,适用于OpenBci(This is the source of EEG analysis software,use for OpenBci)
    2018-10-25 10:06:25下载
    积分:1
  • OMP重构一维二维信号matlab仿真
    说明:  CS实现一维信号,二维图片在采样完成后重构(Realizing one-dimensional signal and two-dimensional image reconstruction)
    2020-06-17 11:20:02下载
    积分:1
  • DS18B20LCD
    此代码使用C语言编写,通过KEIL编泽后,下载到单位机内使用。功能主要是在LCD液晶屏上显示温度。(This code uses the C language, compiled after Ze by KEIL, downloaded to the unit using the machine. The main function is displayed on the LCD screen temperature.)
    2014-07-30 15:29:43下载
    积分:1
  • opencv2.4.8和VS2010实现avi视频播放
    opencv2.4.8和VS2010实现avi视频播放,最基础的代码,简单易懂,欢迎大家学习指正。大家有不懂的可以对我提问
    2022-02-07 04:08:17下载
    积分:1
  • DSP_Chuguangshu
    《数字信号处理——理论、算法与实现》胡广书 书配光盘程序 本光盘共包含三个子目录,分别是DSP_FORTRAN, DSP_C和DSP_MATLAB。DSP_FORTRAN和DSP_C各含有约40个信号处理的子程序,概括了书中所涉及到的绝大部分算法。程序分别由FORTRAN语言和C语言编写(MA模型、ARMA模型及最小方差谱估计三个算法只给出了用C语言编写的程序, 没有给出相应的FORTRAN子程序),并在PC机上调试通过。编译环境是FORTRAN77 V5. 10和TURBO C2. 0。DSP_MATLAB含有近100个用MATLAB编写的信号处理程序,它们是本书各个章节的大部分例题,使用的是MATLAB6.1。(" Digital Signal Processing- Theory, Algorithm and Implementation" Hu Guang book written with the CD-ROM CD-ROM program includes three subdirectories, namely DSP_FORTRAN, DSP_C and DSP_MATLAB. DSP_FORTRAN and DSP_C contains about 40 of the signal processing routine, the book summarizes most of the algorithms involved. Program language and C respectively written in FORTRAN (MA models, ARMA model and minimum variance spectrum estimation is given by the three algorithms only programs written in C language, did not give the corresponding FORTRAN subroutines), and in the PC, through debugging . Compilation environment is FORTRAN77 V5. 10 and TURBO C2. 0. DSP_MATLAB contains nearly 100 written using MATLAB signal processing procedures, which are most of the various chapters of the book examples, using MATLAB6.1.)
    2010-10-01 14:13:57下载
    积分:1
  • Z_buffer
    计算机图形学基础算法z-buffer, 实现隐藏面消除(Computer graphics based algorithm z-buffer, to achieve hidden surface removal)
    2020-07-24 14:38:43下载
    积分:1
  • 696516资源总数
  • 106648会员总数
  • 8今日下载