先检查有没有数据select dqlx,hqlxfrom cpndjx where jxnd = '2014' and ocid = '101';如果有数据,把数据更新到CPYB的ndjxje中去select sum(dqlx)+sum(hqlx) from cpndjx where jxnd = ...
分类:
其他好文 时间:
2014-07-06 23:02:22
阅读次数:
270
http://blog.csdn.net/wogel/article/details/9631781duilib之源码分析《duilib之源码分析》 1 stdAfx.h* lengthof(x) 计算数组长度宏* MAX两值最大* MIN两值最小* CLAMP(x,a,b) x在a,b之间则取x否...
分类:
其他好文 时间:
2014-07-06 22:49:25
阅读次数:
457
int_ip = lambda x: '.'.join([str(x/(256**i)%256) for i in range(3,-1,-1)])ip_int = lambda x:sum([256**j*int(i) for j,i in enumerate(x.split('.')[::-1]...
分类:
编程语言 时间:
2014-07-06 21:21:30
阅读次数:
281
Find a maximum sum of a compact subsequence of array elements and any double slice.
分类:
其他好文 时间:
2014-07-06 20:44:45
阅读次数:
351
Max Points on a LineGivennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.点和方向确定一条直线。需要两重循环,第一重循环遍历起始点a,第二重...
分类:
其他好文 时间:
2014-07-06 18:21:01
阅读次数:
175
abractyeyt,dgdsaeactyey的最长子串为actyeyconst int maxSize = 100;char suffix[2][maxSize][maxSize];int max_sub(char* s1, int len1, char* s2, int len2){ fo...
分类:
其他好文 时间:
2014-07-06 18:13:00
阅读次数:
150
du-ah--max-depth=1 这个是我想要的结果 a表示显示目录下所有的文件和文件夹(不含子目录),h表示以人类能看懂的方式,max-depth表示目录的深度。du命令用来查看目录或文件所占用磁盘空间的大小。常用选项组合为:du-sh 一、du的功能:`du`reportstheamoun....
分类:
系统相关 时间:
2014-07-06 15:29:54
阅读次数:
341
找书中权值和最大的路径,至少包含一个点。有点类似LCA(最近公共祖先),树的问题关键是如何划分子问题,然后递归求解。想到了可以返回两种结果,一个是单独路径的最大和,一种是子树的最大和,然后在求解的过程中不断的更新答案。 1 /** 2 * Definition for binary tree 3 ....
分类:
其他好文 时间:
2014-07-06 14:16:47
阅读次数:
187
1. 使用Random类的nextInt方法:Random rand = new Random();rand.nextInt(max);, 此时输出[0,max),注意右边是开区间,如果需要设定最小值可通过 rand.nextInt(max-min+1)+min方式,此时的范围为[min,max]i...
分类:
编程语言 时间:
2014-07-06 14:14:11
阅读次数:
257
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, 1 ...
分类:
其他好文 时间:
2014-07-05 20:43:45
阅读次数:
246