天天看點

hdu 1558 Segment set

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

先判斷線段相交,然後用并查集合并。

View Code