Problem2769--DAG上的动态规划 - 嵌套矩形问题

2769: DAG上的动态规划 - 嵌套矩形问题

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

Sample Input Copy

1
10
1 2
2 4
5 8
6 10
7 9
3 1
5 8
12 10
9 7
2 2

Sample Output Copy

5

Source/Category