搜索资源列表

  1. Max---min-value

    0下载:
  2. 编写一个程序,实现从n个数中找出其中最大值和最小值。-Write a program to implement from the n number to find out the maximum and minimum values
  3. 所属分类:其他小程序

    • 发布日期:2024-05-15
    • 文件大小:1024
    • 提供者:鸿雁
  1. code

    0下载:
  2. 问题描述: 在一个操场的四周摆放着n 堆石子。现要将石子有次序地合并成一堆。规定每次至少选2 堆最多选k堆石子合并成新的一堆,合并的费用为新的一堆的石子数。试设计一个算法,计算出将n堆石子合并成一堆的最大总费用和最小总费用。 编程任务: 对于给定n堆石子,编程计算合并成一堆的最大总费用和最小总费用。 Input 测试数据的第1 行有2个正整数n和k,表示有n堆石子,每次至少选2堆最多选k堆石子
  3. 所属分类:数学计算/工程计算

    • 发布日期:2024-05-15
    • 文件大小:1024
    • 提供者:ldy
  1. asm

    0下载:
  2. 字节变量ARRAY中存有N个数,要求编写一程序统计ARRAY中偶数的个数,并将结果在屏幕上显示。另外附加了一个:编写一个能实现两个十进制数的加法运算处理的程序。设每个十进制数最多4位。两个十进制数由键盘输入,结果以十进制数输出-The byte variable ARRAY there N number, write a program statistics ARRAY even number, and the results are
  3. 所属分类:汇编语言

    • 发布日期:2024-05-15
    • 文件大小:365568
    • 提供者:
  1. sy_c

    0下载:
  2. 给出N个数.把这些数从大到小输出显示 有详细说明-failed to translate
  3. 所属分类:数据库编程

    • 发布日期:2024-05-15
    • 文件大小:3072
    • 提供者:lxlwxtxq
  1. n!

    0下载:
  2. 计算一个数的阶乘。只要你输进一个数,就可以计算出这个数的阶乘是多少。-Calculate factorial of a number. As long as you input a number, you can calculate the factorial of this number is the number.
  3. 所属分类:C#编程

    • 发布日期:2024-05-15
    • 文件大小:20480
    • 提供者:huirui
  1. zdjxwt

    0下载:
  2. 最大间隙问题,给定n个实数x1,...xn,求这n个数在是轴上响铃2个数之间的最大差值,是和曾哥函数耗时O(1)。采用桶和抽屉原理求解-Maximum gap problem, given n real numbers x1, ... xn, find that the number n is the axis of the rings the maximum difference between the two numbers is
  3. 所属分类:其他小程序

    • 发布日期:2024-05-15
    • 文件大小:1153024
    • 提供者:米唐
  1. a

    0下载:
  2. 输入1个正整数n(1<n<=10),再输入n个整数,将最小值与第1个数交换,最大值与最后1个数交换,然后输出交换后的n个数。-Enter a positive integer n (1 <n<=10),再输入n个整数,将最小值与第1个数交换,最大值与最后1个数交换,然后输出交换后的n个数。
  3. 所属分类:其他小程序

    • 发布日期:2024-05-15
    • 文件大小:3072
    • 提供者:冰冰
  1. medo

    0下载:
  2. 设X[ 0 : n - 1]和Y[ 0 : n – 1 ]为两个数组,每个数组中含有n个已排好序的数。找出X和Y的2n个数的中位数。  编程任务 利用分治策略试设计一个O (log n)时间的算法求出这2n个数的中位数。 数据输入 由文件input.txt提供输入数据。文件的第1行中有1个正整数n(n<=200),表示每个数组有n个数。接下来的两行分别是X,Y数组的元素。结果输出 程序运行结束时,将计算出的中位数输
  3. 所属分类:控制台(字符窗口)编程

    • 发布日期:2024-05-15
    • 文件大小:1024
    • 提供者:王倩
  1. merge

    0下载:
  2. 运用归并排序,在用二分法查找,算法复杂度:nlogn,n个数两两相加,若能等于特定数m,则输出yes,否则输出no.-Use merge sort, in a binary search algorithm complexity: nlogn, n number two together, if can equal to a specific number m, the output yes, otherwise no output.
  3. 所属分类:数据结构常用算法

    • 发布日期:2024-05-15
    • 文件大小:1024
    • 提供者:arjiao
  1. zijiheshuwenti

    0下载:
  2. 1、问题陈述 给定N个数,和一个数T,判定是否可以从N个数中取出若干个数,使它们的和等于T。输出:YES或者NO。把N个数看成一个集合,问题就是从这个集合中选出一个子集,使这个子集满足和是T 2、问题分析: 枚举+剪枝。 -1, the problem statement given number N, and a number T, determining whether the number N is remove
  3. 所属分类:其他小程序

    • 发布日期:2024-05-15
    • 文件大小:9216
    • 提供者:王小丽
  1. data

    0下载:
  2. 将N(1<= N <= 200000)个整数小到大连续编号,相同的数应具有相同的编号。并按这N个数输入时的顺序输出它们的编号序列。-The N (1 < = N < = 200000) of small to large continuous integer number, the same number should have the same number. According to the number of
  3. 所属分类:数据结构常用算法

    • 发布日期:2024-05-15
    • 文件大小:337920
    • 提供者:
  1. paixu

    0下载:
  2. 在eclipse环境下,通过键盘输入N个数,采用冒泡排序,对其进行排序,并返回第k个最大值。-In the eclipse environment, input N numbers through keyboard ,use bubble sort, sort them, and returns the k-th maximum.
  3. 所属分类:JSP源码/Java

    • 发布日期:2024-05-15
    • 文件大小:1024
    • 提供者:毛冉
  1. Statistics

    0下载:
  2. 统计逆序对,设a[0…n-1]是一个包含n个数的数组,若在i<j的情况下,有a[i]>a[j],则称(i, j)为a数组的一个逆序对(inversion)。 比如 <2,3,8,6,1> 有5个逆序对。 请考虑一个最坏情况O(nlogn)的算法确定n个元素的逆序对数目。 注意此题请勿用O(n^2)的简单枚举去实现。 并思考如下问题: (1)怎样的数组含有最多的逆序对?最多的又是多少个呢?
  3. 所属分类:其他小程序

    • 发布日期:2024-05-15
    • 文件大小:13312
    • 提供者:姚先生
  1. n

    0下载:
  2. 运用matlab这个软件运用递归方法运算出任意一个数的阶乘-The use of this software using a recursive method matlab computing factorial of a number of arbitrary
  3. 所属分类:matlab例程

    • 发布日期:2024-05-15
    • 文件大小:1024
    • 提供者:赵霞娟
  1. xiaochengxu

    0下载:
  2. n个数最大数,猴子吃桃问题,三角形判断, 统计一行字符中各类字符的个数,找出1000以内的所有完数-The number n the maximum number of monkeys eating peaches, triangles determine the number of characters of all kinds of statistical line of characters, find all finishe
  3. 所属分类:数据结构常用算法

    • 发布日期:2024-05-15
    • 文件大小:2048
    • 提供者:xiao
  1. sn=nPnn

    1下载:
  2. 求n个数相加,可定义a的值定义方式为2 3,表示求3次递增2相加-Find the sum of the number n, define the value of a defined way to 23, which means that demand three times the sum of incremental 2
  3. 所属分类:其他小程序

    • 发布日期:2024-05-15
    • 文件大小:1024
    • 提供者:
  1. Least-squares-procedure

    0下载:
  2. 用最小二乘法去求解n个数据点的拟合多项式。-Least-squares Surface fitting procedure for rectangular domain
  3. 所属分类:数学计算/工程计算

    • 发布日期:2024-05-15
    • 文件大小:1024
    • 提供者:luyu
  1. GAIJINMAOPAOFA

    0下载:
  2. 冒泡法是数据排序的一种基本算法,它的基本方法是:相邻两元素进行比较,如有需要则进行交换,每完成一次循环就将最小元素排在最后(如从大到小排序),下一次循环是将其他的数进行类似操作?如将N 个数按从大到小排序-Bubble method is a basic algorithm for sorting data, which is the basic method: Comparison of two adjacent elements,
  3. 所属分类:数据结构常用算法

    • 发布日期:2024-05-15
    • 文件大小:1024
    • 提供者:叶子
  1. SORT---selection

    0下载:
  2. 选择排序 每趟选出一个最值和无序序列的第一个数交换,n个数共选n-1趟。第i趟假设i为最值下标,然后将最值和i+1至最后一个数比较,找出最值的下标,若最值下标不为初设值,则将最值元素和下标为i的元素交换。-The first number selection sort elect one of the most value per trip and disordered sequence exchange, choose the n
  3. 所属分类:数据结构常用算法

    • 发布日期:2024-05-15
    • 文件大小:81920
    • 提供者:陈幻
  1. combine

    0下载:
  2. 在n个数中取m个数的各种组合,并给出组合数目-Take the number of combinations of m in the number n of
  3. 所属分类:数学计算/工程计算

    • 发布日期:2024-05-15
    • 文件大小:755712
    • 提供者:孙鲁兵
« 1 2 ... 6 7 8 9 10 1112 13 14 15 16 ... 50 »

源码中国 www.ymcn.org