用结构体实现的计算机N个学生的平均成绩并输出成绩大于平均成绩的学生的成绩的程序,C语言实现,在VC下运行
上传时间: 2013-12-21
上传用户:gundan
递归算法判断一个数组的n个元素中是否存在相同的元素
上传时间: 2015-10-26
上传用户:SimonQQ
设计算法实现在一个具有在n各互不相同元素的数组A[1…n]中找出所有前k个最小元素的问题,这里k不是常量,即它是输入数据的一部分。要求算法的时间复杂性为Θ(n)。
上传时间: 2013-12-21
上传用户:zhliu007
Driver to create flat random graphs and two forms of hierarchical graphs (N-level and transit-stub)
标签: graphs hierarchical transit-stu and
上传时间: 2013-12-20
上传用户:ggwz258
给定一个上下文无关文法的n条产生式规则,编程判断该文法对应的语言是否为空。若为空,则输出yes,否则输出no。
标签:
上传时间: 2015-10-26
上传用户:ruixue198909
给定由n 个整数(可能为负整数)组成的序列1 a , 2 a ,…, n a ,以及一个正整数m,要 求确定序列1 a , 2 a ,…, n a 的m 个不相交子段,使这m 个子段的总和达到最大。
上传时间: 2015-10-26
上传用户:yulg
最大子矩阵和问题 对于给定的m 行n 列的整数矩阵,编程计算其最大子矩阵和。
上传时间: 2015-10-26
上传用户:diets
n个元素{1,2, , n }有n!个不同的排列。将这n!个排列按字典序排列,并编号为0,1,…, n!-1。每个排列的编号为其字典序值。
上传时间: 2014-01-18
上传用户:日光微澜
设R={ r , r , , rn 1 2 }是要进行排列的n个元素。其中元素n r , r , , r 1 2 可能相同。试设计 一个算法,列出R的所有不同排列。
上传时间: 2014-01-16
上传用户:qilin
Input The input consists of two lines. The first line contains two integers n and k which are the lengths of the array and the sliding window. There are n integers in the second line. Output There are two lines in the output. The first line gives the minimum values in the window at each position, from left to right, respectively. The second line gives the maximum values. Sample Input 8 3 1 3 -1 -3 5 3 6 7 Sample Output -1 -3 -3 -3 3 3 3 3 5 5 6 7
上传时间: 2014-12-21
上传用户:hongmo