搜索资源列表
1380
- 给定N个整数,找出它们中的最大值。在输入时可以连续输几组数,每组数中,第一行包括一个整数N(1〈=N〈=10000),第二行包括N个整数,每个的绝对值小于10^9,当一组数中,第一行为0时就退出程序。在输出时,每组数就有一行中显示它的最大值-In this problem, you are given n integers. Your task is to find the maximal value of them. Input may contains several test case
maandian
- 找马鞍点:1. 若在矩阵Am×n中存在一个元素A[i][j],其满足A[i][j]是第i行元素中最小值,且又是第j列元素中最大值,则称此元素为该矩阵的一个马鞍点。用二维数组存储矩阵Am×n ,设计算法求出矩阵中所有马鞍点。-Find a saddle point: 1. If in the matrix Am × n, there is a element of A [i] [j], the meet A [i] [j] is the first line element in the mini
ad
- 程序中第一个for语句中又嵌套了一个for语句组成了双重循环。外循环控制逐行处理,并把每行的第0列元素赋予l。进入内循环后,把l与后面各列元素比较,并把比l大者赋予l。内循环结束时l 即为该行最大的元素,然后把l值赋予b[i]。等外循环全部完成时,数组b中已装入了a各行中的最大值。后面的两个 for语句分别输出数组a和数组b。-Procedures for the first statement and a nested for statement composition of a double
REF_VC
- 采用硬件: MP416(16位AD,5V/10V/±5V/±10V量程) 设计思路: 1. 使用MP416_AD()函数,采用通道1测试,基准板输出为±200mV,±2.5V,±10V,GND 等,考虑测量精度,使用MP416的±5V量程测量基准板输出±200mV,±2.5V电压;使用MP416的±10V量程测量基准板输出±10V电压。即通过键盘输入gain值2或3来选择合适量程。 2. 不采用MP416_AD()函数测量平均值,故取测量1
pso
- 程序说明: jblzq.m为基本粒子群程序求函数的最大值 lzq2.m是惯性权重法求函数的最大值 lzq3.m是惯性权重法求函数最小值。当然也可以用lzq2.m实现,在函数前加个负号 lzq4.m是收敛因子法求函数最小值 lzq5.m是带变异的惯性权重法求最大值,变异条件比较简单,变异次数多。还有一种变异是利用各粒的最优位置与全局最优位置的差的平方和,再开根号的值小于某一值最为收敛条件,将在我的报告中叙述 lzq6.m是分层粒子群优化算法,即利用两个粒子群同时进行搜索,一
ArrayIntervalMax
- 在一个给定的时间段内查找对应数组的最大值-In a given period of time to find the maximum value corresponds to an array
Main
- 附件中演示了java中线程的创建和使用,所实现的功能是使用线程实现求取二维数组中的最大值-Java in the annex demonstrates thread creation and use of the function is achieved using two-dimensional array of thread to achieve the maximum strike
input10
- 从键盘输入10个整型数据,放入数组a 中,求其最大值及其所在元素的下标位置,并输出-10 integers from the keyboard input data into the array a, find the maximum value of the subscr ipt position where the element, and output
2
- 从键盘输入3*3整型数组的数据,并计算出所有元素之和,打印出最大值和最小值。 输入输出要用流运算符实现。-Input from the keyboard 3* 3 Integer array of data, and calculate the sum of all elements, print out the maximum and minimum values. Use input and output stream operators to achieve.
cankao
- 编写一个对具有n 个元素的数组x[]求最大值的程序,要求将求最大值的函数设计成函数模板。-The preparation of an array with n elements x [] seek maximum program calling for a function designed to seek maximum value function template.
wanshell
- warshall法顺序:置新矩阵,开始运算;置i=1;对所有j如果A[j,i]=1,则对k=1,2,3……n运算啊A[j,k]:=A[j,k]+A[i,k]; i++;如果i<=n转上继续 需要: 1.输入矩阵,用二维数组,可以考虑全局变量 2.设置矩阵最大值nMax 3.对i从0到n-1循环,寻找每列为1的项,为1则继续运算,否则返回 增强说明: 1.输入方式选择,同时可以选择是否继续运算 2.不再每行确认,增加修改选项 3.使用字符串数组
FindMax
- 求矩阵的最大值 有一个整型二维数组,大小为m行n列,要求分别找出其中最大值所在的行和列,以及该矩阵中的最大值。 要求: 1.编写自定义函数MaxVal 函数的原型为:int MaxVal(int arr[][N], int *m, int *n) 功能: 数组中最大元素的值通过MaxVal函数的返回值传递给主函数,最大元素的行值和列值分别通过m和n传递给主程序相应的变量。 2.main主函数的功能 (1)变量定义 (2)输入数组各元素的值 (3)以二维矩阵
CalculateTheSummary
- 1. 编写一个程序打印数出有10个元素的浮点数组a1中最大值和最小值。 2.将有10个元素的数组a1 拷贝至含有15个元素的数组b1的一段位置。 3.将一个已存入数组中的值45,89,7,6,0,按0,6,7,89,45的次序打印出来。 4. 求一个3*3矩阵对角线元素之和。 5.设某个一维数组中有25个元素,编写一个顺序查找程序,从中查找值为80的元素在数组中的位置。 -1. Write a program that prints out a number of floa
find_maximum_and_second_maximum
- 在长度为n的数组a中,寻找最大值和第二大值-Find the value of the maximum and the second largest
35
- 编写一个函数fun,找出一维数组的最大值和它所在下标-make a function which can get the max value and its market。
max--min-
- 给定一个数组,数组的个数为n,求这n个数的最大值、最小值-Given an array of the number of the n, n find the number of maximum, minimum
min-min2
- 给定一个数组,数组的元素个数为n,求这个数组的最大值、次大值、最小值、次小值-Given an array of the number of elements is n, find the maximum value of the array, the second largest value, minimum, small value of sub-
Andian
- /** * 二维数组的鞍点 * (行上最大,列上最小) * 思想:先找到每行上的最大值,保存在一维数组上b[i]。 * b[0]对应的那列最大值的行号为0, * b[1]对应的那列最大值的行号为1 */-/**** Two-dimensional array of the saddle point (the line' s largest and column minimum)* thinking: first find the maximum on e
4
- 随机产生20个[10,50]的正整数存放到数组中,并求数组中的所有元素最大值、最小值、平均值及各元素之和-Random 20 [10, 50] of positive integers stored in an array, and find all the elements in the array maximum, minimum, average and the elements and
Desktop
- 1求矩阵中的 最大值 并返回所在的行数与列数。2判断一组数据满足什么分布,包括泊松分布、正态分布、卡方分布、T分布等。3 检验线性方程组 系数的输入是否有误。-1 find the maximum value and returns the matrix where the rows and columns. 2 to determine what set of data to meet the distribution, including Poisson, normal, chi-squar