天天看点

hdu 1558 Segment set

http://acm.hdu.edu.cn/showproblem.php?pid=1558

先判断线段相交,然后用并查集合并。

View Code