摘要: 题解:dp[ i ]表示以a[ i ]为末尾的上升子序列。然后顺序跑一遍LIS,逆序跑一遍LIS。不要用O(n*n)的算法 阅读全文
posted @ 2017-09-02 22:13 天之道,利而不害 阅读(110) 评论(0) 推荐(0)
摘要: "Fat and docile, big and dumb, they look so stupid, they aren't much fun..." - Cows with Guns by Dana Lyons The cows want to prove to the public that 阅读全文
posted @ 2017-09-02 13:06 天之道,利而不害 阅读(290) 评论(0) 推荐(0)