1、普通的道理就别一遍遍秀了。(来自kk)2、自知之明,时刻找找差距。3、遇到别人的问题提出了,但是不要立刻觉得对方很low,因为可能你在那个场景下做的还不如对方。4、生活服务类公司的内部管理系统,一定是出自于用户需求,极度丰富而人性化的,能够让用户感觉到人性化的真..
分类:
其他好文 时间:
2014-07-26 03:21:27
阅读次数:
206
折半查找也就是二叉查找,其查找时间复杂度为O(logn),比顺序查找的效率高得多,唯一的要求就是待查表已经有序。1、等值折半查找比较简单,算法如下:def binarySearch(data,value): low = 0 high = len(data) - 1 while lo...
分类:
其他好文 时间:
2014-07-26 00:50:56
阅读次数:
213
EXEC sp_configure 'show advanced options', 1; RECONFIGURE;EXEC sp_configure 'xp_cmdshell', 1; EXEC sp_configure 'show advanced options', 0; RECONFI...
分类:
其他好文 时间:
2014-07-25 16:45:21
阅读次数:
272
前言本文翻译自TopCoder上的一篇文章:Dynamic Programming: From novice to advanced,并非严格逐字逐句翻译,其中加入了自己的一些理解。水平有限,还望指摘。前言_我们遇到的问题中,有很大一部分可以用动态规划(简称DP)来解。 解决这类问题可以很大地提升你...
分类:
其他好文 时间:
2014-07-25 02:34:54
阅读次数:
284
/**
* 授权
*/
EXEC sp_configure 'show advanced options',1;
go
reconfigure;
go
exec sp_configure 'xp_cmdshell',1;
go
reconfigure;
go
/**导入指定表的文本文件*/
EXEC master..xp_cmdshell 'bcp dbname..tablename in...
分类:
数据库 时间:
2014-07-24 23:32:13
阅读次数:
374
树状数组+二分
就是找第几小的数,,找几次,再求和。。
#include
#include
#include
#include
#include
using namespace std;
const int N=277777;
int t,n,m,bit[N],num,i;
long long ans;
int low(int g)
{
return g&(-g);
}
void up...
分类:
其他好文 时间:
2014-07-24 23:29:33
阅读次数:
266
Java多层目录打包和解压代码(apache commons compress, io, lang) package?zip;
?
import?java.io.BufferedOutputStream;
import?java.io.ByteArrayOutputStream;
import?java.io.File;
import?java.io.Fil...
分类:
编程语言 时间:
2014-07-23 22:42:17
阅读次数:
1345
最后的结果中正面向上的奇偶性是一定的,计算出正面向上的范围low,up
结果即为 C(m,low)+ C(m,low+2) +.... + C(m,up) ,用逆元取模
Turn the pokers
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total S...
分类:
其他好文 时间:
2014-07-23 22:36:49
阅读次数:
318
#Red hat enterprise linux variants ##Two install sets available ##两种安装方案 ###Server rhel server rhea advanced platform ###Desktop rhel desktop workstation option Multi-OS option ##RH network #...
分类:
Web程序 时间:
2014-07-23 21:33:26
阅读次数:
283
今天温习树状数组,果然忘记了好多,树状数组求逆序数,值得注意这道题所有的数都是0-n-1的,所以在求最小的时候不用每个数顺序在计算一遍,我已开始就是把每个顺序又计算了一遍,果断超时了。第i个数拿到后面去,逆序数会减少a[i]-1,同时会增加n-a[i]
#include
#include
using namespace std;
int a[5005],tree[5005],n;
int low...
分类:
其他好文 时间:
2014-07-23 21:00:35
阅读次数:
186