代码搜索:全差分

找到约 10,000 项符合「全差分」的源代码

代码结果 10,000
www.eeworm.com/read/480097/1323071

txt 王承浩-6分.txt

/* merge2 问题描述: 见merge2.pdf 算法设计: 1、先将输入的数组a[0:n-1]采用快速排序方法进行降序排列(n为数组长度) 2、取得最后两位进行相加,将结果sum累加至变量counter中 3、数组长度减少1,且末元素的值变为sum 4、对新的数组按照大小进行递减排序(只需对sum进行排序即可) 5、如果n>=2,则重复步骤2至步骤4 6、如果n ...
www.eeworm.com/read/480097/1323072

txt 陈顺凡-6分.txt

#include #include using namespace std; int LIS2Length(int n,int *a) {//改进算法,时间复杂度可达nlogn,b为存储"子序列的"最大递增子序列的最末元素 int len,i,p,r,m,*b;//p,r,m分别为二分查找的上界,下界和中点 len=1;//Len为当前最大
www.eeworm.com/read/480097/1323073

txt 孙祯圻-6分.txt

#include #include #include //采用和书上一样的算法 -_-!~~~~ int MaxSum(int n,int *a) { int sum=0,b=0; for (int i=1;i0) b+=a[i]; else
www.eeworm.com/read/480097/1323074

txt 蒋春英-6分.txt

#include ofstream out("output.txt"); ifstream fin("input.txt",ios::nocreate); maxsum(int n,int *a) { int i; int sum=0; int b=0; for(i=0;i0)b+=a[i];
www.eeworm.com/read/480097/1323076

txt 林瀚斌-6分.txt

#include < iostream.h > #include < fstream.h > #include < stdio.h > int MaxSum(int m,int n, int * a) { if (n < m || m < 1) return 0; int * b = new int[n + 1]; int * c = new int[n + 1];
www.eeworm.com/read/480097/1323077

txt 宋晓秋-6分.txt

#include < iostream.h > #include < fstream.h > #include < stdio.h > int MaxSum(int m,int n,int *a) { int *b=new int[n+1]; int *c=new int[n+1]; b[0]=0; c[1]=0; for(int i=1;i
www.eeworm.com/read/480097/1323086

txt 林瀚斌-2分.txt

#include #include #include #include class knap; //类object定义 class Object { friend knap; public: int operator < (Object temp) const {
www.eeworm.com/read/480097/1323087

txt 李道强-3分.txt

#include #include //这是一个数组形式的大根堆 template class MaxHeap { public: MaxHeap(unsigned MaxSize); ~MaxHeap(); void MakeEmpty(); //清空堆 boo
www.eeworm.com/read/480097/1323089

txt 林晓佳-5.5分.txt

#include #include "iostream.h" #include using namespace std; int size; class flowshop; class minheapnode { friend flowshop; public: int bb; minheapnode(