SCU Practice Contest 8 In Summer

G: The Skyline Problem