第五题跟这个有点像,《不重叠线段》
https://blog.csdn.net/greenary/article/details/79416962
但是我好想排序排反了,用贪心解答,应该按终点为第一关键字,我把起点当做第一关键字了。