登录
首页 » Windows开发 » 给定一块宽度为W的矩形板,矩形板的高度不受限制。现需要从板上分别切割出n个高度为hi,宽度为wi的矩形零件。切割的规则是零件的高度方向与矩形板的高度方向保持一致...

给定一块宽度为W的矩形板,矩形板的高度不受限制。现需要从板上分别切割出n个高度为hi,宽度为wi的矩形零件。切割的规则是零件的高度方向与矩形板的高度方向保持一致...

于 2022-09-10 发布 文件大小:45.05 kB
0 192
下载积分: 2 下载次数: 1

代码说明:

给定一块宽度为W的矩形板,矩形板的高度不受限制。现需要从板上分别切割出n个高度为hi,宽度为wi的矩形零件。切割的规则是零件的高度方向与矩形板的高度方向保持一致。问如何切割使得所使用的矩形板的高度h最小?递归分治,刚才上传的ex1.rar有错,以这个为准.-Given a width W of the rectangular plate, rectangular plate of height restrictions. Is the need to cut out from the board, respectively, n-height hi, a width of the rectangular parts wi. Parts of the rules of cutting height direction and the direction of rectangular plates with a high degree of consistency. Asked how to make the use of cutting rectangular plate of height h the smallest? Recursive sub-rule, has just uploaded ex1.rar wrong, this shall prevail.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • ADP6软件安装及说明 ADP编程软件,可在下列的 Windows操作系统下工作: • Windows 95 • Windo...
    ADP6软件安装及说明 ADP编程软件,可在下列的 Windows操作系统下工作: • Windows 95 • Windows 98 • Windows ME • Windows 2000 • Windows XP -ADP6 Software Installation and Instructions
    2023-08-01 02:20:04下载
    积分:1
  • 地图着色问题又称为“四色问题”,四色问题的内容是:“任何一张地图只用四种颜色就能使具有共同边界的国家着上不同的颜色...
    地图着色问题又称为“四色问题”,四色问题的内容是:“任何一张地图只用四种颜色就能使具有共同边界的国家着上不同的颜色-map also known as the "four color", the four-color problem is the content : "Anyone with a map of only four colors will be able to have a common border with the country on different colors
    2022-01-30 17:20:43下载
    积分:1
  • COM 连接点
    在 COM 中的典型场景有客户端对象实例化服务器对象,然后再使对这些对象的调用。然而,如果没有特别的机制,将很难为这些服务器对象,转身回来对客户端对象进行调用。COM 连接点提供这个特别的机制,使客户端与服务器之间的双向通信。使用连接点,该服务器可以调用客户端,当某些事件发生在服务器上。与连接点服务器指定的事件,它能够提高通过定义一个接口。已在服务器上引发这些事件时所采取的行动的客户端向服务器注册自己。客户端随后提供由服务器定义的接口实现。有标准的机制,通过该客户端可以注册自己的服务器。COM 为此提供支持和要求的接口。COM 连接点服务器的客户可以写在 c + + 和 C# 中的托管代码。C + + 客户端注册提供接收器接口的实现类的实例。托管客户端注册代表对于个别的事件,从而创造一个单一的接收器,每个事件通知方法。在托管领域中,有两种方法,客户端可以注册本身 — — 这两种方法稍后在本专栏中,我详细介绍。有很少的工作样本,进行事件和在 Web 上的互操作。在本专栏中,我集中精力创建活动模板库 (ATL) 连接点服务器。这涉及到将公开一个 COM 方法,定义将由客户端执行的事件接口和实现提出了来自服务器的事件的代码。我也告诉你一个提供接收器实现的示例 c + + 客户端加上一个示例 C# 客户端和的两种方式,您可以注册,并侦听来自服务器的事件。最后,我谈实现托管的事件接收器的推荐方式。
    2022-11-08 05:15:03下载
    积分:1
  • 一个Flex
    一个基于flex的图片效果..非不错的哦..大家可以下载下来-A flex-based images of non-good effect .. oh .. you can download it
    2022-02-14 18:22:26下载
    积分:1
  • vb development of a small example, a demonstration examples snow
    一个vb开发的小例子,一个演示下雪的例子-vb development of a small example, a demonstration examples snow
    2022-09-14 04:35:03下载
    积分:1
  • [代码说明] WINDOWS下的SetTimer API可以设置定时器,不过该API只能用在GUI程序中。 我这里为CONSOLE程序实现一个定时器。...
    [代码说明] WINDOWS下的SetTimer API可以设置定时器,不过该API只能用在GUI程序中。 我这里为CONSOLE程序实现一个定时器。 开启2个线程: 定时:一个线程定时发送一个消息 处理:一个线程收到消息后处理这个消息 关注点: 为没有窗口的线程实现了消息循环-[Note code] under the SetTimer Windows API can set timer, However, the API can only use the GUI process. I am here to CONSOLE program a timer. Opened two threads : Timing : Timing a thread Send a Message Handling : a thread processing information received after the news of concern : no window to the thread of the news cycle
    2022-08-09 16:03:12下载
    积分:1
  • A Win32 Library for .NET_src
    A Win32 Library for .NET_src
    2023-07-03 11:30:04下载
    积分:1
  • 这是一个实现城市出租车路程查询的小系统,包括管理和查询两个功能,基本实现了查找最近路程和其他相关信息的功能!...
    这是一个实现城市出租车路程查询的小系统,包括管理和查询两个功能,基本实现了查找最近路程和其他相关信息的功能!-This is an urban taxi distance query small systems, including management and query the two functions, basically to find a recent trip and the function of other relevant information!
    2023-07-16 02:35:03下载
    积分:1
  • VB通过并口控制跑马灯程序,VB并口测试不错的程序
    VB通过并口控制跑马灯程序,VB并口测试不错的程序-VB Marquee through a parallel port control procedures, VB programs parallel port test bad
    2023-09-07 10:35:03下载
    积分:1
  • 举例介绍如何动态生成windows窗体!
    举例介绍如何动态生成windows窗体!-how to create windows dynamicly
    2022-02-06 00:40:22下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载