1.accumulate的用法:int sum = accumulate(ivec.begin(), ivec.end(), 0 );第三个参数时累加的初值,更重要的是accumulate对要累加元素的类型一无所知,所以容器内的类型要与第三个实参的类型匹配,或者可转换成第三个实参的类型。2.find...
分类:
其他好文 时间:
2014-06-15 22:42:19
阅读次数:
285
select * from table1 a where b=(select max(b) from table1 where a=a.a)select jy_version, member_id from mid owhere o.jy_version =(select max(p.jy_vers...
分类:
其他好文 时间:
2014-06-15 22:15:29
阅读次数:
151
select sys.columns.name as 字段名, sys.types.name as 字段类型, sys.columns.max_length as 长度, sys.columns.is_nullable as 是否可空,(selectcount(*) from sys.identit...
分类:
数据库 时间:
2014-06-15 21:34:31
阅读次数:
211
intout_max_length_crease_str(constchar*p,std::vector&vct){ vct.clear(); intnlen=strlen(p); if(nlen==0){ return0; } if(nlen==1){ vct.push_back(p); r...
分类:
其他好文 时间:
2014-06-15 21:01:04
阅读次数:
178
移动篇:@media screen and (min-width:540px){#news_detail .pinglun-form { margin:0 auto;width: 540px;}}@media screen and (max-width:540px){#news_detail .pi...
分类:
移动开发 时间:
2014-06-15 06:26:51
阅读次数:
400
Question:Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, .....
分类:
其他好文 时间:
2014-06-14 20:59:07
阅读次数:
188
html代码:标题0/18 js代码://该函数用于输出框,当输入值大于指定的最大值的时候,返回当长度等于Max的值 function getByteVal(val, max) { var returnValue = ''; var byteValLen = 0; for (var i...
分类:
其他好文 时间:
2014-06-14 20:27:20
阅读次数:
301
Autodesk 2014 系列软件通用注册机使用方法:1、首先安装Autodesk 2014 系列软件(比如AutoCAD、3Ds MAX等等);2、安装中输入对应的产品序列号、密匙(这个我在相应软件下载页面都会给出);3、安装完成后,在开始菜单中选择简体中文版的快捷方式(桌面的快捷方式默认英文)...
分类:
其他好文 时间:
2014-06-14 20:04:45
阅读次数:
209
Decription:Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, gi...
分类:
其他好文 时间:
2014-06-14 19:46:12
阅读次数:
251
给定一个数串,以及K,求对这个数串K划分的乘积最大值。DP思路:一开始肯定想到的是递归,假设在某两个字符间有一个乘号,那么乘积最大就是乘号两边的区间接着划分的乘积最大值。于是状态空间表示如下dp[i][k]表示从0~i之间有K个乘号的乘积最大值,dp[i][k] = max(dp[j][k-1]*n...
分类:
其他好文 时间:
2014-06-14 18:17:56
阅读次数:
292