UVa12647 — Balloon — need some help.

Revision en1, by buihoatpt1874, 2020-04-04 16:56:32

Problem statement

I can see that processing the segments from high to low and using segment tree to update the segment currently covering an interval l, r is necessary to solve this problem. However, i couldn't think of a way to update the segment currently covering l, r as there can be multiple segments that were covering it. Can someone please help ?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English buihoatpt1874 2020-04-04 16:56:32 484 Initial revision (published)