H - Tokens on the Segments(贪心+优先队列)
H - Tokens on the Segments(贪心+优先队列)
Output
For each test case output one line containing one integer, indicating the maximum possible number of segments that have at least one token on each of them.
Sample Input
2
3
1 2
1 1
2 3
3
1 2
1 1
2 2
Sample Output
原创
2020-05-09 09:55:29 ·
567 阅读 ·
1 评论