You can assume that two 网商奖金制度would not
分类:
其他好文 时间:
2015-05-16 17:56:13
阅读次数:
105
题意
A array contain N number, can you tell me how many different pair i,j that satisfy a[i] + a[j] = M and 1
0
思路:
用map记录会超时
所以想到手写二分。思考一下其实满足题目条件的对数和每个数字的位置并没有关系——排序+二分查找(范围来确定个数)即可。
code:
...
分类:
其他好文 时间:
2015-05-16 16:35:53
阅读次数:
98
Little Petya likes points a lot. Recently his mom has presented him n points lying on the line OX.
Now Petya is wondering in how many ways he can choose three distinct points so that the distance be...
分类:
其他好文 时间:
2015-05-16 16:33:10
阅读次数:
138
You can Solve a Geometry Problem tooTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 8452Accepted S...
分类:
其他好文 时间:
2015-05-16 16:26:13
阅读次数:
129
Design a data structure that supports the following two operations:void addWord(word)bool search(word)search(word) can search a literal word or a regu...
分类:
其他好文 时间:
2015-05-16 16:16:41
阅读次数:
83
今天用powerdesigner修改了一些外键关系,有两个外键的名字取一样的,忘记改了。然后在用navicat运行sql文件时,报出[Err] 1022 - Can't write; duplicate key in
table '#sql-1500_26'的错误。
1022错误代码意味着:关键字重复,更改记录失败。
仔细一看表之间的各种,果然有两个外键命名一致,改了之后...
分类:
数据库 时间:
2015-05-16 14:56:00
阅读次数:
362
一:起因
(0)最近由于病了一场,闲暇时间(即生病期间)一直思考如下问题:
思考一:如何做一名合格的程序猿,怎么才能成为一名名副其实的程序猿?
思考二:还有就是到底,值不值得熬夜加班去搞研发(或转型或做相对轻松的其它IT岗位~~~对于这个问题,我一时无法给出答案,希望各位帮我分析一下,不胜感激!!!)
(1)如果没有做到这一点你怎么能说,你是一名合格的程序猿 —— 安装程序或者运行开发程序...
分类:
数据库 时间:
2015-05-16 10:33:30
阅读次数:
317
openwrt上安装php,提示如此网上一大通找发现的都是can't connect local MySql Server though socket "/tmp/mysql.socket"如何解决人家还是找的mysql.socket;我的竟然直接找的tmp目录,真是无语。人家的解决方法使用软连接直...
分类:
数据库 时间:
2015-05-16 10:23:28
阅读次数:
158
1631 LockerA password locker with N digits, each digit can be rotated to 0-9 circularly.You can rotate 1-3 consecutive digits up or down in one step.F...
分类:
其他好文 时间:
2015-05-16 10:19:13
阅读次数:
725
Design a data structure that supports the following two operations:void addWord(word)bool search(word)search(word) can search a literal word or a regu...
分类:
其他好文 时间:
2015-05-16 06:44:42
阅读次数:
112