??
Organizing Attributes and Operations
组织属性和操作
When drawing a class, you don’t
have to show every attribute and every operation at once. In fact, in most cases, you can’t
(there are too man...
分类:
其他好文 时间:
2014-08-21 22:50:55
阅读次数:
423
今天真的好高兴呀 我解决了一个折磨了我一周的问题,真的是激动地要哭出来了,为了这个问题,我嘴也烂了,头发抓了一地啊。虽然解决方法,最后还是展现出了“百度”的伟大,但是我还是很开心,在这里我展示一下我的战果问题的表面就是在2G下下载zip包失败,不是每次都失败,而是只要我离开当前页面再次进入当前页面就...
分类:
其他好文 时间:
2014-08-21 22:26:44
阅读次数:
140
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below....
分类:
其他好文 时间:
2014-08-21 21:11:24
阅读次数:
213
悟道——一位IT高管20年的职场心经
第七章 关于销售
用“最”来形容公司的销售,可以用上若干的词汇:
最牛,最累,最精,最傻,最有钱,最贱,最能吹,最能装。。。
1.1 销售人得基本素质
善胜者不争,善争者不战,善战者不败,善败者不乱。
五勤:嘴勤、腿勤、手勤(勤读勤记)、耳目勤(多看多听)、脑勤(勤思勤省)。
能吃苦:身体之苦,巨大的心理压力。
Not too ha...
分类:
其他好文 时间:
2014-08-21 17:18:14
阅读次数:
183
题目链接:http://poj.org/problem?id=1423思路:如果用普通方法做肯定会超时,数据也存不下,只能用数学方法来优化。这里用到了斯特林公式。秒出~~公式为 n! = log10(sqrt(2*pi*n)) + n * log10(n/e)这个公式只能求出n!的估算值,这里还需要...
分类:
其他好文 时间:
2014-08-21 14:45:24
阅读次数:
162
First I thought of a DP solution.. but TLE. So there must be a O(n). I thought of Mono-Queue.. but looks too complex.So what is the naive solution? O(...
分类:
其他好文 时间:
2014-08-21 14:37:54
阅读次数:
202
题意:就是判断各线段之间有没有交点。
判断两线段相交,要运用到叉积。两个线段相交肯定相互跨越,假设一个条线段(p1p2),另一条是(q1q2),那么p1p2肯定在q1q2线段的两侧,那么运用叉积如果p1p2跨越q1q2的话(q1p1)x(q2p2)《= 0.同样也要验证 q1q2是不是也跨越p1p2,注意:p1p2跨越q1q2,不代两个线段相交,可能是p1p2跨越直线q1q2,所以说还是要再次判断q1q2是不是跨越p1p2
还有另外一种比较容易理解的解法:
就是如果两个线段相交,那么两线段两端端点的差即(p...
分类:
其他好文 时间:
2014-08-21 09:51:13
阅读次数:
156
Minimum Cost
Time Limit: 4000MS
Memory Limit: 65536K
Total Submissions: 13531
Accepted: 4635
Description
Dearboy, a goods victualer, now comes to a big problem, and he...
分类:
其他好文 时间:
2014-08-20 21:09:52
阅读次数:
238
线程同步一大部分与原子访问(atomic access)有关, 所谓原子访问, 指的是一个线程在访问某个资源的同时能够保证没有其他线程会在同一时刻访问同一资源.假设编译器将g_x递增的那行代码时,生成了下面的汇编代码:MOV EAX, [g_x] ; Move the value in g_x i....
分类:
其他好文 时间:
2014-08-20 16:15:12
阅读次数:
164
We will construct an infinitely long string from two short strings: A = "^__^" (four characters), and B = "T.T" (three characters). Repeat the followi...
分类:
其他好文 时间:
2014-08-20 15:43:02
阅读次数:
178