| 
 | 
back to boardEasy problem Posted by  Anton 13 Jul 2021 18:37 Use scanline and sort events by right border abd after that just count segments that their l > now so after this make now = r, ans++; firstly ans = 0 and now = 0; Sorry for my English i'm from Russia  |  
  | 
|