题目:http://acm.hdu.edu.cn/showproblem.php?pid=1051
大意:求最少升序序列的个数。
#include <cstdio>
#include <cstring>
#include <algorithm>
#define N 5000 + 5
using namespace std;
struct node {
int x, y;
bool operator < (const node& t) const {
return (x < t.x) || (x == t.x && y < t.y);
}
} f[N];
bool mark[N];
int main()
{
int T, n, tw, ans, i, j;
scanf("%d", &T);
while (T--) {
scanf("%d", &n);
......
阅读全文