码迷,mamicode.com
首页 >  
搜索关键字:max sum of max-k-sub    ( 43452个结果
【LeetCode】3Sum Closest
Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers. You m...
分类:其他好文   时间:2014-05-23 03:21:10    阅读次数:287
数字图像的5种增强处理
数字图像的5种增强处理#include#includeusing namespace std;int main(){int i,j,n,m,w,a[100][100],x[100][100],max[100][100][20],b[100][100],k,p,u;cout>n>>m;cout>a[i...
分类:其他好文   时间:2014-05-23 03:09:34    阅读次数:170
评分系统
#include#includeusing namespace std;int main(){int n,i,j,a[100],u,max,b[100],m,s[100],min;cout>n>>m;for(j=1;j>a[i];s[j]=s[j]+a[i];}max=a[1];for(i=2;im...
分类:其他好文   时间:2014-05-23 02:57:23    阅读次数:267
图像的中值滤波处理
#includeusing namespace std;int main(){int n,m,i,j,k,o,u,p,a[100][100],x[100][100],max[100][100][20],b[100][100];cout>n>>m;cout>a[i][j];}}for(k=1;k=ma...
分类:其他好文   时间:2014-05-23 02:51:18    阅读次数:227
数据库一列多行转一行多列
如题: select max(case when name='1' then [temp] else null end) as temp1 , max(case when name='2' then [temp] else null end) as temp2,  max(case when name='3' then [temp] else null end) as...
分类:数据库   时间:2014-05-23 02:37:04    阅读次数:734
006:欧拉项目平方和与和的平方的差
Sum square difference Problem 6 The sum of the squares of the first ten natural numbers is, 12 + 22 + ... + 102 = 385 The square of the sum of the first ten natural numbers is, (1 + 2 + ....
分类:其他好文   时间:2014-05-23 02:22:57    阅读次数:193
【leetcode】Max Points on a Line
题目:给定二维坐标上的若干点,找出这样一条线,属于该线的点数最多,返回点数。 分析:两个点确定了一条直线。共线,说明斜率相同。那么确定一个点A,该点与其他的点就会生成不同的斜率。这些斜率中,会存在相同的,那么这些相同的斜率就说明他们跟A在同一条直线上。 这里我们把斜率分成两种,一种是正常的斜率,就是可以写成 y = kx + b形式的k;一种就是横坐标相同,纵坐标不相同的,这时的斜率为无穷大。...
分类:其他好文   时间:2014-05-23 00:43:16    阅读次数:301
【LeetCode】3Sum
Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:Elemen...
分类:其他好文   时间:2014-05-22 16:53:52    阅读次数:173
KMP字符串匹配
1 #include 2 3 4 using namespace std; 5 6 #define MAX 255 7 8 typedef unsigned char BYTE; 9 10 typedef BYTE String[MAX+1]; 11 12 bo...
分类:其他好文   时间:2014-05-22 15:10:06    阅读次数:278
hdu 1024 Max Sum Plus Plus (DP)
Max Sum Plus PlusTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 15817Accepted Submission(s): 5140...
分类:其他好文   时间:2014-05-22 14:06:42    阅读次数:250
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!