Virtual Friends Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8165 Accepted Submission(s): 2345 ...
分类:
其他好文 时间:
2016-11-01 23:46:12
阅读次数:
284
原型链方式实现继承 [javascript] view plain copy print? function SuperType(){ this.property = true; this.colors = ['red','blue','green']; } SuperType.prototype. ...
分类:
编程语言 时间:
2016-10-22 11:45:42
阅读次数:
319
Layout Description Like everyone else, cows like to stand close to their friends when queuing for feed. FJ has N (2 <= N <= 1,000) cows numbered 1..N ...
分类:
其他好文 时间:
2016-10-21 20:04:28
阅读次数:
366
Description There are three friend living on the straight line Ox in Lineland. The first friend lives at the point x1, the second friend lives at the ...
分类:
其他好文 时间:
2016-10-06 16:49:32
阅读次数:
140
A. As Easy As Possible 每个点往右贪心找最近的点,可以得到一棵树,然后倍增查询即可。 时间复杂度$O((n+m)\log n)$。 B. Be Friends 从高位到低位依次考虑,对于每一位,按这一位将数字分成两个集合,显然这两个集合要优先连边,那么只需要找到横跨这两个集合的 ...
分类:
其他好文 时间:
2016-10-06 06:51:38
阅读次数:
206
A.As Easy As Possible B.Be Friends C.Coprime Heaven D.Drawing Hell E.Easiest Game F.Fibonacci of Fibonacci G.Global Warming H.Hash Collision I.Increas ...
分类:
其他好文 时间:
2016-10-05 21:50:09
阅读次数:
245
A - The New Year: Meeting Friends 水 B - Text Document Analysis 字符串暴力模拟,感觉还是需要一点技巧的,我写的太慢了。 C - Polycarp at the Radio 应该也是sb暴力题,map乱搞的(队友写的== D - Lakes ...
分类:
其他好文 时间:
2016-10-05 13:05:35
阅读次数:
180
题目链接: A:The New Year: Meeting Friends B:Text Document Analysis C:Polycarp at the Radio 分析:这场第一题送分,第二题模拟,第三题构造+特殊处理。做出几道说几道,QAQ A. 求出最大值与最小值之差即可 B. 多种情 ...
分类:
其他好文 时间:
2016-10-04 01:28:32
阅读次数:
197
题意:给定 3 个数,求其中一个数到另外两个数之间的最短距离。 析:很明显选中间那个点了。 代码如下: ...
分类:
其他好文 时间:
2016-10-04 01:28:09
阅读次数:
157
Friends are lost by calling too often and calling seldom. 交往过密过疏,都会失去朋友。 Please mind your own business, don't be always interfering. Life is about mak ...
分类:
其他好文 时间:
2016-09-28 01:51:35
阅读次数:
115