Introduction - If you have any usage issues, please Google them yourself
Line coverage of the known one-dimensional space N be line segments. In accordance with the endpoint of each segment Ai and Bi (Ai <Bi, i = 1,2 ... N) defined. Integer endpoint coordinates. Some segments may intersect. Programming to delete at least the number of line segments, making the remaining two segments of arbitrary disjoint. And output the remaining segment number and the specific segment.
Packet : 21840255fugai.rar filelist
fugai.cpp