摘要:
题目链接:http://poj.org/problem?id=1631 就是求一个LIS,但是范围太大(n≤40000),无法用常规O(n²)的朴素DP算法,这时需要优化。 新加一个数组s[]来维护长度当LIS的长度为len时候需要的数组a中的最小数字的值,可以证明这个数组是严格单调递增的,因此可以 阅读全文
posted @ 2016-04-16 14:32
Kirai
阅读(227)
评论(0)
推荐(0)
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1160 FatMouse believes that the fatter a mouse is, the faster it runs. To disprove this, you want to ta 阅读全文
posted @ 2016-04-16 11:49
Kirai
阅读(186)
评论(0)
推荐(0)

浙公网安备 33010602011771号