Given a sequence of N pairs of integers, find the length of the longest increasing subsequence of it. An increasing sequence A1..An is a sequence such that for every i < j, Ai < Aj. A subsequence of a sequence is a sequence that appears in the same…
排序,三关键字 去重 归并排序+树状数组 #include<bits/stdc++.h> using namespace std; #define re register int const int N=100010; const int M=200010; int n,m; struct node{ int a,b,c,s,res; bool operator < (node y) const { if(a==y.a&&b==y.b)return c<y.c; i…