码迷,mamicode.com
首页 >  
搜索关键字:max sum of max-k-sub    ( 43452个结果
算法 计算多个顺序区间的总长
List list = Arrays.asList(new Point(1, 5), new Point(2, 3),new Point(2, 8), new Point(9, 13));int sum = list.get(0).y - list.get(0).x,currenty=list.ge...
分类:其他好文   时间:2014-06-28 19:25:36    阅读次数:183
循环队列
//// main.cpp// circleQueue//// Created by zhou on 14-6-19.// Copyright (c) 2014年 zhou. All rights reserved.//#define Max 50typedef struct ...
分类:其他好文   时间:2014-06-28 18:54:47    阅读次数:171
poj 1185 炮兵阵地
http://poj.org/problem?id=1185dp[i][j][k]表示第i行状态为k,第i-1行为j;状态转移方程dp[i][j][k]=max(dp[i][j][k],dp[i-1][j][k]+c[k]); 1 #include 2 #include 3 #include ...
分类:其他好文   时间:2014-06-28 17:09:38    阅读次数:206
【USACO 2.2.2】集合
【题目描述】对于从1到N (1 2 #include 3 #include 4 #include 5 #include 6 const int Max=1000000; 7 using namespace std; 8 long long cnt[Max],n; 9 int main()1...
分类:其他好文   时间:2014-06-28 16:48:53    阅读次数:148
HDU 1241
1 #include 2 #include 3 using namespace std; 4 5 const int MAX=105; 6 7 bool vis[MAX][MAX]; 8 char maze[MAX][MAX]; 9 int n,m;10 int dir[8][2]={0,...
分类:其他好文   时间:2014-06-21 00:14:01    阅读次数:275
[游戏学习29] Win32 图像处理1
>_____<:头文件参见:http://www.cnblogs.com/zjutlitao/p/3733164.html 1 #include "stdafx.h" 2 #include "resourse.h" 3 4 #define MAX_LOADSTRING 100 5 6...
分类:Windows程序   时间:2014-06-20 23:43:37    阅读次数:327
IE6 max-width max-height 不起作用 解决其兼容性问题
.catelistdlddulliimg{width:expression(this.width>228?'228px':true);max-width:228px;height:expression(this.height>160?'160px':true);max-height:160px;}解...
分类:其他好文   时间:2014-06-20 17:50:42    阅读次数:155
MongoDB在MFC下使用C++驱动编译错误的解决
今天使用MongoDB的C++驱动,在编译连接的时候一直出现错误,显示的string_data.h下93行max宏的问题,可视其本身并不是调用max宏,而是调用std::numeric_limits::max这样就是产生错误,通过搜索发现解决方法(参考网址:http://blog.chinaunix...
分类:数据库   时间:2014-06-20 17:08:50    阅读次数:273
HDU 1171
母函数简单题 1 #include 2 #include 3 using namespace std; 4 5 const int MAX=130000; 6 int c1[MAX],c2[MAX]; 7 8 struct { 9 int val,num;10 }thing[55];...
分类:其他好文   时间:2014-06-20 16:07:13    阅读次数:164
Leetcode Sum Root to Leaf Numbers
Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2->3which rep...
分类:其他好文   时间:2014-06-20 15:30:19    阅读次数:227
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!