class Clerk { private int products; private int maximum; // 最大储货量 public Clerk(int maxmum) { this.maximum = maxmum; } public synchronized void addProd... ...
分类:
编程语言 时间:
2018-07-22 15:13:22
阅读次数:
165
传送门: http://poj.org/problem?id=2533 Longest Ordered Subsequence Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 61731 Accepted: 27632 Descr ...
分类:
其他好文 时间:
2018-07-21 22:52:45
阅读次数:
273
传送门: http://acm.hdu.edu.cn/showproblem.php?pid=1159 Common Subsequence Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others ...
分类:
其他好文 时间:
2018-07-21 22:37:32
阅读次数:
176
问题描述: Given strings S and T, find the minimum (contiguous) substring W of S, so that T is a subsequence of W. If there is no such window in S that cov ...
DualPivotQuicksort是Arrays类中提供的给基本类型的数据排序的算法。它针对每种基本数据类型都有对应的实现,实现方式有细微差异,但思路都是相同的,所以这里只挑选int类型的排序。 整个实现中的思路是:首先检查数组的长度,比一个阈值小的时候直接使用双轴快排。其它情况下,先检查数组中数 ...
分类:
编程语言 时间:
2018-07-20 20:06:34
阅读次数:
190
禁用用户自动缩放功能: <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> 判断横竖屏状态有两种方法:css判断、js判断 (一)、css ...
分类:
移动开发 时间:
2018-07-20 16:44:50
阅读次数:
168
持续更新? A 两个人做三选一的选择题,然后给出一个得分情况,问结果能不能肯定是假的 解法: 我们记相同的选择个数为$cnt$ 显然: 1.两个人的分数之差,是由不同的选择得到的因此,$n-cnt>=|X-Y|$ 2.其次,为了使得两个人分数凑到$X$和$Y$,;两个人的分数之和肯定要小于理论的最大 ...
分类:
其他好文 时间:
2018-07-20 11:22:48
阅读次数:
168
Given a sequence of K integers { N~1~, N~2~, ..., N~K~ }. A continuous subsequence is defined to be { N~i~, N~i+1~, ..., N~j~ } where 1 <= i <= j <= K ...
分类:
其他好文 时间:
2018-07-19 19:15:23
阅读次数:
202
// // Time Limit Exceeded because of the use of int left = maxSum(root.left) > 0 ? maxSum(root.left) : 0; class Solution { int max = Integer.MIN_VALUE... ...
分类:
其他好文 时间:
2018-07-19 13:39:35
阅读次数:
103