Yet Another Segments Subset

Problem Name:
Yet Another Segments Subset
Site:CodeForces
Links:
Tags: