登录
首页 » 算法 » 军团问题, 某国家在一条战线上(一条直线)上部署了n 支军队。如果两支或两支以上军队相邻,它们将形成一个军团。如果一支军队不和任何一支军队相邻,那么它也是一个独...

军团问题, 某国家在一条战线上(一条直线)上部署了n 支军队。如果两支或两支以上军队相邻,它们将形成一个军团。如果一支军队不和任何一支军队相邻,那么它也是一个独...

于 2022-02-28 发布 文件大小:2.12 kB
0 178
下载积分: 2 下载次数: 1

代码说明:

军团问题, 某国家在一条战线上(一条直线)上部署了n 支军队。如果两支或两支以上军队相邻,它们将形成一个军团。如果一支军队不和任何一支军队相邻,那么它也是一个独立的团。给定一组军队在战线上左右两端的位置及编号,求出所有的军团 -Corps issues, a country in a front (a straight line) on n-support forces deployed. If two or more than two neighboring armies, they will form a regiment. If an army is not adjacent to any one army, then it is also an independent regiment. Given a group of troops on the front left and right ends of the location and number, find all of the Army

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

发表评论

0 个回复

  • KPCA face recognition algorithm
    KPCA is very famous, this method is using for face recognition,great effect,many data for the tests
    2023-05-06 01:50:03下载
    积分:1
  • JPHide 和JPSeek 的源代码
    应用背景JPHide 和JPSeek 的源代码!JPHide&JPSeek是一个JPEG图像的信息隐藏软件!-JPHide and JPSeek source code! JPHide & JPSeek is a JPEG image information hidden software!关键技术JPHIDE and JPSEEK are programs which allow you to hide a file in a jpeg visual image. There are lots of versions of similar programs available on the internet but JPHIDE and JPSEEK are rather special. The design objective was not simply to hide a file but rather to do this in such a way that it is impossible to prove that the host file contains a hidden file. Given a typical visual image, a low insertion rate (under 5%) and the absence of the original file, it is not possible to conclude with any worthwhile certainty that the host file contains inserted data. As the insertion percentage increases the statistical nature of the jpeg coefficients differs from "normal" to the extent that it raises suspicion. Above 15% the e
    2022-07-21 14:22:36下载
    积分:1
  • linux下的cure聚类
    是linux下的cure算法,比较完整 #if !defined(lint) && !defined(SABER) static char rcsid[] = "$Header: /usr/src/local/conn/cluster/RCS/cluster.c,v 1.23 1993/02/03 07:43:07 stolcke Exp $"; #endif    /* not lint */ #include #include #include #include "alloc.h" #include "error.h" #include "cluster.h" #define NONE (-2) #define BUFSIZE 256 #ifndef SCALE #define SCALE "_SCALE_" #endif #ifndef DONTCARE #define DONTCARE "D/C" #endif #ifndef MAXFLOAT #define     MAXFLOAT        ((float)3.40282346638528860e+38) #endif static FLOAT   distance(); static FLOAT   root(); static FLOAT   cure_distance(); static void    merge();
    2023-07-29 18:30:03下载
    积分:1
  • C++实现的MMAS蚁群工程
    一种基于c++实现的MMAS蚁群算法,主要改进如下:1.采用精英策略,只对最优路径上的蚂蚁信息素进行更新;2.通过最大最小信息素值修剪信息素矩阵;
    2022-11-12 12:55:03下载
    积分:1
  • 利用Fortran77对2D FDTD进行实现
    利用Fortran77对2D FDTD算法进行实现,通过入射波,吸收边界的设定,电场和磁场强度的迭代计算,获得最终 位置的电场强度和磁场强度的描述。
    2022-02-26 03:53:21下载
    积分:1
  • 瓦斯浓度报警系统源码
    这是一个关于瓦斯浓度报警系统的源码,主要功能是当瓦斯浓度超过设定值时就会报警,功能很简单,可以在proteus上仿真看看结果!
    2022-03-03 15:34:33下载
    积分:1
  • 2阶巴特沃斯滤波器
    实用的fortran版2阶巴特沃斯滤波器。 在李建平程序基础上有细微调整。
    2022-03-09 12:24:15下载
    积分:1
  • 杜利特分解中选定的主要元素的数值分析…
    数值分析中的Doolittle选主元素分解法解方程组。-Numerical analysis of selected major elements in the Doolittle decomposition method solution of equations.
    2022-03-16 16:44:30下载
    积分:1
  • Soil non
    非线性土体有限源程序,包含接触单元等等,功能挺好 -Soil non-linear finite source
    2022-05-19 03:16:03下载
    积分:1
  • msp430温度检测
    基于msp430的温度检测,温度检测用的是ds18b20。里面配套的ad10原理图,pcb图,非常适合msp430初学者学习。
    2023-04-30 11:15:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载