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

Cable Master ACM问题

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

  • CSharp-3D
    《C#二维三维图形绘制工程实例》源码,用VS,C#编写("C# examples of 2D and 3D graphics rendering project" source code)
    2020-12-10 09:39:19下载
    积分:1
  • MainForm
    自己用C#语言编写的一个软件主界面,供大家学习参考(A main interface of software written in C# language for your reference)
    2019-06-01 11:29:16下载
    积分:1
  • CSharp-Prisoner
    Game Taquin (prisoner)
    2014-06-14 11:14:46下载
    积分:1
  • 查询式矩阵键盘
    查询式矩阵键盘,可以用数码管显示也可以用液晶显示屏显示,我用了lcd1602显示!(Inquiry matrix keyboard, can be displayed by digital tube, can also be displayed with LCD display, I used the LCD1602 display!)
    2017-10-30 04:12:24下载
    积分:1
  • wuziqi
    SetColor(unsigned short ForeColor,unsigned short BackGroundColor) //颜色函数 { HANDLE hCon=GetStdHandle(STD_OUTPUT_HANDLE) SetConsoleTextAttribute(hCon,(ForeColor 16)|(BackGroundColor 16*16)) } 调用函数 SetColor(11,8) cout<<endl<<"文本内容结束!"<<endl SetColor(7,0) system("color xy") ;
    2012-08-30 17:27:01下载
    积分:1
  • 学生成绩管理系统
    这是一款用C++写的学生成绩管理系统,欢迎大家下载。。。。。。。。。。
    2022-01-26 07:14:31下载
    积分:1
  • STM32定时器中断实验代码
    STM32F103定时器中断实验开源代码,STM32F103定时器中断实验开源代码,STM32F103定时器中断实验开源代码。
    2022-07-09 04:31:12下载
    积分:1
  • libusb
    说明:  usblib完整库,包含例子,各位仅供参考一下(Usblib complete library, including examples)
    2020-02-28 06:15:31下载
    积分:1
  • si1171驱动代码
    si1171测试通过驱动代码,物联网传感器解决方案领先供应商Silicon Labs(亦称“芯科科技”)日前推出新一代心率监测(HRM)传感器产品家族 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-02-20 09:26:19下载
    积分:1
  • vtkBioeng-5.0
    vtk碰撞检测程序,基于obb包围盒的碰撞检测程序,需要用cmake进行编译(vtk collision detection procedure, based on obb bounding box collision detection program needs to be compiled with cmake)
    2021-02-26 09:49:37下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载