摘要: 描述 描述 一个数的序列bi,当b1 < b2 < ... < bS的时候,我们称这个序列是上升的。对于给定的一个序列(a1, a2, ..., aN),我们可以得到一些上升的子序列(ai1, ai2, ..., aiK),这里1 <= i1 < i2 < ... < iK <= N。比如,对于序列 阅读全文
posted @ 2018-08-17 20:35 敲代码不BB 阅读(139) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<algorithm>using namespace std;bool cmp(int i,int j){ return i<j;}struct myclass{ bool operator()(int i,int j) { return i<j; 阅读全文
posted @ 2018-08-17 19:43 敲代码不BB 阅读(172) 评论(0) 推荐(0) 编辑