Problems With SPOJ Posters

Revision en2, by svg_af, 2015-12-17 01:39:07

Hello There

I've been trying to solve this problem for a couple of days now and have no idea why it keeps getting WA

Here is my code

What I'm doing is compressing coordinated and using segment tree to see for each poster if the range has any non covered area, this works because I'm going from last to first poster

Here's to hoping someone finds where I'm wrong :)

Tags segment tree, spoj, wrong answer

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English svg_af 2015-12-17 01:39:07 14 Tiny change: 'e has any visible area, thi' -> 'e has any non covered area, thi'
en1 English svg_af 2015-12-17 01:38:27 473 Initial revision (published)