Complex Segments (Hard Version)

Problem Name:
Complex Segments (Hard Version)
Site:CodeForces
Links:
Tags: